summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/exec/binfmt_misc_selfpin.c
AgeCommit message (Collapse)Author
2026-08-03selftests/exec: check that a binfmt_misc instance cannot be pinnedChristian Brauner
An 'F' entry whose interpreter keeps the binfmt_misc superblock alive pins the instance that owns it forever. Cover both ways to build that: - an interpreter on the instance's own files, control file and entry file alike - and an instance used as an overlayfs lower layer. Check that an ordinary 'F' registration still succeeds so the fix stays honest about not changing what 'F' promises. Link: https://patch.msgid.link/20260728-work-binfmt_misc-selfpin-v1-2-74df5daeca5b@kernel.org Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>