ext4: Add checks to validate extent entries.
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Thu, 12 Mar 2009 13:51:20 +0000 (09:51 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 12 Mar 2009 13:51:20 +0000 (09:51 -0400)
commit56b19868aca856a7d7bf20c3a7a1030e4fd75b2b
treeca8f9765aa6a319bbe2d5c014b0e27a949c4fc5d
parente6f009b0b45220c004672d41a58865e94946104d
ext4: Add checks to validate extent entries.

This patch adds checks to validate the extent entries along with extent
headers, to avoid crashes caused by corrupt filesystems.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/extents.c