]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_db: obfuscate rt superblock label when metadumping
authorDarrick J. Wong <djwong@kernel.org>
Mon, 24 Feb 2025 18:21:41 +0000 (10:21 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 25 Feb 2025 17:15:56 +0000 (09:15 -0800)
commit83586af40e70b6770782f24ae06bddf98ac9f4c5
treefd815145de712d492322a24c3d8a4b8c699c8a25
parentd776ab01f54ae1bf799873be9eca59b4a17656cb
xfs_db: obfuscate rt superblock label when metadumping

Metadump can obfuscate the filesystem label on all the superblocks on
the data device, so it must perform the same transformation on the
realtime device superblock to avoid leaking information and so that the
mdrestored filesystem is consistent.

Found by running xfs/503 with realtime turned on and a patch to set
labels on common/populated filesystem images.

Cc: <linux-xfs@vger.kernel.org> # v6.13.0
Fixes: 6bc20c5edbab51 ("xfs_db: metadump realtime devices")
Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
db/metadump.c