* [GIT PULL 14/22] xfs: fix bugs in parent pointer checking
@ 2023-04-12 3:48 Darrick J. Wong
2023-04-12 6:31 ` Dave Chinner
2023-04-13 0:50 ` [GIT PULL v2 " Darrick J. Wong
0 siblings, 2 replies; 4+ messages in thread
From: Darrick J. Wong @ 2023-04-12 3:48 UTC (permalink / raw)
To: dchinner, djwong; +Cc: linux-xfs
Hi Dave,
Please pull this branch with changes for xfs.
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 0916056eba4fd816f8042a3960597c316ea10256:
xfs: fix parent pointer scrub racing with subdirectory reparenting (2023-04-11 19:00:20 -0700)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git tags/scrub-parent-fixes-6.4_2023-04-11
for you to fetch changes up to 0916056eba4fd816f8042a3960597c316ea10256:
xfs: fix parent pointer scrub racing with subdirectory reparenting (2023-04-11 19:00:20 -0700)
----------------------------------------------------------------
xfs: fix bugs in parent pointer checking [v24.5]
Jan Kara pointed out that the VFS doesn't take i_rwsem of a child
subdirectory that is being moved from one parent to another. Upon
deeper analysis, I realized that this was the source of a very hard to
trigger false corruption report in the parent pointer checking code.
Now that we've refactored how directory walks work in scrub, we can also
get rid of all the unnecessary and broken locking to make parent pointer
scrubbing work properly.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
----------------------------------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [GIT PULL 14/22] xfs: fix bugs in parent pointer checking
2023-04-12 3:48 [GIT PULL 14/22] xfs: fix bugs in parent pointer checking Darrick J. Wong
@ 2023-04-12 6:31 ` Dave Chinner
2023-04-12 21:54 ` Darrick J. Wong
2023-04-13 0:50 ` [GIT PULL v2 " Darrick J. Wong
1 sibling, 1 reply; 4+ messages in thread
From: Dave Chinner @ 2023-04-12 6:31 UTC (permalink / raw)
To: Darrick J. Wong; +Cc: dchinner, linux-xfs
On Tue, Apr 11, 2023 at 08:48:26PM -0700, Darrick J. Wong wrote:
> Hi Dave,
>
> Please pull this branch with changes for xfs.
>
> 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 0916056eba4fd816f8042a3960597c316ea10256:
>
> xfs: fix parent pointer scrub racing with subdirectory reparenting (2023-04-11 19:00:20 -0700)
>
> are available in the Git repository at:
>
> git://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git tags/scrub-parent-fixes-6.4_2023-04-11
>
> for you to fetch changes up to 0916056eba4fd816f8042a3960597c316ea10256:
>
> xfs: fix parent pointer scrub racing with subdirectory reparenting (2023-04-11 19:00:20 -0700)
>
> ----------------------------------------------------------------
> xfs: fix bugs in parent pointer checking [v24.5]
>
> Jan Kara pointed out that the VFS doesn't take i_rwsem of a child
> subdirectory that is being moved from one parent to another. Upon
> deeper analysis, I realized that this was the source of a very hard to
> trigger false corruption report in the parent pointer checking code.
>
> Now that we've refactored how directory walks work in scrub, we can also
> get rid of all the unnecessary and broken locking to make parent pointer
> scrubbing work properly.
>
> Signed-off-by: Darrick J. Wong <djwong@kernel.org>
>
> ----------------------------------------------------------------
Empty pull request?
Looks like the next pull-req is empty, too, and the commits that are
supposed to be in these are in pull-req after that?
-Dave.
--
Dave Chinner
david@fromorbit.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [GIT PULL 14/22] xfs: fix bugs in parent pointer checking
2023-04-12 6:31 ` Dave Chinner
@ 2023-04-12 21:54 ` Darrick J. Wong
0 siblings, 0 replies; 4+ messages in thread
From: Darrick J. Wong @ 2023-04-12 21:54 UTC (permalink / raw)
To: Dave Chinner; +Cc: dchinner, linux-xfs
On Wed, Apr 12, 2023 at 04:31:15PM +1000, Dave Chinner wrote:
> On Tue, Apr 11, 2023 at 08:48:26PM -0700, Darrick J. Wong wrote:
> > Hi Dave,
> >
> > Please pull this branch with changes for xfs.
> >
> > 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 0916056eba4fd816f8042a3960597c316ea10256:
> >
> > xfs: fix parent pointer scrub racing with subdirectory reparenting (2023-04-11 19:00:20 -0700)
> >
> > are available in the Git repository at:
> >
> > git://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git tags/scrub-parent-fixes-6.4_2023-04-11
> >
> > for you to fetch changes up to 0916056eba4fd816f8042a3960597c316ea10256:
> >
> > xfs: fix parent pointer scrub racing with subdirectory reparenting (2023-04-11 19:00:20 -0700)
> >
> > ----------------------------------------------------------------
> > xfs: fix bugs in parent pointer checking [v24.5]
> >
> > Jan Kara pointed out that the VFS doesn't take i_rwsem of a child
> > subdirectory that is being moved from one parent to another. Upon
> > deeper analysis, I realized that this was the source of a very hard to
> > trigger false corruption report in the parent pointer checking code.
> >
> > Now that we've refactored how directory walks work in scrub, we can also
> > get rid of all the unnecessary and broken locking to make parent pointer
> > scrubbing work properly.
> >
> > Signed-off-by: Darrick J. Wong <djwong@kernel.org>
> >
> > ----------------------------------------------------------------
>
> Empty pull request?
>
> Looks like the next pull-req is empty, too, and the commits that are
> supposed to be in these are in pull-req after that?
Ahaha, yep, a stupid bug in my script that turns stgit patches into
branches for pushing to kernel.org. It ought to be sorting topics in
the order that the tagged patches appear in the stgit branch, but
clearly it isn't doing that for generating pull requests.
I'll sort this out and resend. Unless you'd rather just pull #20 and
only have to do that once?
Either way, I'll fix my dumb script.
--D
> -Dave.
> --
> Dave Chinner
> david@fromorbit.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* [GIT PULL v2 14/22] xfs: fix bugs in parent pointer checking
2023-04-12 3:48 [GIT PULL 14/22] xfs: fix bugs in parent pointer checking Darrick J. Wong
2023-04-12 6:31 ` Dave Chinner
@ 2023-04-13 0:50 ` Darrick J. Wong
1 sibling, 0 replies; 4+ messages in thread
From: Darrick J. Wong @ 2023-04-13 0:50 UTC (permalink / raw)
To: david; +Cc: dchinner, linux-xfs
Hi Dave,
Please pull this branch with changes for xfs.
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 6bb9209ceebb07fd07cec25af04eed1809c654de:
xfs: always check the existence of a dirent's child inode (2023-04-11 19:00:18 -0700)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git tags/scrub-parent-fixes-6.4_2023-04-12
for you to fetch changes up to 0916056eba4fd816f8042a3960597c316ea10256:
xfs: fix parent pointer scrub racing with subdirectory reparenting (2023-04-11 19:00:20 -0700)
----------------------------------------------------------------
xfs: fix bugs in parent pointer checking [v24.5]
Jan Kara pointed out that the VFS doesn't take i_rwsem of a child
subdirectory that is being moved from one parent to another. Upon
deeper analysis, I realized that this was the source of a very hard to
trigger false corruption report in the parent pointer checking code.
Now that we've refactored how directory walks work in scrub, we can also
get rid of all the unnecessary and broken locking to make parent pointer
scrubbing work properly.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
----------------------------------------------------------------
Darrick J. Wong (3):
xfs: remove xchk_parent_count_parent_dentries
xfs: simplify xchk_parent_validate
xfs: fix parent pointer scrub racing with subdirectory reparenting
fs/xfs/scrub/common.c | 22 -----
fs/xfs/scrub/common.h | 1 -
fs/xfs/scrub/parent.c | 226 +++++++++++++++++---------------------------------
3 files changed, 76 insertions(+), 173 deletions(-)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-04-13 0:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-12 3:48 [GIT PULL 14/22] xfs: fix bugs in parent pointer checking Darrick J. Wong
2023-04-12 6:31 ` Dave Chinner
2023-04-12 21:54 ` Darrick J. Wong
2023-04-13 0:50 ` [GIT PULL v2 " Darrick J. Wong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox