Theodore Ts'o 06a279d636 ext4: only use i_size_high for regular files
Directories are not allowed to be bigger than 2GB, so don't use
i_size_high for anything other than regular files.  E2fsck should
complain about these inodes, but the simplest thing to do for the
kernel is to only use i_size_high for regular files.

This prevents an intentially corrupted filesystem from causing the
kernel to burn a huge amount of CPU and issuing error messages such
as:

EXT4-fs warning (device loop0): ext4_block_to_path: block 135090028 > max

Thanks to David Maciejak from Fortinet's FortiGuard Global Security
Research Team for reporting this issue.

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

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: stable@kernel.org
2009-01-17 18:41:37 -05:00
..
2008-10-10 20:02:48 -04:00
2009-01-04 13:33:20 -08:00
2008-11-22 15:04:59 -05:00
2009-01-06 14:53:16 -05:00
2008-10-10 20:02:48 -04:00
2009-01-06 14:53:16 -05:00
2008-10-10 20:02:48 -04:00
2008-10-10 20:02:48 -04:00