]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xfs: validate fsmap offsets specified in the query keys
authorDarrick J. Wong <djwong@kernel.org>
Wed, 11 Jun 2025 21:01:10 +0000 (14:01 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:07:19 +0000 (11:07 +0100)
commit12ae1bd20fa01834f4e9dc500f261c22e1a0a958
tree7660f6c4b2d50ff7db35c23e4c7803d0135bc6e2
parent1504e39549c108c1d41260a65ebcb8b790b89f99
xfs: validate fsmap offsets specified in the query keys

[ Upstream commit 3ee9351e74907fe3acb0721c315af25b05dc87da ]

Improve the validation of the fsmap offset fields in the query keys and
move the validation to the top of the function now that we have pushed
the low key adjustment code downwards.

Also fix some indenting issues that aren't worth a separate patch.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Leah Rumancik <leah.rumancik@gmail.com>
Acked-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/xfs/xfs_fsmap.c