]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xfs: sb_spino_align is not verified
authorDave Chinner <dchinner@redhat.com>
Wed, 18 Dec 2024 19:50:20 +0000 (11:50 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Dec 2024 13:02:00 +0000 (14:02 +0100)
commit825fe7dae3b8a587bdd9b6bd1f16e6c0d56f6276
tree1a64caceaddcfa70eb7a27c005954d8150b89c5a
parent30424481090d8e0259fed2ca310e7edfe9e9eaae
xfs: sb_spino_align is not verified

commit 59e43f5479cce106d71c0b91a297c7ad1913176c upstream.

It's just read in from the superblock and used without doing any
validity checks at all on the value.

Fixes: fb4f2b4e5a82 ("xfs: add sparse inode chunk alignment superblock field")
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
[djwong: actually tag for 6.12 because upstream maintainer ignored cc-stable tag]
Link: https://lore.kernel.org/linux-xfs/20241024165544.GI21853@frogsfrogsfrogs/
Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/xfs/libxfs/xfs_sb.c