* [PATCH] parisc: Try to fixup kernel exception in bad_area_nosemaphore path of do_page_fault()
@ 2025-07-21 20:13 John David Anglin
0 siblings, 0 replies; only message in thread
From: John David Anglin @ 2025-07-21 20:13 UTC (permalink / raw)
To: linux-parisc; +Cc: Helge Deller, James E.J. Bottomley
[-- Attachment #1: Type: text/plain, Size: 576 bytes --]
parisc: Try to fixup kernel exception in bad_area_nosemaphore path of do_page_fault()
Signed-off-by: John David Anglin <dave.anglin@bell.net>
---
diff --git a/arch/parisc/mm/fault.c b/arch/parisc/mm/fault.c
index c39de84e98b0..f1785640b049 100644
--- a/arch/parisc/mm/fault.c
+++ b/arch/parisc/mm/fault.c
@@ -363,6 +363,10 @@ void do_page_fault(struct pt_regs *regs, unsigned long code,
mmap_read_unlock(mm);
bad_area_nosemaphore:
+ if (!user_mode(regs) && fixup_exception(regs)) {
+ return;
+ }
+
if (user_mode(regs)) {
int signo, si_code;
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2025-07-21 20:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-21 20:13 [PATCH] parisc: Try to fixup kernel exception in bad_area_nosemaphore path of do_page_fault() John David Anglin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox