Skip to content

Commit 28118dc

Browse files
Peter Zijlstragregkh
authored andcommitted
locking/lockdep: Avoid RCU-induced noinstr fail
[ Upstream commit ce0b9c8 ] 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) <peterz@infradead.org> Link: https://lore.kernel.org/r/20210624095148.311980536@infradead.org Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent b92a5df commit 28118dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎kernel/locking/lockdep.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ look_up_lock_class(const struct lockdep_map *lock, unsigned int subclass)
887887
if (DEBUG_LOCKS_WARN_ON(!irqs_disabled()))
888888
return NULL;
889889

890-
hlist_for_each_entry_rcu(class, hash_head, hash_entry) {
890+
hlist_for_each_entry_rcu_notrace(class, hash_head, hash_entry) {
891891
if (class->key == key) {
892892
/*
893893
* Huh! same key, different name? Did someone trample

0 commit comments

Comments
 (0)