summaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorTom Lendacky <thomas.lendacky@amd.com>2025-07-16 15:41:35 -0500
committerBorislav Petkov (AMD) <bp@alien8.de>2025-08-15 17:05:39 +0200
commitc08ba63078dd6046c279df37795cb77e784e1ec9 (patch)
tree7dc3c8b11a3c1e59c7babd594cf3842fb743217e /scripts/patch-kernel
parent5eb1bcdb6a8c088514019c3a9bda5d565beed1af (diff)
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 <thomas.lendacky@amd.com> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Cc: <stable@kernel.org> Link: https://lore.kernel.org/9b764ca9fc79199a091aac684c4926e2080ca7a8.1752698495.git.thomas.lendacky@amd.com
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions