Messages in this thread | ![/](/images/icornerl.gif) | | Date | Tue, 2 Jan 2024 15:31:04 +0100 | From | Borislav Petkov <> | Subject | Re: [PATCH] x86/sev: Fix SEV check in sev_map_percpu_data() |
| |
On Tue, Jan 02, 2024 at 04:37:47PM +0300, Kirill A. Shutemov wrote: > The function sev_map_percpu_data() checks if it is running on an SEV > platform by checking the CC_ATTR_GUEST_MEM_ENCRYPT attribute. However, > this attribute is also defined for TDX. > > To avoid false positives, add a cc_vendor check. > > Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Fixes: 4d96f9109109 ("x86/sev: Replace occurrences of sev_active() with cc_platform_has()") Suggested-by: Borislav Petkov (AMD) <bp@alien8.de>
Thx.
-- Regards/Gruss, Boris.
https://people.kernel.org/tglx/notes-about-netiquette
| ![\](/images/icornerr.gif) |