]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
kprobes: Tell lockdep about kprobe nesting
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Mon, 2 Nov 2020 14:17:49 +0000 (09:17 -0500)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Wed, 4 Nov 2020 14:46:06 +0000 (09:46 -0500)
commit645f224e7ba2f4200bf163153d384ceb0de5462e
tree8e4d6abaf425a9cf9b253f0dba60b9ca98102dcb
parent561ca66910bf597f170be5a7aa531c4e05f8e9be
kprobes: Tell lockdep about kprobe nesting

Since the kprobe handlers have protection that prohibits other handlers from
executing in other contexts (like if an NMI comes in while processing a
kprobe, and executes the same kprobe, it will get fail with a "busy"
return). Lockdep is unaware of this protection. Use lockdep's nesting api to
differentiate between locks taken in INT3 context and other context to
suppress the false warnings.

Link: https://lore.kernel.org/r/20201102160234.fa0ae70915ad9e2b21c08b85@kernel.org
Cc: Peter Zijlstra <peterz@infradead.org>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/kprobes.c