On Fri 2024-12-20 18:41:20, Sebastian Andrzej Siewior wrote: > The modules list and module::kallsyms can be accessed under RCU > assumption. > > Remove module_assert_mutex_or_preempt() from find_module_all() so it can > be used under RCU protection without warnings. Update its callers to use > RCU protection instead of preempt_disable(). > > Cc: Jiri Kosina <jikos@xxxxxxxxxx> > Cc: Joe Lawrence <joe.lawrence@xxxxxxxxxx> > Cc: Josh Poimboeuf <jpoimboe@xxxxxxxxxx> > Cc: Masami Hiramatsu <mhiramat@xxxxxxxxxx> > Cc: Mathieu Desnoyers <mathieu.desnoyers@xxxxxxxxxxxx> > Cc: Miroslav Benes <mbenes@xxxxxxx> > Cc: Petr Mladek <pmladek@xxxxxxxx> > Cc: Steven Rostedt <rostedt@xxxxxxxxxxx> > Cc: linux-trace-kernel@xxxxxxxxxxxxxxx > Cc: live-patching@xxxxxxxxxxxxxxx > Signed-off-by: Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx> > --- > include/linux/module.h | 2 +- > kernel/livepatch/core.c | 4 +--- > kernel/module/kallsyms.c | 1 + > kernel/module/main.c | 6 ++---- > kernel/trace/trace_kprobe.c | 9 +++------ > 5 files changed, 8 insertions(+), 14 deletions(-) I looked primary on the changes in the livepatch code. But the entire patch looks good to me: Reviewed-by: Petr Mladek <pmladek@xxxxxxxx> Best Regards, Petr