diff options
author | Masami Hiramatsu (Google) <mhiramat@kernel.org> | 2022-08-02 09:04:16 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2022-08-02 13:35:04 +0300 |
commit | dec8784c9088b131a1523f582c2194cfc8107dc0 (patch) | |
tree | bc17e45a99172dc9dbd541538d41b7f0924a8288 /scripts/faddr2line | |
parent | 28f6c37a2910f565b4f5960df52b2eccae28c891 (diff) | |
download | linux-dec8784c9088b131a1523f582c2194cfc8107dc0.tar.xz |
x86/kprobes: Update kcb status flag after singlestepping
Fix kprobes to update kcb (kprobes control block) status flag to
KPROBE_HIT_SSDONE even if the kp->post_handler is not set.
This bug may cause a kernel panic if another INT3 user runs right
after kprobes because kprobe_int3_handler() misunderstands the
INT3 is kprobe's single stepping INT3.
Fixes: 6256e668b7af ("x86/kprobes: Use int3 instead of debug trap for single-step")
Reported-by: Daniel Müller <deso@posteo.net>
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Tested-by: Daniel Müller <deso@posteo.net>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/all/20220727210136.jjgc3lpqeq42yr3m@muellerd-fedora-PC2BDTX9
Link: https://lore.kernel.org/r/165942025658.342061.12452378391879093249.stgit@devnote2
Diffstat (limited to 'scripts/faddr2line')
0 files changed, 0 insertions, 0 deletions