Revision 475f9aa6aa538befcbd0fa95bdebada600f247cd authored by Vitaly Mayatskikh on 11 May 2010, 21:06:51 UTC, committed by Linus Torvalds on 12 May 2010, 00:33:42 UTC
Two "echo 0 > /sys/kernel/kexec_crash_size" OOPSes kernel.  Also content
of this file is invalid after first shrink to zero: it shows 1 instead of
0.

This scenario is unlikely to happen often (root privs, valid crashkernel=
in cmdline, dump-capture kernel not loaded), I hit it only by chance.

This patch fixes it.

Signed-off-by: Vitaly Mayatskikh <v.mayatskih@gmail.com>
Cc: Cong Wang <amwang@redhat.com>
Cc: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent d586ebb
History
File Mode Size
integrity
keys
selinux
smack
tomoyo
Kconfig -rw-r--r-- 6.2 KB
Makefile -rw-r--r-- 835 bytes
capability.c -rw-r--r-- 24.4 KB
commoncap.c -rw-r--r-- 26.6 KB
device_cgroup.c -rw-r--r-- 11.8 KB
inode.c -rw-r--r-- 8.7 KB
lsm_audit.c -rw-r--r-- 8.7 KB
min_addr.c -rw-r--r-- 1.3 KB
security.c -rw-r--r-- 33.5 KB

back to top