summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorMukesh Kumar Chaurasiya (IBM) <mkchauras@gmail.com>2026-06-15 19:26:17 +0300
committerMadhavan Srinivasan <maddy@linux.ibm.com>2026-06-16 12:37:40 +0300
commit4e1187e12de40b5301977b2476d21b569358dafb (patch)
treeb5d8b76c046fe06133885b4a023c82c10d7ac3f3 /include/linux
parent5c86f1c1f972761a04bf22f4c0618d1aa714185b (diff)
downloadlinux-4e1187e12de40b5301977b2476d21b569358dafb.tar.xz
powerpc: Restore KUAP registers on syscall restart exit
During a syscall restart, block KUAP so that pending interrupts can be replayed. The original KUAP state is not restored before returning to userspace, causing subsequent userspace accesses to fault and eventually trigger bad_access_pkey(), crashing the kernel. The original KUAP register values are already saved in arch_enter_from_user_mode(). Restore them on the syscall restart exit path before returning to userspace. Fixes: bee25f97ad24 ("powerpc: Enable GENERIC_ENTRY feature") Reported-by: Sayali Patil <sayalip@linux.ibm.com> Closes: https://lore.kernel.org/linuxppc-dev/fcd11556-27ac-4cd7-8c77-50716dec6985@linux.ibm.com/ Signed-off-by: Mukesh Kumar Chaurasiya (IBM) <mkchauras@gmail.com> Tested-by: Sayali Patil <sayalip@linux.ibm.com> [Maddy: Added Closes tag] Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com> Link: https://patch.msgid.link/20260615162617.2861795-1-mkchauras@gmail.com
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions