On 5/5/22 11:06 AM, Darrick J. Wong wrote: > From: Darrick J. Wong <djwong@xxxxxxxxxx> > > 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. Ok, mostly a refactoring into a check_longform_ftype, then adding that check to .. and . Reviewed-by: Eric Sandeen <sandeen@xxxxxxxxxx>