Revision 294f6cf48666825d23c9372ef37631232746e40d authored by Timo Warns on 25 February 2011, 22:44:21 UTC, committed by Linus Torvalds on 25 February 2011, 23:07:36 UTC
The kernel automatically evaluates partition tables of storage devices.
The code for evaluating LDM partitions (in fs/partitions/ldm.c) contains
a bug that causes a kernel oops on certain corrupted LDM partitions.  A
kernel subsystem seems to crash, because, after the oops, the kernel no
longer recognizes newly connected storage devices.

The patch changes ldm_parse_vmdb() to Validate the value of vblk_size.

Signed-off-by: Timo Warns <warns@pre-sense.de>
Cc: Eugene Teo <eugeneteo@kernel.sg>
Acked-by: Richard Russon <ldm@flatcap.org>
Cc: Harvey Harrison <harvey.harrison@gmail.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 2876592
History
File Mode Size
c2port
cb710
eeprom
ibmasm
iwmc3200top
sgi-gru
sgi-xp
ti-st
Kconfig -rw-r--r-- 15.7 KB
Makefile -rw-r--r-- 1.6 KB
ab8500-pwm.c -rw-r--r-- 3.8 KB
ad525x_dpot-i2c.c -rw-r--r-- 3.0 KB
ad525x_dpot-spi.c -rw-r--r-- 3.9 KB
ad525x_dpot.c -rw-r--r-- 20.3 KB
ad525x_dpot.h -rw-r--r-- 7.9 KB
apds9802als.c -rw-r--r-- 8.2 KB
apds990x.c -rw-r--r-- 34.3 KB
arm-charlcd.c -rw-r--r-- 9.3 KB
atmel-ssc.c -rw-r--r-- 3.5 KB
atmel_pwm.c -rw-r--r-- 9.2 KB
atmel_tclib.c -rw-r--r-- 3.6 KB
bh1770glc.c -rw-r--r-- 37.9 KB
bh1780gli.c -rw-r--r-- 6.1 KB
bmp085.c -rw-r--r-- 12.8 KB
cs5535-mfgpt.c -rw-r--r-- 9.2 KB
ds1682.c -rw-r--r-- 7.0 KB
enclosure.c -rw-r--r-- 15.5 KB
ep93xx_pwm.c -rw-r--r-- 9.5 KB
hmc6352.c -rw-r--r-- 4.2 KB
hpilo.c -rw-r--r-- 20.8 KB
hpilo.h -rw-r--r-- 5.6 KB
ics932s401.c -rw-r--r-- 13.4 KB
ioc4.c -rw-r--r-- 14.4 KB
isl29003.c -rw-r--r-- 11.6 KB
isl29020.c -rw-r--r-- 5.7 KB
kgdbts.c -rw-r--r-- 28.7 KB
lkdtm.c -rw-r--r-- 15.2 KB
pch_phub.c -rw-r--r-- 20.7 KB
phantom.c -rw-r--r-- 13.3 KB
ti_dac7512.c -rw-r--r-- 2.5 KB
tifm_7xx1.c -rw-r--r-- 11.1 KB
tifm_core.c -rw-r--r-- 8.2 KB
tsl2550.c -rw-r--r-- 10.7 KB
vmw_balloon.c -rw-r--r-- 21.2 KB

back to top