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

no-reply at sashiko.virtuozzo.com no-reply at sashiko.virtuozzo.com
Tue Dec 1 13:24:27 MSK 2026


> __kthread_create_on_node_ve() queues a work item from its stack to the
> kthreadd worker of the VE. When a fatal signal ends the wait, the
> function returns -EINTR and the item stays in the queue. The worker
> then uses a dead stack frame. A SIGKILL to the init of a container
> during the write of START to ve.state crashes the node:
> 
>   Oops: general protection fault
>   RIP: __list_del_entry_valid_or_report
>   kthread_worker_fn
>   Comm: kthreadd ve: vek5
> 
> Put the work item into struct kthread_create_info. As in the kthreadd
> of the host, the caller frees this structure, or, if the caller was
> killed, the new thread or the worker on a failed kernel_thread().
> 
> https://virtuozzo.atlassian.net/browse/VSTOR-158054
> 
> Feature: nfs/nfsd: containerization
> Fixes: f94e1c28fdd1 ("ve/kthreadd: add per-ve kthreads creation interface")
> Reported-by: Artem Bulgakov <artem.bulgakov at virtuozzo.com>
> Signed-off-by: Vasileios Almpanis <vasileios.almpanis at virtuozzo.com>

Sashiko has reviewed this patch and found no issues.

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/20261201-ve-kthreadd-stack-v1-1-b4fb15511033@virtuozzo.com?part=1




More information about the Devel mailing list