diff options
| author | Carlos López <clopez@suse.de> | 2026-05-12 12:00:42 +0200 |
|---|---|---|
| committer | Borislav Petkov (AMD) <bp@alien8.de> | 2026-05-20 18:03:17 -0700 |
| commit | fd948c3f96b18ff9ba7d3e8eae13d196593e1aaf (patch) | |
| tree | 2d854ba60f3546278d4cd6bcda1a2f1425ffb6c0 /lib | |
| parent | 44126343d58c68adaa8343fbf1c07dd20078c35e (diff) | |
virt: sev-guest: Explicitly leak pages in unknown state
When set_memory_{encrypted,decrypted}() fail, the user cannot know at which
point the function failed, meaning that the pages are left in an unknown state
from the point of view of the caller.
Since the pages may be left in an unencrypted state, they are not suitable for
general use, and cannot be returned safely to the buddy allocator. Avoid the
issue by never freeing the pages, and then do the proper accounting by calling
snp_leak_pages().
Fixes: 3e385c0d6ce8 ("virt: sev-guest: Move SNP Guest Request data pages handling under snp_cmd_mutex")
Signed-off-by: Carlos López <clopez@suse.de>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Cc: stable@kernel.org
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions
