From: Peter Zijlstra Date: Thu, 24 Jun 2021 09:41:10 +0000 (+0200) Subject: locking/lockdep: Avoid RCU-induced noinstr fail X-Git-Tag: v4.19.218~234 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=b92ad7afb83545076c60a21efcf3c6b3e463b790;p=users%2Fdwmw2%2Flinux.git locking/lockdep: Avoid RCU-induced noinstr fail [ Upstream commit ce0b9c805dd66d5e49fd53ec5415ae398f4c56e6 ] vmlinux.o: warning: objtool: look_up_lock_class()+0xc7: call to rcu_read_lock_any_held() leaves .noinstr.text section Signed-off-by: Peter Zijlstra (Intel) Link: https://lore.kernel.org/r/20210624095148.311980536@infradead.org Signed-off-by: Sasha Levin --- diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c index 126c6d524a0f2..4dc79f57af827 100644 --- a/kernel/locking/lockdep.c +++ b/kernel/locking/lockdep.c @@ -689,7 +689,7 @@ look_up_lock_class(const struct lockdep_map *lock, unsigned int subclass) if (DEBUG_LOCKS_WARN_ON(!irqs_disabled())) return NULL; - hlist_for_each_entry_rcu(class, hash_head, hash_entry) { + hlist_for_each_entry_rcu_notrace(class, hash_head, hash_entry) { if (class->key == key) { /* * Huh! same key, different name? Did someone trample