]> git.hungrycats.org Git - linux/commit
ext3: Add sanity check to make_indexed_dir
authorTheodore Ts'o <tytso@mit.edu>
Fri, 16 Jan 2009 16:13:47 +0000 (11:13 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 Feb 2009 17:53:24 +0000 (09:53 -0800)
commit1fabb05a03cec301e40fbe5c8036c839b983c350
tree2d34960148ec71f1c495787fdd80d39d2a0f972f
parente11aab2d66df7c69df336d0f06f61b6a6050ca68
ext3: Add sanity check to make_indexed_dir

commit a21102b55c4f8dfd3adb4a15a34cd62237b46039 upstream.

Make sure the rec_len field in the '..' entry is sane, lest we overrun
the directory block and cause a kernel oops on a purposefully
corrupted filesystem.

This fixes a bug related to a bug originally reported by Sami Liedes
for ext4 at:

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

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/ext3/namei.c