mbox series

[GIT,PULL,8/8] xfs: fix out of bounds memory access in scrub

Message ID 169454023821.3411463.7740303846093140144.stg-ugh@frogsfrogsfrogs (mailing list archive)
State New, archived
Headers show
Series [GIT,PULL,1/8] xfs: fix fsmap cursor handling | expand

Pull-request

https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git tags/fix-scrub-6.6_2023-09-12

Message

Darrick J. Wong Sept. 12, 2023, 5:40 p.m. UTC
Hi Chandan,

Please pull this branch with changes.

As usual, I did a test-merge with the main upstream branch as of a few
minutes ago, and didn't see any conflicts.  Please let me know if you
encounter any problems.

--D

The following changes since commit 34389616a963480b20ea7f997533380ae3946fba:

xfs: require a relatively recent V5 filesystem for LARP mode (2023-09-12 10:31:08 -0700)

are available in the Git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git tags/fix-scrub-6.6_2023-09-12

for you to fetch changes up to e03192820002feb064cc4fd0df9b8f0a94675c7d:

xfs: only call xchk_stats_merge after validating scrub inputs (2023-09-12 10:31:08 -0700)

----------------------------------------------------------------
xfs: fix out of bounds memory access in scrub
This is a quick fix for a few internal syzbot reports concerning an
invalid memory access in the scrub code.

This has been lightly tested with fstests.  Enjoy!

Signed-off-by: Darrick J. Wong <djwong@kernel.org>

----------------------------------------------------------------
Darrick J. Wong (1):
xfs: only call xchk_stats_merge after validating scrub inputs

fs/xfs/scrub/scrub.c | 4 ++--
fs/xfs/scrub/stats.c | 5 ++++-
2 files changed, 6 insertions(+), 3 deletions(-)