diff options
author | Helge Deller <deller@gmx.de> | 2021-10-09 22:21:49 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2021-10-30 23:11:00 +0200 |
commit | ec5c115050f59114e216212837f1c1ebc54bdfc9 (patch) | |
tree | 8ad26dd52d20103662d44efbe69066391b338547 /arch/parisc/kernel/traps.c | |
parent | parisc: Switch to ARCH_STACKWALK implementation (diff) | |
download | linux-ec5c115050f59114e216212837f1c1ebc54bdfc9.tar.xz linux-ec5c115050f59114e216212837f1c1ebc54bdfc9.zip |
parisc: Add KFENCE support
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to '')
-rw-r--r-- | arch/parisc/kernel/traps.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/parisc/kernel/traps.c b/arch/parisc/kernel/traps.c index 747c328fb886..524781eae4dd 100644 --- a/arch/parisc/kernel/traps.c +++ b/arch/parisc/kernel/traps.c @@ -30,6 +30,7 @@ #include <linux/ratelimit.h> #include <linux/uaccess.h> #include <linux/kdebug.h> +#include <linux/kfence.h> #include <asm/assembly.h> #include <asm/io.h> @@ -787,6 +788,10 @@ void notrace handle_interruption(int code, struct pt_regs *regs) /* Clean up and return if in exception table. */ if (fixup_exception(regs)) return; + /* Clean up and return if handled by kfence. */ + if (kfence_handle_page_fault(fault_address, + parisc_acctyp(code, regs->iir) == VM_WRITE, regs)) + return; pdc_chassis_send_status(PDC_CHASSIS_DIRECT_PANIC); parisc_terminate("Kernel Fault", regs, code, fault_address); } |