[Devel] [PATCH vz10 2/6] ve: hide only the tasks the host sends into a VE

no-reply at sashiko.virtuozzo.com no-reply at sashiko.virtuozzo.com
Mon Nov 16 13:50:08 MSK 2026


> ve_setup_task() marks a task entering a running VE VD_VE_ENTER_TASK,
> which hides it from ptrace and /proc/<pid>/exe inside the VE. A
> container task gets the mark too when it setns()es into its own VE, and
> the mark goes to the mm, which it may share with another task. A host
> task entering a stopping or stopped VE is not hidden at all.
> 
> Mark only tasks coming from the host, and do it in every VE state but
> starting, which the next change handles.
> 
> Feature: trace: prohibit tracing sensitive tasks from CT
> https://virtuozzo.atlassian.net/browse/VSTOR-151265
> Signed-off-by: Mirian Shilakadze <mirian.shilakadze at virtuozzo.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261116104552.102938-1-mirian.shilakadze@virtuozzo.com?part=2




More information about the Devel mailing list