]> Gentwo Git Trees - linux/.git/commit
kprobes: Use RCU in all users of __module_text_address().
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Wed, 29 Jan 2025 08:49:25 +0000 (09:49 +0100)
committerPetr Pavlu <petr.pavlu@suse.com>
Mon, 17 Feb 2025 09:43:34 +0000 (10:43 +0100)
commit9446f285eb6fcd526ae790e5b35350a561c2cce2
tree53d7b3c5db857671777acf8fa82f93598f6acfff
parent6e263b4fdc9722fc7dabcb7b7277a5b136268ad9
kprobes: Use RCU in all users of __module_text_address().

__module_text_address() can be invoked within a RCU section, there is no
requirement to have preemption disabled.

Replace the preempt_disable() section around __module_text_address()
with RCU.

Cc: David S. Miller <davem@davemloft.net>
Cc: Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Naveen N Rao <naveen@kernel.org>
Cc: linux-trace-kernel@vger.kernel.org
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20250129084925.9ppBjGLC@linutronix.de
Signed-off-by: Petr Pavlu <petr.pavlu@suse.com>
kernel/kprobes.c