kernel-hacking-2024-linux-s.../arch/riscv/kernel
Jisheng Zhang 7ae11635ec
riscv: keep interrupts disabled for BREAKPOINT exception
Current riscv's kprobe handlers are run with both preemption and
interrupt enabled, this violates kprobe requirements. Fix this issue
by keeping interrupts disabled for BREAKPOINT exception.

Fixes: c22b0bcb1d ("riscv: Add kprobes supported")
Cc: stable@vger.kernel.org
Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Reviewed-by: Masami Hiramatsu <mhiramat@kernel.org>
[Palmer: add a comment]
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
2021-04-15 21:32:40 -07:00
..
probes riscv: kprobes/ftrace: Add recursion protection to the ftrace callback 2021-04-15 21:32:34 -07:00
vdso riscv: Disable KSAN_SANITIZE for vDSO 2021-02-22 17:51:23 -08:00
.gitignore
asm-offsets.c riscv: Enable per-task stack canaries 2021-01-14 15:09:10 -08:00
cacheinfo.c riscv: cacheinfo: Fix using smp_processor_id() in preemptible 2021-01-12 20:25:32 -08:00
cpu-hotplug.c
cpu.c
cpu_ops.c
cpu_ops_sbi.c
cpu_ops_spinwait.c
cpufeature.c
efi-header.S
efi.c
entry.S riscv: keep interrupts disabled for BREAKPOINT exception 2021-04-15 21:32:40 -07:00
fpu.S
ftrace.c riscv: Using PATCHABLE_FUNCTION_ENTRY instead of MCOUNT 2021-01-14 15:09:05 -08:00
head.h
head.S riscv: add BUILTIN_DTB support for MMU-enabled targets 2021-02-18 23:17:54 -08:00
image-vars.h arch/riscv:fix typo in a comment in arch/riscv/kernel/image-vars.h 2021-02-18 23:18:00 -08:00
irq.c
jump_label.c
kgdb.c
Makefile riscv: syscall_table: Reduce W=1 compilation warnings noise 2021-03-09 20:46:04 -08:00
mcount-dyn.S riscv: Using PATCHABLE_FUNCTION_ENTRY instead of MCOUNT 2021-01-14 15:09:05 -08:00
mcount.S
module-sections.c
module.c
patch.c riscv: Fixup compile error BUILD_BUG_ON failed 2021-01-14 15:09:01 -08:00
perf_callchain.c
perf_event.c
perf_regs.c
process.c riscv: process: Fix no prototype for show_regs 2021-03-09 20:46:05 -08:00
ptrace.c RISC-V: Implement ptrace regs and stack API 2021-01-14 15:09:01 -08:00
reset.c
riscv_ksyms.c
sbi.c riscv: sbi: Fix comment of __sbi_set_timer_v01 2021-03-09 20:46:01 -08:00
setup.c RISC-V: Fix out-of-bounds accesses in init_resources() 2021-03-16 21:55:11 -07:00
signal.c riscv: Add uprobes supported 2021-01-14 15:09:08 -08:00
smp.c
smpboot.c riscv: Add numa support for riscv64 platform 2021-01-14 15:08:58 -08:00
soc.c riscv: Fix builtin DTB handling 2021-01-07 19:00:50 -08:00
stacktrace.c riscv: Drop const annotation for sp 2021-04-01 21:37:03 -07:00
sys_riscv.c
syscall_table.c
time.c riscv: time: Fix no prototype for time_init 2021-03-09 20:46:03 -08:00
traps.c riscv: add do_page_fault and do_trap_break into the kprobes blacklist 2021-04-15 21:32:28 -07:00
traps_misaligned.c
vdso.c riscv: Fixup CONFIG_GENERIC_TIME_VSYSCALL 2021-01-12 20:34:44 -08:00
vmlinux.lds.S