]> www.infradead.org Git - users/jedix/linux-maple.git/commit
riscv: keep interrupts disabled for BREAKPOINT exception
authorJisheng Zhang <jszhang@kernel.org>
Mon, 29 Mar 2021 18:16:24 +0000 (02:16 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Mon, 12 Apr 2021 01:07:29 +0000 (18:07 -0700)
commit79c338ab575e16f8e5195d76cb81638fddaf6a55
treef7914021e422b50549e819decdb5992901ebe276
parent6ee7375f4f0c3b215cbd0a45aede194507bceae0
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: c22b0bcb1dd0 ("riscv: Add kprobes supported")
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>
arch/riscv/kernel/entry.S