]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - fs/ext4/namei.c
ext4: Add sanity check to make_indexed_dir
authorTheodore Ts'o <tytso@mit.edu>
Fri, 16 Jan 2009 16:13:40 +0000 (11:13 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 16 Jan 2009 16:13:40 +0000 (11:13 -0500)
commite6b8bc09ba2075cd91fbffefcd2778b1a00bd76f
tree07a439d21576794c5d39a06a86b09e690e55f2f2
parent06a279d636734da32bb62dd2f7b0ade666f65d7c
ext4: Add sanity check to make_indexed_dir

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.

Thanks to Sami Liedes for reporting this bug.

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

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: stable@kernel.org
fs/ext4/namei.c