]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bug: Use RCU instead RCU-sched to protect module_bug_list.
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Wed, 8 Jan 2025 09:04:57 +0000 (10:04 +0100)
committerPetr Pavlu <petr.pavlu@suse.com>
Mon, 10 Mar 2025 10:54:46 +0000 (11:54 +0100)
commitf47d2a3f7542a5507b4072fb768a2258071ff519
treec7701b4d2fca465a424ab4fcbc29a850caebd77e
parent3983da398c26962e1d7ce691e83c968f7587d285
bug: Use RCU instead RCU-sched to protect module_bug_list.

The list module_bug_list relies on module_mutex for writer
synchronisation. The list is already RCU style.
The list removal is synchronized with modules' synchronize_rcu() in
free_module().

Use RCU read lock protection instead of RCU-sched.

Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20250108090457.512198-29-bigeasy@linutronix.de
Signed-off-by: Petr Pavlu <petr.pavlu@suse.com>
lib/bug.c