]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: add bounds checking to xfs_rt{bitmap,summary}_read_buf
authorChristoph Hellwig <hch@lst.de>
Mon, 21 Oct 2024 00:10:42 +0000 (17:10 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 31 Oct 2024 22:45:02 +0000 (15:45 -0700)
commit915ebe7528ce9d0a0855f354f67ff64cd9e80422
tree508f4c53c58411ec847b49bd5afc4d9661521943
parent39c5ade944006ed5cb8e657fa4be975ac58a888b
xfs: add bounds checking to xfs_rt{bitmap,summary}_read_buf

Source kernel commit: b4781eea6872431840e53ffebb95a5614e6944b4

Add a corruption check for passing an invalid block number, which is a
lot easier to understand than the xfs_bmapi_read failure later on.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
libxfs/xfs_rtbitmap.c
libxfs/xfs_rtbitmap.h