[Devel] [PATCH hci-8.1 v2 2/3] ve: free ve_name together with the ve, not at cgroup offline
Konstantin Khorenko
khorenko at virtuozzo.com
Mon Nov 16 19:31:13 MSK 2026
Applying with these fixes on my side:
- added Fixes: fc7da91c1b73 ("ve: Add ve cgroup and ve_hook subsys")
On Mon, 16 Nov 2026 14:44:44 +0100, Denis V. Lunev <den at openvz.org> wrote:
> ve_offline() frees ve->ve_name as soon as the ve cgroup goes offline,
> while the ve itself lives on as long as anything holds a reference, a
> ve namespace for one.
The free at offline came with fc7da91c1b73, and it is a bug even
without 3/3: a zombie leaves its cgroup in cgroup_exit() but keeps
its ve until release_task(), so once the CT cgroup is removed,
/proc/<zombie>/status prints envID from freed memory.
--
Konstantin Khorenko,
Virtuozzo Linux Kernel Team
More information about the Devel
mailing list