[Devel] [PATCH hci-8.2] ve/kthreadd: keep the create request of a VE kthread off the stack

Konstantin Khorenko khorenko at virtuozzo.com
Tue Dec 1 18:17:14 MSK 2026


Applying with these fixes on my side:
- Fixes: moved above the Jira URL, as in the vz commit template

On Tue, 01 Dec 2026 10:20:13 +0000, Vasileios Almpanis wrote:
> https://virtuozzo.atlassian.net/browse/VSTOR-158054
>
> Feature: nfs/nfsd: containerization
> Fixes: f94e1c28fdd1 ("ve/kthreadd: add per-ve kthreads creation interface")

The fix is right: the request now lives as long as the host kthreadd
keeps its own, and whoever takes create->done frees it.

Separate patches, not needed for this patch. The task already covers
it, as R-3 and R-1:

1. __kthread_create_on_node_ve() is not serialised against
   ve_stop_kthreadd(). svc_start_kthreads() queues from a container
   task under nfsd_mutex only, and zap_pid_ns_processes() calls
   ve_stop_ns() before it kills the other tasks of the container. A
   request queued after the flush never runs, and a later one goes to
   a freed or NULL worker.
   https://virtuozzo.atlassian.net/browse/VSTOR-158054

-- 
Konstantin Khorenko,
Virtuozzo Linux Kernel Team



More information about the Devel mailing list