From: no-reply@sashiko.virtuozzo.com
To: Konstantin Khorenko <khorenko@virtuozzo.com>,
Pavel Tikhomirov <ptikhomirov@virtuozzo.com>
Cc: "Denis V. Lunev" <den@virtuozzo.com>,
OpenVZ devel list <devel@openvz.org>
Subject: Re: [Devel] [PATCH RK hci-8.0 2/3] ve: start the kthreads of a container in its ve namespace
Date: Tue, 1 Dec 2026 00:20:11 +0000 [thread overview]
Message-ID: <010701a22ef92e4a-f336bd9a-7529-49ac-a9f0-73d1390e9c1a-000000@eu-central-1.amazonses.com> (raw)
In-Reply-To: <20261125164802.402895-2-khorenko@virtuozzo.com>
> From: Eva Kurchatova <eva.kurchatova@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@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@sashiko.virtuozzo.com>
--
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261125164802.402895-1-khorenko@virtuozzo.com?part=2
_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel
next prev parent reply other threads:[~2026-12-01 0:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 16:48 [Devel] [PATCH RK hci-8.0 1/3] ve: downgrade the trusted exec/mmap denial from WARN to pr_warn Konstantin Khorenko
2026-11-25 16:48 ` [Devel] [PATCH RK hci-8.0 2/3] ve: start the kthreads of a container in its ve namespace Konstantin Khorenko
2026-12-01 0:20 ` no-reply [this message]
2026-11-25 16:48 ` [Devel] [PATCH RK hci-8.0 3/3] ms/KVM: x86: Unconditionally reset MMU context when emulating INIT Konstantin Khorenko
2026-12-01 0:25 ` no-reply
2026-12-01 0:16 ` [Devel] [PATCH RK hci-8.0 1/3] ve: downgrade the trusted exec/mmap denial from WARN to pr_warn no-reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=010701a22ef92e4a-f336bd9a-7529-49ac-a9f0-73d1390e9c1a-000000@eu-central-1.amazonses.com \
--to=no-reply@sashiko.virtuozzo.com \
--cc=den@virtuozzo.com \
--cc=devel@openvz.org \
--cc=khorenko@virtuozzo.com \
--cc=ptikhomirov@virtuozzo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.