Merge patch series "mount: more bugfixes, the Oprah edition"

Christian Brauner <brauner@kernel.org> says:

Yet more bugfixes falling out of my recent work in this area:

- don't let a pseudo dentry become the root of a mount
- don't drop active namespace references that were never taken
- don't put a mountpoint on a dentry that's being removed
- remove the fsnotify marks of a mount namespace in process context
- don't reconfigure internal superblocks via remount and umount
- check the mounts before reading their parents in pivot_root()
- look at the topmost mount for a mount namespace file
- keep covered mounts covered in OPEN_TREE_NAMESPACE
- check a recursive bind mount for mount namespace loops
- check a submount for references right before unmounting it
- queue a mount only once for mount notifications

* patches from https://patch.msgid.link/20260930-work-mount-fixes-3-v1-0-be34c83956ae@kernel.org:
  namespace: don't let a pseudo dentry become the root of a mount
  unshare: don't drop active namespace references that were never taken
  dcache: don't put a mountpoint on a dentry that's being removed
  namespace: remove the fsnotify marks of a mount namespace in process context
  selftests/filesystems: check that the nullfs root can't be reconfigured
  namespace: don't reconfigure internal superblocks via remount and umount
  namespace: check the mounts before reading their parents in pivot_root()
  selftests/filesystems: check that a mount namespace file on top doesn't bury a mount
  namespace: look at the topmost mount for a mount namespace file
  selftests/filesystems: check that OPEN_TREE_NAMESPACE keeps mounts covered
  namespace: keep covered mounts covered in OPEN_TREE_NAMESPACE
  selftests/filesystems: check that a recursive bind mount can't pin the caller's mount namespace
  namespace: check a recursive bind mount for mount namespace loops
  selftests/filesystems: check that a busy submount survives a synchronous umount
  namespace: check a submount for references right before unmounting it
  namespace: queue a mount only once for mount notifications

Link: https://patch.msgid.link/20260930-work-mount-fixes-3-v1-0-be34c83956ae@kernel.org
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
This commit is contained in:
Christian Brauner 2026-10-01 14:18:49 +02:00
commit cbade031e2
No known key found for this signature in database
GPG key ID: 91C61BC06578DCA2
20 changed files with 1019 additions and 42 deletions