linux-stable/fs/xfs/scrub
Darrick J. Wong 6b48e5b8a2 xfs: directory scrub should check the null bestfree entries too
Teach the directory scrubber to check all the bestfree entries,
including the null ones.  We want to be able to detect the case where
the entry is null but there actually /is/ a directory data block.

Found by fuzzing lbests[0] = ones in xfs/391.

Fixes: df481968f3 ("xfs: scrub directory freespace")
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Chandan Babu R <chandanrlinux@gmail.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
2020-11-18 09:23:50 -08:00
..
agheader.c xfs: support inode btree blockcounts in online scrub 2020-09-15 20:52:40 -07:00
agheader_repair.c xfs: support inode btree blockcounts in online repair 2020-09-15 20:52:40 -07:00
alloc.c
attr.c
attr.h
bitmap.c
bitmap.h
bmap.c xfs: strengthen rmap record flags checking 2020-11-18 09:23:50 -08:00
btree.c xfs: fix the minrecs logic when dealing with inode root child blocks 2020-11-18 09:23:50 -08:00
btree.h
common.c
common.h
dabtree.c xfs: check dabtree node hash values when loading child blocks 2020-09-23 08:58:51 -07:00
dabtree.h
dir.c xfs: directory scrub should check the null bestfree entries too 2020-11-18 09:23:50 -08:00
fscounters.c
health.c
health.h
ialloc.c xfs: remove unused iget_flags param from xfs_imap_to_bp() 2020-05-07 08:27:49 -07:00
inode.c xfs: fix scrub flagging rtinherit even if there is no rt device 2020-11-04 08:52:47 -08:00
parent.c xfs: move the per-fork nextents fields into struct xfs_ifork 2020-05-19 09:40:58 -07:00
quota.c xfs: create xfs_dqtype_t to represent quota types 2020-07-28 20:24:14 -07:00
refcount.c xfs: fix brainos in the refcount scrubber's rmap fragment processor 2020-11-10 16:48:03 -08:00
repair.c xfs: create xfs_dqtype_t to represent quota types 2020-07-28 20:24:14 -07:00
repair.h xfs: create xfs_dqtype_t to represent quota types 2020-07-28 20:24:14 -07:00
rmap.c
rtbitmap.c xfs: rtbitmap scrubber should check inode size 2020-07-07 07:15:09 -07:00
scrub.c
scrub.h
symlink.c xfs: Remove kmem_zalloc_large() 2020-09-15 20:52:41 -07:00
trace.c
trace.h
xfs_scrub.h