]> git.baikalelectronics.ru Git - kernel.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>
Fri, 16 Apr 2021 04:32:40 +0000 (21:32 -0700)
commit3388de8ee29898957bf6e0867584a86b77c801c1
treef7914021e422b50549e819decdb5992901ebe276
parenta20b8a95fec0cf8b6d226cfeeef393f08cbd43df
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: 4f226a59bf84 ("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>
arch/riscv/kernel/entry.S