OpenVZ / Virtuozzo kernel development (devel@openvz.org)
 help / color / mirror / Atom feed
From: no-reply@sashiko.virtuozzo.com
To: Konstantin Khorenko <khorenko@virtuozzo.com>,
	Mirian Shilakadze <mirian.shilakadze@virtuozzo.com>,
	Pavel Tikhomirov <ptikhomirov@virtuozzo.com>
Cc: devel@openvz.org
Subject: Re: [Devel] [PATCH hci-8.2 v5 1/3] ve: trust every host task of a pseudosuper VE until it execs
Date: Tue, 1 Dec 2026 00:52:38 +0000	[thread overview]
Message-ID: <010701a22f16e235-d43ea0bf-2682-4b40-93d5-f63aa0b4b45a-000000@eu-central-1.amazonses.com> (raw)
In-Reply-To: <20261127-b4-prep-khorenko-vstor-156164-ve-setup-task-pseudosuper-v5-1-32c4b6342ec2@virtuozzo.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] ve: VD_VE_ENTER_TASK comment not updated for new pseudosuper
  trust
--

commit 69d6bcb5917503cd02080db3bd6d8f245e411dfe
Author: Konstantin Khorenko <khorenko@virtuozzo.com>

ve: trust every host task of a pseudosuper VE until it execs

ve_current_is_pseudosuper() now accepts both VD_VE_SETUP_TASK and VD_VE_ENTER_TASK marks while the VE is pseudosuper. ve_current_is_host_task() is removed, and its callers use ve_current_is_pseudosuper() instead.

> diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h
> index 53cb5ff32a233..388b256ed4af8 100644
> --- a/include/linux/mm_types.h
> +++ b/include/linux/mm_types.h
> @@ -1116,8 +1116,8 @@ extern struct mm_struct init_mm;
>  #define VD_LICDATA_ACCESS	2/* tasks accessed containers license data,
>  				  * no ptrace and no coredump allowed */
>  #define VD_VE_SETUP_TASK	3/* tasks the host sent into a starting VE,
> -				  * reachable only from each other while it
> -				  * is pseudosuper, VD_PTRACE_COREDUMP after */
> +				  * reachable only from the host's tasks while
> +				  * it is pseudosuper, VD_PTRACE_COREDUMP after */

[Severity: Low]
This isn't a bug, but is the comment on VD_VE_ENTER_TASK, just above this hunk, still accurate? It says an entered task gets no ptrace, coredump or licdata access. With this patch, ve_current_is_pseudosuper() treats an entered task as a trusted host task while the VE is pseudosuper. Such a task can now reach VD_VE_SETUP_TASK tasks in task_still_dumpable(). Could that comment be updated to say so, as was done for VD_VE_SETUP_TASK?

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/20261127-b4-prep-khorenko-vstor-156164-ve-setup-task-pseudosuper-v5-0-32c4b6342ec2@virtuozzo.com?part=1

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

  reply	other threads:[~2026-12-01  0:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-27 17:39 [Devel] [PATCH hci-8.2 v5 0/3] ve: Container start on the 26.3 kernel with libvzctl before 10.0.144 Konstantin Khorenko
2026-11-27 17:39 ` [Devel] [PATCH hci-8.2 v5 1/3] ve: trust every host task of a pseudosuper VE until it execs Konstantin Khorenko
2026-12-01  0:52   ` no-reply [this message]
2026-11-27 17:39 ` [Devel] [PATCH hci-8.2 v5 2/3] ve: give the pseudosuper relaxations of ve0 to its own tasks only Konstantin Khorenko
2026-12-01  0:55   ` no-reply
2026-11-27 17:39 ` [Devel] [PATCH hci-8.2 v5 3/3] selftests/ve: check a host task entering a pseudosuper VE reaches its init Konstantin Khorenko
2026-12-01  1:02   ` no-reply
2026-11-27 17:43 ` [Devel] [PATCH hci-8.2 v5 0/3] ve: Container start on the 26.3 kernel with libvzctl before 10.0.144 Konstantin Khorenko

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=010701a22f16e235-d43ea0bf-2682-4b40-93d5-f63aa0b4b45a-000000@eu-central-1.amazonses.com \
    --to=no-reply@sashiko.virtuozzo.com \
    --cc=devel@openvz.org \
    --cc=khorenko@virtuozzo.com \
    --cc=mirian.shilakadze@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox