Skip to content

Commit f92a5e3

Browse files
danglin44hdeller
authored andcommitted
parisc: Try to fixup kernel exception in bad_area_nosemaphore path of do_page_fault()
Signed-off-by: John David Anglin <[email protected]> Signed-off-by: Helge Deller <[email protected]> Cc: [email protected] # v5.12+
1 parent 802e554 commit f92a5e3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

arch/parisc/mm/fault.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,10 @@ void do_page_fault(struct pt_regs *regs, unsigned long code,
363363
mmap_read_unlock(mm);
364364

365365
bad_area_nosemaphore:
366+
if (!user_mode(regs) && fixup_exception(regs)) {
367+
return;
368+
}
369+
366370
if (user_mode(regs)) {
367371
int signo, si_code;
368372

0 commit comments

Comments
 (0)