[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <162443634810.395.1660357312688822086.tip-bot2@tip-bot2>
Date: Wed, 23 Jun 2021 08:19:08 -0000
From: "tip-bot2 for Peter Zijlstra" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: "Peter Zijlstra (Intel)" <peterz@...radead.org>,
Joerg Roedel <jroedel@...e.de>, x86@...nel.org,
linux-kernel@...r.kernel.org
Subject: [tip: locking/core] lockdep/selftests: Fix selftests vs
PROVE_RAW_LOCK_NESTING
The following commit has been merged into the locking/core branch of tip:
Commit-ID: c0c2c0dad6a06e0c05e9a52d65f932bd54364c97
Gitweb: https://git.kernel.org/tip/c0c2c0dad6a06e0c05e9a52d65f932bd54364c97
Author: Peter Zijlstra <peterz@...radead.org>
AuthorDate: Thu, 17 Jun 2021 20:57:19 +02:00
Committer: Peter Zijlstra <peterz@...radead.org>
CommitterDate: Tue, 22 Jun 2021 16:42:08 +02:00
lockdep/selftests: Fix selftests vs PROVE_RAW_LOCK_NESTING
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: de8f5e4f2dc1 ("lockdep: Introduce wait-type checks")
Signed-off-by: Peter Zijlstra (Intel) <peterz@...radead.org>
Tested-by: Joerg Roedel <jroedel@...e.de>
Link: https://lore.kernel.org/r/20210617190313.322096283@infradead.org
---
lib/locking-selftest.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/locking-selftest.c b/lib/locking-selftest.c
index 5c50b09..af12e84 100644
--- a/lib/locking-selftest.c
+++ b/lib/locking-selftest.c
@@ -195,6 +195,7 @@ static void init_shared_classes(void)
#define HARDIRQ_ENTER() \
local_irq_disable(); \
__irq_enter(); \
+ lockdep_hardirq_threaded(); \
WARN_ON(!in_irq());
#define HARDIRQ_EXIT() \
Powered by blists - more mailing lists