]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: on failed mount, force-reclaim inodes after unmounting quota controls
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 9 Nov 2017 00:26:49 +0000 (16:26 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Fri, 10 Nov 2017 03:27:33 +0000 (19:27 -0800)
commit54c25471fa396a4dee67800dfb87eaddc66a3eff
tree8785b8ee6c00208161976b2625dc7d9ab367d330
parente43ac277e6104d240ba681a7114041f99af7e793
xfs: on failed mount, force-reclaim inodes after unmounting quota controls

When mounting fails, we must force-reclaim inodes (and disable delayed
reclaim) /after/ the realtime and quota control have let go of the
realtime and quota inodes.  Without this, we corrupt the timer list and
cause other weird problems.

Found by xfs/376 fuzzing u3.bmbt[0].lastoff on an rmap filesystem to
force a bogus post-eof extent reclaim that causes the fs to go down.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/xfs_mount.c