diff options
| author | Darrick J. Wong <djwong@kernel.org> | 2024-12-18 11:51:23 -0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-12-27 14:02:01 +0100 |
| commit | bc1f8a86e34a0706c6935e34cfc0fb47c2939e14 (patch) | |
| tree | 7ff502f9c8e89ba7bd3042728decf475f62b654c /tools | |
| parent | 07f2f8083a7ae22eb26e0a642e9ccc465d759b2b (diff) | |
| download | linux-bc1f8a86e34a0706c6935e34cfc0fb47c2939e14.tar.gz linux-bc1f8a86e34a0706c6935e34cfc0fb47c2939e14.tar.bz2 linux-bc1f8a86e34a0706c6935e34cfc0fb47c2939e14.zip | |
xfs: fix zero byte checking in the superblock scrubber
commit c004a793e0ec34047c3bd423bcd8966f5fac88dc upstream.
The logic to check that the region past the end of the superblock is all
zeroes is wrong -- we don't want to check only the bytes past the end of
the maximally sized ondisk superblock structure as currently defined in
xfs_format.h; we want to check the bytes beyond the end of the ondisk as
defined by the feature bits.
Port the superblock size logic from xfs_repair and then put it to use in
xfs_scrub.
Cc: <stable@vger.kernel.org> # v4.15
Fixes: 21fb4cb1981ef7 ("xfs: scrub the secondary superblocks")
Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions
