ext4: Add sanity checks for the superblock before mounting the filesystem
authorTheodore Ts'o <tytso@mit.edu>
Tue, 6 Jan 2009 19:53:26 +0000 (14:53 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 6 Jan 2009 19:53:26 +0000 (14:53 -0500)
commit4ec110281379826c5cf6ed14735e47027c3c5765
tree593bcbafe3541264e4effe5310546617de0a76ce
parentb3881f74b31b7d47d0f1c4d89ac3e7f0b9c05e3e
ext4: Add sanity checks for the superblock before mounting the filesystem

This avoids insane superblock configurations that could lead to kernel
oops due to null pointer derefences.

http://bugzilla.kernel.org/show_bug.cgi?id=12371

Thanks to David Maciejak at Fortinet's FortiGuard Global Security
Research Team who discovered this bug independently (but at
approximately the same time) as Thiemo Nagel, who submitted the patch.

Signed-off-by: Thiemo Nagel <thiemo.nagel@ph.tum.de>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: stable@kernel.org
fs/ext4/super.c