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
Kconfig -rw-r--r-- 3.2 KB
Kconfig.iosched -rw-r--r-- 1.9 KB
Makefile -rw-r--r-- 582 bytes
blk-barrier.c -rw-r--r-- 10.7 KB
blk-cgroup.c -rw-r--r-- 9.7 KB
blk-cgroup.h -rw-r--r-- 3.8 KB
blk-core.c -rw-r--r-- 67.0 KB
blk-exec.c -rw-r--r-- 2.6 KB
blk-integrity.c -rw-r--r-- 10.0 KB
blk-ioc.c -rw-r--r-- 3.9 KB
blk-iopoll.c -rw-r--r-- 5.9 KB
blk-map.c -rw-r--r-- 8.1 KB
blk-merge.c -rw-r--r-- 10.6 KB
blk-settings.c -rw-r--r-- 24.6 KB
blk-softirq.c -rw-r--r-- 4.1 KB
blk-sysfs.c -rw-r--r-- 13.8 KB
blk-tag.c -rw-r--r-- 9.9 KB
blk-timeout.c -rw-r--r-- 5.6 KB
blk.h -rw-r--r-- 4.5 KB
bsg.c -rw-r--r-- 23.5 KB
cfq-iosched.c -rw-r--r-- 98.5 KB
compat_ioctl.c -rw-r--r-- 22.1 KB
deadline-iosched.c -rw-r--r-- 11.4 KB
elevator.c -rw-r--r-- 24.5 KB
genhd.c -rw-r--r-- 29.9 KB
ioctl.c -rw-r--r-- 8.2 KB
noop-iosched.c -rw-r--r-- 2.6 KB
scsi_ioctl.c -rw-r--r-- 18.0 KB

back to top