[Devel] [PATCH RK hci-8.0 2/3] ve: start the kthreads of a container in its ve namespace

no-reply at sashiko.virtuozzo.com no-reply at sashiko.virtuozzo.com
Tue Dec 1 03:20:11 MSK 2026


> From: Eva Kurchatova <eva.kurchatova at virtuozzo.com>
> 
> The kthreadd of a container is forked from a worker that takes over the
> namespaces, root, credentials and cgroups of the task starting the
> container, but not its ve namespace, which is not part of nsproxy.
> 
> As task_ve follows the ve namespace, kthreadd and every kthread it
> forks, khelper included, run as host tasks, and so do the usermode
> helpers they start. A core dump to a pipe in a container then fails,
> since the host won't execute a file from an untrusted container disk.
> 
> Switch the worker into the ve namespace of the starting task as well,
> last, as setns() does.
> 
> Fixes: 4d033dd01fd3 ("ve: Make task_ve pointer ve namespace based")
> [ ... ]
> 
> RK_BUG: VSTOR-157027 VSTOR-157031
> RK_CHANGELOG: Fix core dumps to a pipe failing in containers.
> 
> 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/20261125164802.402895-1-khorenko@virtuozzo.com?part=2




More information about the Devel mailing list