kprobes: Use non RCU traversal APIs on kprobe_tables if possible
authorMasami Hiramatsu <mhiramat@kernel.org>
Tue, 12 May 2020 08:02:44 +0000 (17:02 +0900)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Wed, 17 Jun 2020 01:21:01 +0000 (21:21 -0400)
commit7e6a71d8e60187726e29b13d9e9b23b77026c17a
treebb464ab9c2c40fe45d4e877e3c50d984e31dc091
parent6743ad432ec92e680cd0d9db86cb17b949cf5a43
kprobes: Use non RCU traversal APIs on kprobe_tables if possible

Current kprobes uses RCU traversal APIs on kprobe_tables
even if it is safe because kprobe_mutex is locked.

Make those traversals to non-RCU APIs where the kprobe_mutex
is locked.

Link: http://lkml.kernel.org/r/158927056452.27680.9710575332163005121.stgit@devnote2
Reviewed-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/kprobes.c