Skip to content

xfs: fix fsmap cursor handling

Darrick J. Wong linux-xfs 3 versions – New

Get series with b4
b4 am 169335025080.3518128.2053884391855690989.stgit@frogsfrogsfrogs

Versions newest first · linked by author and title

  1. v2 Latest posting 2/21 patch 0 repliesNew
  2. v2 posting 1/21 patch 0 repliesSuperseded
  3. v1 RFC1 patch 7 repliesSuperseded

Patches in v2 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1xfs: fix an agbno overflow in __xfs_getfsmap_datadevfs/xfs/xfs_fsmap.c+18 -70 replies

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchDave Chinner
1/1R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCHSET v2 0/1] xfs: fix fsmap cursor handling

Hi all,

This patchset addresses an integer overflow bug that Dave Chinner found in how fsmap handles figuring out where in the record set we left off when userspace calls back after the first call filled up all the designated record space.

v2: add RVB tags

If you're going to start using this code, I strongly recommend pulling from my git trees, which are linked below.

This has been lightly tested with fstests. Enjoy! Comments and questions are, as always, welcome.

--D

kernel git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfs-linux.git/log/?h=fix-fsmap-6.6

---
 fs/xfs/xfs_fsmap.c |   25 ++++++++++++++++++-------
 1 file changed, 18 insertions(+), 7 deletions(-)