Skip to content

xfs: handle mount failures more cleanly

Dave Chinner linux-xfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2xfs: add mount delay debug optionfs/xfs/xfs_globals.c fs/xfs/xfs_super.c fs/xfs/xfs_sysctl.h +1 more+44 -01 reply
2/2xfs: clear sb->s_fs_info on mount failurefs/xfs/xfs_super.c+10 -01 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchBrian FosterDarrick J. Wong
1/2R-b R-b
2/2R-b

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

Read the v1 thread

Cover letter [PATCH 0/2] xfs: handle mount failures more cleanly

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.