]> www.infradead.org Git - users/hch/misc.git/commit
xfs: don't crash on corrupt /quotas dirent
authorDarrick J. Wong <djwong@kernel.org>
Mon, 2 Dec 2024 18:57:41 +0000 (10:57 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 13 Dec 2024 01:45:12 +0000 (17:45 -0800)
commite57e083be9b9bc5c341e1245b988f290c09a5ed7
treee75fd514def7bbdc417b587f5914f01c2ec44e5b
parent3853b5e1d7ccb83f572df8a12619d1a58d266d6d
xfs: don't crash on corrupt /quotas dirent

If the /quotas dirent points to an inode but the inode isn't loadable
(and hence mkdir returns -EEXIST), don't crash, just bail out.

Cc: <stable@vger.kernel.org> # v6.13-rc1
Fixes: e80fbe1ad8eff7 ("xfs: use metadir for quota inodes")
Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_qm.c