diff options
author | Jisheng Zhang <jszhang@kernel.org> | 2021-03-29 21:16:24 +0300 |
---|---|---|
committer | Palmer Dabbelt <palmerdabbelt@google.com> | 2021-04-16 07:32:40 +0300 |
commit | 7ae11635ec90072083503c6b6485cdffe46203b3 (patch) | |
tree | f7914021e422b50549e819decdb5992901ebe276 /kernel/sysctl-test.c | |
parent | e31be8d343e64e7ab17aef55c1d1b36dc504da67 (diff) | |
download | linux-7ae11635ec90072083503c6b6485cdffe46203b3.tar.xz |
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")
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>
Diffstat (limited to 'kernel/sysctl-test.c')
0 files changed, 0 insertions, 0 deletions