linux/arch/riscv/kernel/probes
Jisheng Zhang 02ccdeed18
riscv: kprobes: Fix build error when MMU=n
lkp reported a randconfig failure:

arch/riscv/kernel/probes/kprobes.c:90:22: error: use of undeclared identifier 'PAGE_KERNEL_READ_EXEC'

We implemented the alloc_insn_page() to allocate PAGE_KERNEL_READ_EXEC
page for kprobes insn page for STRICT_MODULE_RWX. But if MMU=n, we
should fall back to the generic weak alloc_insn_page() by generic
kprobe subsystem.

Fixes: cdd1b2bd35 ("riscv: kprobes: Implement alloc_insn_page()")
Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
2021-05-22 22:04:58 -07:00
..
decode-insn.c RISC-V: probes: Treat the instruction stream as host-endian 2021-02-18 23:18:02 -08:00
decode-insn.h
ftrace.c riscv: kprobes/ftrace: Add recursion protection to the ftrace callback 2021-04-15 21:32:34 -07:00
kprobes_trampoline.S
kprobes.c riscv: kprobes: Fix build error when MMU=n 2021-05-22 22:04:58 -07:00
Makefile riscv: Add uprobes supported 2021-01-14 15:09:08 -08:00
simulate-insn.c
simulate-insn.h
uprobes.c riscv: Add uprobes supported 2021-01-14 15:09:08 -08:00