]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_repair: check for AG btree records that would wrap around
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 10 Jul 2020 19:35:44 +0000 (15:35 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Fri, 10 Jul 2020 19:35:44 +0000 (15:35 -0400)
commitcae4fd291266c32441c6a7fcca49929fe11c391c
tree495400e2f65eac260b607d8ef3edb037f95aa6fe
parent41f8fc57c681e104cd741450b796d3b242a65dc3
xfs_repair: check for AG btree records that would wrap around

For AG btree types, make sure that each record's length is not so huge
that integer wraparound would happen.

Found via xfs/358 fuzzing recs[1].blockcount = ones.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
repair/scan.c