arm64 fixes for 7.4-rc2
Hi Linus,
Please pull the arm64 fixes below: SDEI (software delegated exception interface) handlers taking nested exceptions (looping on the KPTI trampoline vectors and clobbering the interrupted context's exception registers), TPIDR2_EL0 preservation across CPU suspend, a kexec_file_load() memory leak and an overflow in the /dev/mem valid_mmap_phys_addr_range() check.
Thanks.
The following changes since commit 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4:
Linux 7.4-rc1 (2026-11-01 13:26:31 -0800)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux tags/arm64-fixes
for you to fetch changes up to 58c1eb84e97701c583605ba2fd553b69afba2245:
arm64: sdei: Preserve the interrupted context's exception registers (2026-11-06 17:43:20 +0000)
----------------------------------------------------------------
arm64 fixes:
- Fix nested exceptions taken by SDEI event handlers. With KPTI, an event interrupting user space left the trampoline vectors installed and any exception in the handler looped forever. Also save and restore ELR/SPSR/ESR/FAR around the handler since an event can interrupt exception entry or return where these registers are live
- Save and restore TPIDR2_EL0 across CPU suspend. Its value is UNKNOWN after a warm reset and the task initiating suspend could return to user space with a corrupted value
- Fix an overflow in valid_mmap_phys_addr_range() allowing /dev/mem to map out-of-range PFNs
- Fix an elf_headers memory leak in the kexec_file segment placement retry loop
----------------------------------------------------------------
Jinjie Ruan (1):
arm64: kexec_file: Fix elf_headers memory leak in retry loop
Kiryl Shutsemau (Meta) (2):
arm64: sdei: Run the event handler on the kernel vectors
arm64: sdei: Preserve the interrupted context's exception registers
Wei Wang (1):
arm64: suspend: Save and restore TPIDR2_EL0 across CPU suspend
Zhao Gongyi (1):
arm64: mm: validate /dev/mem mmap ranges without overflow
arch/arm64/include/asm/sdei.h | 3 +- arch/arm64/include/asm/suspend.h | 2 +- arch/arm64/kernel/entry-common.c | 40 ++++++++++++++++++++++- arch/arm64/kernel/machine_kexec_file.c | 2 ++ arch/arm64/kernel/sdei.c | 59 +++++++++++++++++++++++++++------- arch/arm64/mm/mmap.c | 4 ++- arch/arm64/mm/proc.S | 8 +++++ 7 files changed, 103 insertions(+), 15 deletions(-)
Signature · 1 line
Catalin
The pull request you sent on Fri, 6 Nov 2026 20:01:17 +0000:
The pull request you sent on Fri, 6 Nov 2026 20:01:17 +0000:
Quoted 1 line
git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linuxtags/arm64-fixes
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/d48723711bae9b8cdc56719c448ba42fef28cbee
Thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/prtracker.html