summaryrefslogtreecommitdiff
path: root/include/linux/stacktrace.h
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2026-11-10 22:10:02 +0100
committerChristian Brauner <brauner@kernel.org>2026-11-11 11:59:31 +0100
commite75470b592b4973793eafeb259de5f63412b76ba (patch)
tree3c7f759f0dacc0d82d0b1b6a679669aab6827545 /include/linux/stacktrace.h
parenta57ad4d3abd9735129e05f7990ba21406ccd9dab (diff)
parent32e564e222b7ca3811b2acee404b73fcaf43f312 (diff)
Merge patch series "dcache: fixes for mountpoints racing d_invalidate() and umount"
Christian Brauner <brauner@kernel.org> says: d_set_mounted() hasn't bumped the seqcount of rename_lock since v6.17 and the lockless walk in d_invalidate() neither waits for nor retries against a concurrent mount anymore. So a mount below a directory that is being invalidated can end up below the unhashed directory. Nobody can reach it anymore and it pins the subtree until the mount namespace goes away. Giving d_set_mounted() a seqlock of its own that d_invalidate() waits on after its unhash closes that without going back to bumping the seqcount. The second one is from v7.3 and was backported to 7.2.6. do_one_tree() now takes every secondary root off ->s_roots before its dput(). If another thread is evicting the root at the same time umount loses the eviction to it and doesn't wait for it. That ends in busy inodes after unmount and an iput() on a dead superblock. The third one is old. With CAP_DAC_READ_SEARCH a disconnected dentry can be mounted on via open_by_handle_at() and move_mount(). When that mount goes away while the filesystem of the dentry is unmounted, umount never sees the dentry. Same result as the second one. The fix makes such a dentry a secondary root until it's evicted. So it needs the second patch and it only goes back to v7.2. I reproduced all three in a VM. With a FUSE directory 3000 levels deep 151 of 200 bind mounts racing FUSE_NOTIFY_INVAL_ENTRY ended up below the invalidated directory and none did with the fix. The other two need delays in the right places to trigger. With them both reliably end in busy inodes and a GPF in iput() and with the fixes they don't. * patches from https://patch.msgid.link/20261030-work-dcache-ai-v1-0-cd6b86e0ccc7@kernel.org: dcache: let umount find a disconnected ex-mountpoint dcache: wait for a racing eviction of a secondary root dcache: let d_invalidate() wait for a d_set_mounted() in flight Link: https://patch.msgid.link/20261030-work-dcache-ai-v1-0-cd6b86e0ccc7@kernel.org Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'include/linux/stacktrace.h')
0 files changed, 0 insertions, 0 deletions