]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ext4: Add sanity checks for the superblock before mounting the filesystem
authorTheodore Ts'o <tytso@mit.edu>
Tue, 17 Feb 2009 15:32:38 +0000 (10:32 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 20 Feb 2009 22:40:28 +0000 (14:40 -0800)
commit6a09fd55e8ea8312125ec6f7b86dad9ea44991b7
treedce45d914aaa1898bd9d3b2468c449f111647caa
parent29491134159a142518318e078db203334c056bee
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