https://github.com/torvalds/linux
Revision 808bf29b9195c52239b9aaeda7c6082a0ddf07c6 authored by Alexander Sverdlin on 21 September 2011, 07:51:40 UTC, committed by Linus Torvalds on 21 September 2011, 20:18:52 UTC
When a malformed loglevel value (for example "${abc}") is passed on the
kernel cmdline, the loglevel itself is being set to 0.

That then suppresses all following messages, including all the errors
and crashes caused by other malformed cmdline options.  This could make
debugging process quite tricky.

This patch leaves the previous value of loglevel if the new value is
incorrect and reports an error code in this case.

Signed-off-by: Alexander Sverdlin <alexander.sverdlin@sysgo.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 32ef438
History
Tip revision: 808bf29b9195c52239b9aaeda7c6082a0ddf07c6 authored by Alexander Sverdlin on 21 September 2011, 07:51:40 UTC
init: carefully handle loglevel option on kernel cmdline.
Tip revision: 808bf29
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1014 bytes
.mailmap -rw-r--r-- 4.1 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 92.6 KB
Kbuild -rw-r--r-- 2.4 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 196.7 KB
Makefile -rw-r--r-- 52.3 KB
README -rw-r--r-- 17.0 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top