Skip to content

Commit f18f7a2

Browse files
Peter Zijlstragregkh
authored andcommitted
lockdep/selftests: Fix selftests vs PROVE_RAW_LOCK_NESTING
[ Upstream commit c0c2c0d ] When PROVE_RAW_LOCK_NESTING=y many of the selftests FAILED because HARDIRQ context is out-of-bounds for spinlocks. Instead make the default hardware context the threaded hardirq context, which preserves the old locking rules. The wait-type specific locking selftests will have a non-threaded HARDIRQ variant. Fixes: de8f5e4 ("lockdep: Introduce wait-type checks") Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Tested-by: Joerg Roedel <jroedel@suse.de> Link: https://lore.kernel.org/r/20210617190313.322096283@infradead.org Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent fca9e78 commit f18f7a2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎lib/locking-selftest.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ static void init_shared_classes(void)
186186
#define HARDIRQ_ENTER() \
187187
local_irq_disable(); \
188188
__irq_enter(); \
189+
lockdep_hardirq_threaded(); \
189190
WARN_ON(!in_irq());
190191

191192
#define HARDIRQ_EXIT() \

0 commit comments

Comments
 (0)