]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xfs: validate that zoned RT devices are zone aligned
authorChristoph Hellwig <hch@lst.de>
Tue, 16 Dec 2025 17:30:08 +0000 (18:30 +0100)
committerCarlos Maiolino <cem@kernel.org>
Wed, 17 Dec 2025 09:27:02 +0000 (10:27 +0100)
commit982d2616a2906113e433fdc0cfcc122f8d1bb60a
tree342aa18e2754081413c26d370377c6ff325c5b01
parent8dc15b7a6e5918bad2b0583cf63d170f94a212df
xfs: validate that zoned RT devices are zone aligned

Garbage collection assumes all zones contain the full amount of blocks.
Mkfs already ensures this happens, but make the kernel check it as well
to avoid getting into trouble due to fuzzers or mkfs bugs.

Fixes: 2167eaabe2fa ("xfs: define the zoned on-disk format")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Cc: stable@vger.kernel.org # v6.15
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/libxfs/xfs_sb.c