Skip to contentSkip to conversation

lockdep-upper-limit-lockdep_chains_bits.patch removed from -mm tree

merged mm-nonmm-stable Andrew Morton 1 participant 1 message Sep 2, 2024

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: lockdep: upper limit LOCKDEP_CHAINS_BITS
has been removed from the -mm tree. Its filename was
lockdep-upper-limit-lockdep_chains_bits.patch

This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: "J. R. Okajima" <[email protected]>
Subject: lockdep: upper limit LOCKDEP_CHAINS_BITS
Date: Tue, 23 Jul 2024 16:40:17 +0000

CONFIG_LOCKDEP_CHAINS_BITS value decides the size of chain_hlocks[] in kernel/locking/lockdep.c, and it is checked by add_chain_cache() with

    BUILD_BUG_ON((1UL << 24) <= ARRAY_SIZE(chain_hlocks));

This patch is just to silence BUILD_BUG_ON().

See also https://lore.kernel.org/all/30795.1620913191@jrobl/

---

 lib/Kconfig.debug |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/Kconfig.debug renamed from lib/Kconfig.debug~lockdep-upper-limit-lockdep_chains_bits +1 -1
@@ -1515,7 +1515,7 @@ config LOCKDEP_BITS
 config LOCKDEP_CHAINS_BITS
 	int "Bitsize for MAX_LOCKDEP_CHAINS"
 	depends on LOCKDEP && !LOCKDEP_SMALL
-	range 10 30
+	range 10 21
 	default 16
 	help
 	  Try increasing this value if you hit "BUG: MAX_LOCKDEP_CHAINS too low!" message.

_

Patches currently in -mm which might be from [email protected] are