aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/dev.c
diff options
context:
space:
mode:
authorTom Lendacky <[email protected]>2025-07-16 20:41:35 +0000
committerBorislav Petkov (AMD) <[email protected]>2025-08-15 15:05:39 +0000
commitc08ba63078dd6046c279df37795cb77e784e1ec9 (patch)
tree7dc3c8b11a3c1e59c7babd594cf3842fb743217e /net/core/dev.c
parentx86/sev: Improve handling of writes to intercepted TSC MSRs (diff)
downloadkernel-c08ba63078dd6046c279df37795cb77e784e1ec9.tar.gz
kernel-c08ba63078dd6046c279df37795cb77e784e1ec9.zip
virt: sev-guest: Satisfy linear mapping requirement in get_derived_key()
Commit 7ffeb2fc2670 ("x86/sev: Document requirement for linear mapping of guest request buffers") added a check that requires the guest request buffers to be in the linear mapping. The get_derived_key() function was passing a buffer that was allocated on the stack, resulting in the call to snp_send_guest_request() returning an error. Update the get_derived_key() function to use an allocated buffer instead of a stack buffer. Fixes: 7ffeb2fc2670 ("x86/sev: Document requirement for linear mapping of guest request buffers") Signed-off-by: Tom Lendacky <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Cc: <[email protected]> Link: https://lore.kernel.org/9b764ca9fc79199a091aac684c4926e2080ca7a8.1752698495.git.thomas.lendacky@amd.com
Diffstat (limited to 'net/core/dev.c')
0 files changed, 0 insertions, 0 deletions