]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_repair: fix crash in reset_rt_metadir_inodes
authorDarrick J. Wong <djwong@kernel.org>
Fri, 21 Mar 2025 16:31:46 +0000 (09:31 -0700)
committerAndrey Albershteyn <aalbersh@kernel.org>
Mon, 31 Mar 2025 09:45:45 +0000 (11:45 +0200)
commitb26d16875213a6a25cc9194d45e4547a42ded5e1
tree337f718192dbd811b215f752859892d077b7b026
parent28db545be050f4571e9bf642133c1b969091f82c
xfs_repair: fix crash in reset_rt_metadir_inodes

I observed that xfs_repair -n segfaults during xfs/812 after corrupting
the /rtgroups metadir inode because mp->m_rtdirip isn't loaded.  Fix the
crash and print a warning about the missing inode.

Cc: linux-xfs@vger.kernel.org # v6.13.0
Fixes: 7c541c90fd77a2 ("xfs_repair: support realtime groups")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
repair/phase6.c