[Devel] [PATCH hci-8.2 v2 3/6] ve: hide the tasks that set up a starting VE from the rest of it

Konstantin Khorenko khorenko at virtuozzo.com
Tue Nov 17 14:40:25 MSK 2026


I won't apply this version, please send v3 with the changes below.

On Tue, 17 Nov 2026 14:13:23 +0400, Mirian Shilakadze wrote:
> +	if (task->mm && old_ve != ve &&
> +	    (ve_is_super(old_ve) ||
> +	     ve_vps_dumpable(task->mm, old_ve) == VD_VE_SETUP_TASK))

Item 1 of the cover letter reply: a setup task that leaves its VE after
the VE cleared pseudosuper is not marked here.

Why: ve_vps_dumpable() reports VD_VE_SETUP_TASK only while old_ve is
pseudosuper. A host task that entered A while it started, stayed there
without exec past the clear and then setns()es into running B keeps a
mark that reads as VD_PTRACE_COREDUMP in B, so B's root can open its
/proc/<pid>/fd. Stock gave it VD_VE_ENTER_TASK.

Item 3 of the cover letter reply: split the five-sentence paragraph of
the message, and fix "ve0 never leaves it" in the kernel-doc.

-- 
Konstantin Khorenko,
Virtuozzo Linux Kernel Team



More information about the Devel mailing list