Description
In the Linux kernel, the following vulnerability has been resolved: xfs: stop reclaim before pushing AIL during unmount The unmount sequence in xfs_unmount_flush_inodes() pushed the AIL while background reclaim and inodegc are still running. This is broken independently of any use-after-free issues - background reclaim and inodegc should not be running while the AIL is being pushed during unmount, as inodegc can dirty and insert inodes into the AIL during the flush, and background reclaim can race to abort and free dirty inodes. Reorder xfs_unmount_flush_inodes() to stop inodegc and cancel background reclaim before pushing the AIL. Stop inodegc before cancelling m_reclaim_work because the inodegc worker can re-queue m_reclaim_work via xfs_inodegc_set_reclaimable.
Product status
90c60e16401248a4900f3f9387f563d0178dcf34 (git) before e6cc490048f78b009259a5f032acead9f789c34c
90c60e16401248a4900f3f9387f563d0178dcf34 (git) before 239d734c00644072862fa833805c4471573b1445
90c60e16401248a4900f3f9387f563d0178dcf34 (git) before bda27fc0b4eb3a425d9a18475c4cb94fbe862c60
90c60e16401248a4900f3f9387f563d0178dcf34 (git) before d38135af04a3ad8a585c899d176efc8e97853115
90c60e16401248a4900f3f9387f563d0178dcf34 (git) before a89434a6188d8430ea31120da96e3e4cefb58686
90c60e16401248a4900f3f9387f563d0178dcf34 (git) before 8147e304d7d32fd5c3e943babc296ce2873dc279
90c60e16401248a4900f3f9387f563d0178dcf34 (git) before 558e3275d8a3b101be18a7fe7d1634053e9d9b07
90c60e16401248a4900f3f9387f563d0178dcf34 (git) before 4f24a767e3d64a5f58c595b5c29b6063a201f1e3
5.9
Any version before 5.9
5.10.253 (semver)
5.15.203 (semver)
6.1.168 (semver)
6.6.131 (semver)
6.12.80 (semver)
6.18.21 (semver)
6.19.11 (semver)
7.0 (original_commit_for_fix)
References
git.kernel.org/...c/e6cc490048f78b009259a5f032acead9f789c34c
git.kernel.org/...c/239d734c00644072862fa833805c4471573b1445
git.kernel.org/...c/bda27fc0b4eb3a425d9a18475c4cb94fbe862c60
git.kernel.org/...c/d38135af04a3ad8a585c899d176efc8e97853115
git.kernel.org/...c/a89434a6188d8430ea31120da96e3e4cefb58686
git.kernel.org/...c/8147e304d7d32fd5c3e943babc296ce2873dc279
git.kernel.org/...c/558e3275d8a3b101be18a7fe7d1634053e9d9b07
git.kernel.org/...c/4f24a767e3d64a5f58c595b5c29b6063a201f1e3