diff options
| author | 2025-09-03 02:29:50 +0200 | |
|---|---|---|
| committer | 2025-09-11 09:03:14 -0700 | |
| commit | fc55b4cda00aff08ea6dfe86411efa13bdb728c5 (patch) | |
| tree | 8ca56343fe3575413731a9f96277927cfabf9878 /rust/kernel/debugfs/git:/ssh:/git@git.zx2c4.com | |
| parent | KVM: SEV: Save the SEV policy if and only if LAUNCH_START succeeds (diff) | |
| download | wireguard-linux-fc55b4cda00aff08ea6dfe86411efa13bdb728c5.tar.xz wireguard-linux-fc55b4cda00aff08ea6dfe86411efa13bdb728c5.zip | |
KVM: nSVM: Replace kzalloc() + copy_from_user() with memdup_user()
Replace kzalloc() followed by copy_from_user() with memdup_user() to
improve and simplify svm_set_nested_state().
Return early if an error occurs instead of trying to allocate memory for
'save' when memory allocation for 'ctl' already failed.
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://lore.kernel.org/r/20250903002951.118912-1-thorsten.blum@linux.dev
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'rust/kernel/debugfs/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
