Skip to content

Commit 2545af5

Browse files
danglin44gregkh
authored andcommitted
parisc: Try to fixup kernel exception in bad_area_nosemaphore path of do_page_fault()
commit f92a5e3 upstream. Signed-off-by: John David Anglin <dave.anglin@bell.net> Signed-off-by: Helge Deller <deller@gmx.de> Cc: stable@vger.kernel.org # v5.12+ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 9b6af87 commit 2545af5

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)