[Devel] [PATCH hci-8.1 v5 3/5] ve: Defer ve creds drop until ve is completely destroyed

Konstantin Khorenko khorenko at virtuozzo.com
Thu Nov 12 16:17:01 MSK 2026


I won't apply this version, please send v6 with the changes below.

On Tue, 10 Nov 2026 18:26:50 +0100, Vladimir Riabchun <vladimir.riabchun at virtuozzo.com> wrote:
> @@ -929,6 +932,7 @@ static void ve_destroy(struct cgroup_subsys_state *css)
>  {
>  	struct ve_struct *ve = css_to_ve(css);
>
> +	ve_drop_cred(ve);

- Item 4 of the cover letter reply: fix the two "ve isn't running"
  comments in ve_capable() and ve_capable_noaudit()
  (kernel/capability.c).

After this patch init_cred stays set until ve_destroy(), so a stopped
VE still has it. NULL now only means the VE was never started, and
the comments say otherwise.

-- 
Konstantin Khorenko,
Virtuozzo Linux Kernel Team



More information about the Devel mailing list