Whamcloud - gitweb
libext2fs: check EA block headers when reading in the block
authorDarrick J. Wong <darrick.wong@oracle.com>
Sun, 3 Aug 2014 02:32:11 +0000 (22:32 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 3 Aug 2014 02:32:11 +0000 (22:32 -0400)
commit5b9cbd76df1e96f927acee0910456319b1a99d53
tree95c0b6811167c536075091201f46a9c942866fc1
parent3466e95f0dc329e4273b8c649c8ae8b6649e2669
libext2fs: check EA block headers when reading in the block

When reading an EA block in from disk, do a quick sanity check of the
block header, and return an error if we think we have garbage.  Teach
e2fsck to ignore the new error code in favor of doing its own
checking, and remove the strict_csums bits while we're at it.

(Also document some assumptions in the new ext_attr code.)

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/pass1.c
e2fsck/problem.c
e2fsck/problem.h
lib/ext2fs/ext_attr.c