[Devel] [PATCH hci-8.2 v5 1/3] ve: trust every host task of a pseudosuper VE until it execs
no-reply at sashiko.virtuozzo.com
no-reply at sashiko.virtuozzo.com
Tue Dec 1 03:52:38 MSK 2026
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 at 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 at 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
More information about the Devel
mailing list