Commit e46e0cf2 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Set limits on CONFIG_LOG_BUF_SHIFT

From: bert hubert <ahu@ds9a.nl>

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.
parent 90153a16
...@@ -93,7 +93,8 @@ config SYSCTL ...@@ -93,7 +93,8 @@ config SYSCTL
limited in memory. limited in memory.
config LOG_BUF_SHIFT 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 17 if ARCH_S390
default 16 if X86_NUMAQ || IA64 default 16 if X86_NUMAQ || IA64
default 15 if SMP default 15 if SMP
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment