Skip to content

Commit a365a65

Browse files
Li Huafeisuryasaimadhu
authored andcommitted
x86/traps: Mark do_int3() NOKPROBE_SYMBOL
Since kprobe_int3_handler() is called in do_int3(), probing do_int3() can cause a breakpoint recursion and crash the kernel. Therefore, do_int3() should be marked as NOKPROBE_SYMBOL. Fixes: 21e2829 ("x86/traps: Split int3 handler up") Signed-off-by: Li Huafei <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Acked-by: Masami Hiramatsu <[email protected]> Cc: <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 445c147 commit a365a65

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/x86/kernel/traps.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,7 @@ static bool do_int3(struct pt_regs *regs)
659659

660660
return res == NOTIFY_STOP;
661661
}
662+
NOKPROBE_SYMBOL(do_int3);
662663

663664
static void do_int3_user(struct pt_regs *regs)
664665
{

0 commit comments

Comments
 (0)