[Devel] [PATCH hci-8.2] fs: forbid freezing and thawing file systems from a Container
Konstantin Khorenko
khorenko at virtuozzo.com
Tue Nov 17 17:55:46 MSK 2026
Applying with these fixes on my side:
- "CRIU can neither ptrace attach nor freeze them" -> "CRIU can
neither stop them under ptrace nor freeze them": PTRACE_SEIZE
itself succeeds, the task just never stops
- "most file systems a Container sees are not freezable at all" ->
"the only file systems a Container can freeze are ext4 and XFS it
mounted itself": the root disk is ext4 too, it is only mounted by
the host
On Tue, 17 Nov 2026 13:59:28 +0000, Vasileios Almpanis wrote:
> Nothing vital inside a Container is known to need it, and most file
> systems a Container sees are not freezable at all. So keep the
> existing check and return EPERM for FIFREEZE and FITHAW when called
> from a Container.
One more reason, no need to add it: before this patch a Container
could also FITHAW a file system mounted inside it while the host held
it frozen, e.g. during a dm suspend with lockfs for a snapshot.
A heads-up for tests: LTP df01 calls tst_fsfreeze on xfs. Where a test
suite runs it inside a Container on xfs, it now gets EPERM there.
Thanks.
--
Konstantin Khorenko,
Virtuozzo Linux Kernel Team
More information about the Devel
mailing list