module: use RCU to synchronize find_module
authorChristoph Hellwig <hch@lst.de>
Tue, 2 Feb 2021 12:13:25 +0000 (13:13 +0100)
committerJessica Yu <jeyu@kernel.org>
Mon, 8 Feb 2021 11:21:40 +0000 (12:21 +0100)
commita006050575745ca2be25118b90f1c37f454ac542
tree443ebee9efd98b83825c939c1a8879613ac32561
parent089049f6c9956c5cf1fc89fe10229c76e99f4bef
module: use RCU to synchronize find_module

Allow for a RCU-sched critical section around find_module, following
the lower level find_module_all helper, and switch the two callers
outside of module.c to use such a RCU-sched critical section instead
of module_mutex.

Reviewed-by: Petr Mladek <pmladek@suse.com>
Acked-by: Miroslav Benes <mbenes@suse.cz>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jessica Yu <jeyu@kernel.org>
include/linux/module.h
kernel/livepatch/core.c
kernel/module.c
kernel/trace/trace_kprobe.c