[Devel] [PATCH hci-8.2] fs: forbid freezing and thawing file systems from a Container

Pavel Tikhomirov ptikhomirov at virtuozzo.com
Tue Nov 17 17:08:27 MSK 2026


On Tue, 17 Nov 2026 13:59:28 +0000, Vasileios Almpanis <vasileios.almpanis at virtuozzo.com> wrote:
> A Container can freeze a file system it mounted itself, since
> ioctl_fsfreeze() and ioctl_fsthaw() only check CAP_SYS_ADMIN in
> s_user_ns. That is a bad thing to allow:
> 
>   * Processes on top of a frozen file system hang in the kernel, so
>     CRIU can neither ptrace attach nor freeze them and the checkpoint
>     fails.
>   * CRIU does not dump the frozen state anyway, so after restore the
>     file system comes back thawed although it was frozen on the source.
> 
> [...]

Reviewed-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>

-- 
Pavel Tikhomirov <ptikhomirov at virtuozzo.com>


More information about the Devel mailing list