[Devel] [PATCH hci-8.2 v2 1/2] ve: trust every host task of a pseudosuper VE until it execs
no-reply at sashiko.virtuozzo.com
no-reply at sashiko.virtuozzo.com
Fri Nov 20 16:19:36 MSK 2026
> Since "ve: hide the tasks that set up a starting VE from the rest of
> it" a host task entering a VE is marked VD_VE_SETUP_TASK only while the
> VE is VE_STATE_STARTING, and VD_VE_ENTER_TASK afterwards. While the VE
> is pseudosuper only the setup tasks may reach each other and use the
> pseudosuper relaxations; an entered task only skips the mount limit.
>
> libvzctl before 10.0.144 writes START to ve.state, which ends in
> VE_STATE_RUNNING, before it configures the disk: a helper then joins
> the init task's namespaces one by one through setns(), opens
> /proc/<init>/ns/mnt, makes the ploop device nodes and mounts the second
> disk inside the container. It joined a running VE, so it is an entered
> task, and the init task, a setup task, is hidden from it.
>
> Every container start with such a libvzctl fails:
>
> [ ... ]
> Fixes: a7d797d177e7 ("ve: hide the tasks that set up a starting VE from the rest of it")
> https://virtuozzo.atlassian.net/browse/VSTOR-156164
>
> Feature: trace: prohibit tracing sensitive tasks from CT
> Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
Sashiko has reviewed this patch and found no issues.
Carry the trailer below into the next revision and Sashiko will not review this patch again.
Reviewed-by: Sashiko <no-reply at sashiko.virtuozzo.com>
--
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261120-b4-prep-khorenko-vstor-156164-ve-setup-task-pseudosuper-v2-0-c85e827c1dba@virtuozzo.com?part=1
More information about the Devel
mailing list