aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h
diff options
context:
space:
mode:
authorSeongman Lee <[email protected]>2025-05-11 09:23:28 +0000
committerBorislav Petkov (AMD) <[email protected]>2025-05-11 09:38:03 +0000
commitf7387eff4bad33d12719c66c43541c095556ae4e (patch)
tree9a0bbfb1dbc673dddf38f9ac5879762eed7d568b /scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h
parentx86/microcode: Consolidate the loader enablement checking (diff)
downloadkernel-f7387eff4bad33d12719c66c43541c095556ae4e.tar.gz
kernel-f7387eff4bad33d12719c66c43541c095556ae4e.zip
x86/sev: Fix operator precedence in GHCB_MSR_VMPL_REQ_LEVEL macro
The GHCB_MSR_VMPL_REQ_LEVEL macro lacked parentheses around the bitmask expression, causing the shift operation to bind too early. As a result, when requesting VMPL1 (e.g., GHCB_MSR_VMPL_REQ_LEVEL(1)), incorrect values such as 0x000000016 were generated instead of the intended 0x100000016 (the requested VMPL level is specified in GHCBData[39:32]). Fix the precedence issue by grouping the masked value before applying the shift. [ bp: Massage commit message. ] Fixes: 34ff65901735 ("x86/sev: Use kernel provided SVSM Calling Areas") Signed-off-by: Seongman Lee <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Link: https://lore.kernel.org/[email protected]
Diffstat (limited to 'scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h')
0 files changed, 0 insertions, 0 deletions