riscv/mm: Add handling for VM_FAULT_SIGSEGV in mm_fault_error()
authorZhe Qiao <qiaozhe@iscas.ac.cn>
Wed, 31 Jul 2024 08:45:47 +0000 (16:45 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 1 Aug 2024 14:15:27 +0000 (07:15 -0700)
commit0c710050c47d45eb77b28c271cddefc5c785cb40
tree693bf290fb89344562665ebc25f5d6b1fb66e3a8
parent941a8e9b7a86763ac52d5bf6ccc9986d37fde628
riscv/mm: Add handling for VM_FAULT_SIGSEGV in mm_fault_error()

Handle VM_FAULT_SIGSEGV in the page fault path so that we correctly
kill the process and we don't BUG() the kernel.

Fixes: 07037db5d479 ("RISC-V: Paging and MMU")
Signed-off-by: Zhe Qiao <qiaozhe@iscas.ac.cn>
Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Link: https://lore.kernel.org/r/20240731084547.85380-1-qiaozhe@iscas.ac.cn
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/mm/fault.c