]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf24bbccbb76894e33562ff6804a663df53115ce8
treedcd2f95c9f73ffb8d2020fe89bb1c30785e0fa78
parentb888147ddf8928af160d16c6a73337e69d8a41bb
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