linux-stable-rt/fs/ext3
Duane Griffin 275c0a8f12 ext3: validate directory entry data before use
ext3_dx_find_entry uses ext3_next_entry without verifying that the entry
is valid.  If its rec_len == 0 this causes an infinite loop.  Refactor the
loop to check the validity of entries before checking whether they match
and moving onto the next one.

There are other uses of ext3_next_entry in this file which also look
problematic.  They should be reviewed and fixed if/when we have a
test-case that triggers them.

This patch fixes the first case (image hdb.25.softlockup.gz) reported in
http://bugzilla.kernel.org/show_bug.cgi?id=10882.

Signed-off-by: Duane Griffin <duaneg@dghda.com>
Cc: <linux-ext4@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-07-25 10:53:33 -07:00
..
Makefile
acl.c
acl.h
balloc.c
bitmap.c
dir.c ext3: improve some code in rb tree part of dir.c 2008-07-25 10:53:32 -07:00
ext3_jbd.c
file.c
fsync.c
hash.c
ialloc.c ext3: handle corrupted orphan list at mount 2008-07-25 10:53:32 -07:00
inode.c ext3: handle deleting corrupted indirect blocks 2008-07-25 10:53:32 -07:00
ioctl.c
namei.c ext3: validate directory entry data before use 2008-07-25 10:53:33 -07:00
namei.h
resize.c
super.c ext3: correct mount option parsing to detect when quota options can be changed 2008-07-25 10:53:32 -07:00
symlink.c
xattr.c
xattr.h
xattr_security.c ext3: remove double definitions of xattr macros 2008-07-25 10:53:32 -07:00
xattr_trusted.c ext3: remove double definitions of xattr macros 2008-07-25 10:53:32 -07:00
xattr_user.c ext3: remove double definitions of xattr macros 2008-07-25 10:53:32 -07:00