ext4: Make the extent validity check more paranoid
authorTheodore Ts'o <tytso@mit.edu>
Thu, 23 Apr 2009 00:52:25 +0000 (20:52 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 23 Apr 2009 00:52:25 +0000 (20:52 -0400)
commite84a26ce178345498a7eca0590852bcc36f1092f
treedcd2f95c9f73ffb8d2020fe89bb1c30785e0fa78
parent38d726d153cfe5efe5fe22d28d36ab382dda3a5c
ext4: Make the extent validity check more paranoid

Instead of just checking that the extent block number is greater or
equal than s_first_data_block, make sure it it is not pointing into
the block group descriptors, since that is clearly wrong.  This helps
prevent filesystem from getting very badly corrupted in case an extent
block is corrupted.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/extents.c