]> Git Repo - linux.git/commit
fs/partitions/ldm.c: fix oops caused by corrupted partition table
authorTimo Warns <[email protected]>
Thu, 14 Apr 2011 22:21:56 +0000 (15:21 -0700)
committerLinus Torvalds <[email protected]>
Thu, 14 Apr 2011 23:06:54 +0000 (16:06 -0700)
commitc340b1d640001c8c9ecff74f68fd90422ae2448a
tree2615bb9abb9fb956197c8f357dee388d15d82d81
parentc344180c9e77145a9e7eab0050169c68afae04b2
fs/partitions/ldm.c: fix oops caused by corrupted partition table

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 validates the value of vblk_size.

[[email protected]: coding-style fixes]
Signed-off-by: Timo Warns <[email protected]>
Cc: Eugene Teo <[email protected]>
Cc: Harvey Harrison <[email protected]>
Cc: Richard Russon <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/partitions/ldm.c
This page took 0.051511 seconds and 4 git commands to generate.