]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: add bounds checking to xfs_rt{bitmap,summary}_read_buf
authorChristoph Hellwig <hch@lst.de>
Fri, 30 Aug 2024 22:36:54 +0000 (15:36 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Sun, 1 Sep 2024 15:58:19 +0000 (08:58 -0700)
commitb4781eea6872431840e53ffebb95a5614e6944b4
treea59a74f9a2b1347f68e5cf129a0dc4deae4caea1
parent6d2db12d56a389b3e8efa236976f8dc3a8ae00f0
xfs: add bounds checking to xfs_rt{bitmap,summary}_read_buf

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>
fs/xfs/libxfs/xfs_rtbitmap.c
fs/xfs/libxfs/xfs_rtbitmap.h