[GIT PULL] x86 fixes

Ingo Molnar
2025-03-07T12:18:12Z

Linus,

Please pull the latest x86/urgent Git tree from:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-urgent-2025-03-07

# HEAD: c00b413a96261faef4ce22329153c6abd4acef25 x86/boot: Sanitize boot params before parsing command line

Miscellaneous x86 fixes:

- Fix CPUID leaf 0x2 parsing bugs
- Sanitize very early boot parameters to avoid crash
- Fix size overflows in the SGX code
- Make CALL_NOSPEC use consistent

Thanks,

Ingo

------------------>
Ahmed S. Darwish (3):
x86/cacheinfo: Validate CPUID leaf 0x2 EDX output
x86/cpu: Validate CPUID leaf 0x2 EDX output
x86/cpu: Properly parse CPUID leaf 0x2 TLB descriptor 0x63

Ard Biesheuvel (1):
x86/boot: Sanitize boot params before parsing command line

Jarkko Sakkinen (1):
x86/sgx: Fix size overflows in sgx_encl_create()

Pawan Gupta (2):
x86/speculation: Simplify and make CALL_NOSPEC consistent
x86/speculation: Add a conditional CS prefix to CALL_NOSPEC

arch/x86/boot/compressed/pgtable_64.c | 2 ++
arch/x86/include/asm/nospec-branch.h | 32 ++++++++++++---------
arch/x86/kernel/cpu/cacheinfo.c | 2 +-
arch/x86/kernel/cpu/intel.c | 52 +++++++++++++++++++++++------------
arch/x86/kernel/cpu/sgx/ioctl.c | 7 +++++
5 files changed, 64 insertions(+), 31 deletions(-)