Skip to contentSkip to conversation

Kconfig allows LOG_BUF_SHIFT parameters that lead to disfunctional kernel

PATCH New bert hubert 1 participant 1 message Jul 2, 2003

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Kconfig allows LOG_BUF_SHIFT parameters that lead to disfunctional kernel

[also sent to akpm in a separate message that was posted to
'[email protected] by accident]

Attached patch adds a range check to LOG_BUF_SHIFT and clarifies the configuration somewhat. I managed to build a non-booting kernel because I thought 64 was a nice power of two, which lead to the kernel blocking when it tried to actually use or allocate a 2^64 buffer.

Please apply, would've saved me a few hours of debugging.

Kconfig renamed from Kconfig~ +2 -1
@@ -93,7 +93,8 @@
 	  limited in memory.
 
 config LOG_BUF_SHIFT
-	int "Kernel log buffer size" if DEBUG_KERNEL
+	int "Kernel log buffer size (16 => 64KB, 17 => 128KB)" if DEBUG_KERNEL
+	range 12 20
 	default 17 if ARCH_S390
 	default 16 if X86_NUMAQ || IA64
 	default 15 if SMP
Signature · 2 lines
http://www.PowerDNS.com      Open source, database driven DNS Software 
http://lartc.org           Linux Advanced Routing & Traffic Control HOWTO