Skip to contentSkip to conversation

parisc: Try to fixup kernel exception in bad_area_nosemaphore path of do_page_fault()

PATCH New John David Anglin 1 participant 1 message Jul 21, 2025 PA-RISC architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 parisc: Try to fixup kernel exception in bad_area_nosemaphore path of do_page_fault()

parisc: Try to fixup kernel exception in bad_area_nosemaphore path of do_page_fault()

---

arch/parisc/mm/fault.c +4 -0
index c39de84e98b0..f1785640b049 100644
@@ -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;