All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] xfs: fix various scrub problems
@ 2020-11-09 18:17 Darrick J. Wong
  2020-11-09 18:17 ` [PATCH 1/4] xfs: fix brainos in the refcount scrubber's rmap fragment processor Darrick J. Wong
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Darrick J. Wong @ 2020-11-09 18:17 UTC (permalink / raw)
  To: darrick.wong; +Cc: linux-xfs, david

Hi all,

While continuing my assessment of the online fsck code, I observed
various other minor problems in the online scrub code.  The most serious
of the bugs involves the extent reference count checker, which
incorrectly counts the number of rmaps it loads into the shared-extent
record stack, and results in scrub being unable to detect off-by-one
errors in the reference count.

The three patches after that tighten the checking around the mininum
number of records in a btree block; flags for rmap records; and
validating that a null entry in the leaf bestfree block actually
correspond to a hole in the directory data segment.

If you're going to start using this mess, you probably ought to just
pull from my git trees, which are linked below.

This is an extraordinary way to destroy everything.  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=scrub-fixes-5.10
---
 fs/xfs/scrub/bmap.c     |    8 ++++----
 fs/xfs/scrub/btree.c    |   45 +++++++++++++++++++++++++++------------------
 fs/xfs/scrub/dir.c      |   27 ++++++++++++++++++++-------
 fs/xfs/scrub/refcount.c |    8 +++-----
 4 files changed, 54 insertions(+), 34 deletions(-)


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2020-11-14 10:40 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-09 18:17 [PATCH 0/4] xfs: fix various scrub problems Darrick J. Wong
2020-11-09 18:17 ` [PATCH 1/4] xfs: fix brainos in the refcount scrubber's rmap fragment processor Darrick J. Wong
2020-11-10 18:35   ` Christoph Hellwig
2020-11-12 12:51   ` Chandan Babu R
2020-11-12 16:05     ` Darrick J. Wong
2020-11-13  5:11       ` Chandan Babu R
2020-11-09 18:17 ` [PATCH 2/4] xfs: fix the minrecs logic when dealing with inode root child blocks Darrick J. Wong
2020-11-13  6:35   ` Chandan Babu R
2020-11-14 10:39   ` Christoph Hellwig
2020-11-09 18:17 ` [PATCH 3/4] xfs: strengthen rmap record flags checking Darrick J. Wong
2020-11-13  7:02   ` Chandan Babu R
2020-11-14 10:40   ` Christoph Hellwig
2020-11-09 18:17 ` [PATCH 4/4] xfs: directory scrub should check the null bestfree entries too Darrick J. Wong
2020-11-13  9:08   ` Chandan Babu R
2020-11-14 10:40   ` Christoph Hellwig

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.