]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_repair: check the ftype of dot and dotdot directory entries xfsprogs-5.16-fixes_2022-03-17
authorDarrick J. Wong <djwong@kernel.org>
Tue, 1 Mar 2022 18:20:16 +0000 (10:20 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 17 Mar 2022 21:40:28 +0000 (14:40 -0700)
commit1a7510cea7964f8f2e55e6b216591589566cc93e
treef0e6f39296e9ba1fc6a26cce2bc498574900dffe
parent192923e92aac01cef464244fa5e6a7258f38ee19
xfs_repair: check the ftype of dot and dotdot directory entries

The long-format directory block checking code skips the filetype check
for the '.' and '..' entries, even though they're part of the ondisk
format.  This leads to repair failing to catch subtle corruption at the
start of a directory.

Found by fuzzing bu[0].filetype = zeroes in xfs/386.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
repair/phase6.c