riscv: extable: add a dedicated uaccess handler
authorJisheng Zhang <jszhang@kernel.org>
Thu, 18 Nov 2021 11:26:51 +0000 (19:26 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 6 Jan 2022 01:53:29 +0000 (17:53 -0800)
commit20802d8d477d5771368fdac8d476285adc713af0
tree6a89702c494a0eb3c28f0755db26de4576f0a35d
parentff4b8cad3a81b3e55b143c689686134d134e2416
riscv: extable: add a dedicated uaccess handler

Inspired by commit 2e77a62cb3a6 ("arm64: extable: add a dedicated
uaccess handler"), do similar to riscv to add a dedicated uaccess
exception handler to update registers in exception context and
subsequently return back into the function which faulted, so we remove
the need for fixups specialized to each faulting instruction.

Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/asm-extable.h
arch/riscv/include/asm/futex.h
arch/riscv/include/asm/uaccess.h
arch/riscv/mm/extable.c