All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] xfs: fix mount vs shrinker race
@ 2018-03-20  5:00 Dave Chinner
  2018-03-20  5:00 ` [PATCH 1/2] xfs: add mount delay debug option Dave Chinner
  2018-03-20  5:00 ` [PATCH 2/2] xfs: don't shrink the inode cache until after setup completes Dave Chinner
  0 siblings, 2 replies; 13+ messages in thread
From: Dave Chinner @ 2018-03-20  5:00 UTC (permalink / raw)
  To: linux-xfs

Hi folks,

These two patches exercise and fix a mount vs shrinker race that can
result in an oops. The first patch adds a delay after sufficient
superblock state has been set up to allow the VFS superblock
shrinker to run, but not enough XFS state for the shrinker to run
without crashing. The second patch fixes the problem.

Thoughts, comments?

Cheers,

Dave.

^ permalink raw reply	[flat|nested] 13+ messages in thread
* [PATCH 0/2] xfs: handle mount failures more cleanly
@ 2018-05-11  2:09 Dave Chinner
  2018-05-11  2:09 ` [PATCH 1/2] xfs: add mount delay debug option Dave Chinner
  0 siblings, 1 reply; 13+ messages in thread
From: Dave Chinner @ 2018-05-11  2:09 UTC (permalink / raw)
  To: linux-xfs

Hi folks,

This is the XFS side of the "fs: don't scan the inode cache before
SB_BORN is set" changes to handle mount failures more cleanly. This
addresses teh use-after-free problems that can occur when
xfs_fs_fill_super() fails, frees the xfs_mount structure but
then leaves the VFS superblock pointing to it.

Th efirst patch is the mount delay sysfs option I've been using to
test this. I'll post the fstest that uses it in a minute.

Cheers,

Dave.


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

end of thread, other threads:[~2018-05-12  0:28 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-20  5:00 [PATCH 0/2] xfs: fix mount vs shrinker race Dave Chinner
2018-03-20  5:00 ` [PATCH 1/2] xfs: add mount delay debug option Dave Chinner
2018-03-20 12:00   ` Brian Foster
2018-03-20 13:12     ` Dave Chinner
2018-03-20  5:00 ` [PATCH 2/2] xfs: don't shrink the inode cache until after setup completes Dave Chinner
2018-03-20 12:08   ` Brian Foster
2018-03-20 13:21     ` Dave Chinner
2018-03-20 14:21       ` Brian Foster
2018-03-20 22:33         ` Dave Chinner
2018-03-21 11:26           ` Brian Foster
2018-03-21 17:25   ` Darrick J. Wong
2018-05-11  2:09 [PATCH 0/2] xfs: handle mount failures more cleanly Dave Chinner
2018-05-11  2:09 ` [PATCH 1/2] xfs: add mount delay debug option Dave Chinner
2018-05-12  0:28   ` Darrick J. Wong

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.