summaryrefslogtreecommitdiff
path: root/rust/helpers/build_bug.c
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2025-01-08 12:04:39 +0300
committerPetr Pavlu <petr.pavlu@suse.com>2025-03-10 13:54:44 +0300
commit2ff49f8931be8bed53e65993fd1af68e3cd747cb (patch)
tree421019b12fb15c4a0d7bfd922bd887cc185b624e /rust/helpers/build_bug.c
parent435bbcc3bef602ce3920382f339d3cd65e46ad23 (diff)
downloadlinux-2ff49f8931be8bed53e65993fd1af68e3cd747cb.tar.xz
module: Use RCU in find_symbol().
module_assert_mutex_or_preempt() is not needed in find_symbol(). The function checks for RCU-sched or the module_mutex to be acquired. The list_for_each_entry_rcu() below does the same check. Remove module_assert_mutex_or_preempt() from try_add_tainted_module(). Use RCU protection to invoke find_symbol() and update callers. 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-11-bigeasy@linutronix.de Signed-off-by: Petr Pavlu <petr.pavlu@suse.com>
Diffstat (limited to 'rust/helpers/build_bug.c')
0 files changed, 0 insertions, 0 deletions