]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ext4: Add sanity checks for the superblock before mounting the filesystem
authorTheodore Ts'o <tytso@mit.edu>
Tue, 17 Feb 2009 15:58:40 +0000 (10:58 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 20 Feb 2009 22:37:17 +0000 (14:37 -0800)
commit235cda408948bb340b37340056e55ca13bd3137f
tree2d3457afc0ddd04c0f1e2978e09f9723038ab9d7
parentf8d361c98a108815de00dec15c63a9d161005e9a
ext4: Add sanity checks for the superblock before mounting the filesystem

(cherry picked from commit 4ec110281379826c5cf6ed14735e47027c3c5765)

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/ext4/super.c