linux/fs/xfs/scrub
Darrick J. Wong a5f460b168 xfs: check that br_blockcount doesn't overflow
xfs_bmbt_irec.br_blockcount is declared as xfs_filblks_t, which is an
unsigned 64-bit integer.  Though the bmbt helpers will never set a value
larger than 2^21 (since the underlying on-disk extent record has a
length field that is only 21 bits wide), we should be a little defensive
about checking that a bmbt record doesn't exceed what we're expecting or
overflow into the next AG.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
2018-01-17 21:00:47 -08:00
..
agheader.c xfs: scrub in-core metadata 2018-01-17 21:00:46 -08:00
alloc.c xfs: cross-reference refcount btree during scrub 2018-01-17 21:00:46 -08:00
attr.c xfs: pass inode number to xfs_scrub_ino_set_{preen,warning} 2017-11-09 09:10:45 -08:00
bmap.c xfs: check that br_blockcount doesn't overflow 2018-01-17 21:00:47 -08:00
btree.c xfs: scrub in-core metadata 2018-01-17 21:00:46 -08:00
btree.h xfs: set up scrub cross-referencing helpers 2018-01-17 21:00:44 -08:00
common.c xfs: scrub in-core metadata 2018-01-17 21:00:46 -08:00
common.h xfs: scrub in-core metadata 2018-01-17 21:00:46 -08:00
dabtree.c xfs: scrub in-core metadata 2018-01-17 21:00:46 -08:00
dabtree.h xfs: scrub extended attribute leaf space 2017-11-01 15:03:16 -07:00
dir.c xfs: directory scrubber must walk through data block to offset 2018-01-17 21:00:46 -08:00
ialloc.c xfs: cross-reference refcount btree during scrub 2018-01-17 21:00:46 -08:00
inode.c xfs: cross-reference the block mappings when possible 2018-01-17 21:00:46 -08:00
parent.c xfs: fix a few erroneous process_error calls in the scrubbers 2018-01-17 21:00:45 -08:00
quota.c xfs: move all scrub input checking to xfs_scrub_validate 2018-01-08 10:41:34 -08:00
refcount.c xfs: cross-reference refcount btree during scrub 2018-01-17 21:00:46 -08:00
rmap.c xfs: cross-reference refcount btree during scrub 2018-01-17 21:00:46 -08:00
rtbitmap.c xfs: cross-reference the realtime bitmap 2018-01-17 21:00:46 -08:00
scrub.c xfs: don't iunlock unlocked inodes 2018-01-17 21:00:46 -08:00
scrub.h xfs: cross-reference the realtime bitmap 2018-01-17 21:00:46 -08:00
symlink.c xfs: scrub symbolic links 2017-10-26 15:38:26 -07:00
trace.c fs: xfs: remove duplicate includes 2017-12-08 17:51:05 -08:00
trace.h xfs: set up scrub cross-referencing helpers 2018-01-17 21:00:44 -08:00
xfs_scrub.h xfs: create an ioctl to scrub AG metadata 2017-10-26 15:38:23 -07:00