selftests/filesystems: check that a dead mount's overmount isn't followed

Add overmount_reparent_test:

- a mount that a file descriptor keeps alive after propagate_umount()
  reparented its overmount and unmounted it must not be walked into the
  freed overmount by move_mount(MOVE_MOUNT_BENEATH)

Link: https://patch.msgid.link/20260926-work-mount-fixes-2-v1-10-f357abf3d17b@kernel.org
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
This commit is contained in:
Christian Brauner 2026-09-26 15:44:33 +02:00
commit 7fbcc793f7
No known key found for this signature in database
GPG key ID: 91C61BC06578DCA2
3 changed files with 183 additions and 1 deletions