[Devel] [PATCH hci-8.2] ve/kthreadd: keep the create request of a VE kthread off the stack
Mirian Shilakadze
mirian.shilakadze at virtuozzo.com
Tue Dec 1 13:52:45 MSK 2026
On 12/1/26 2:20 PM, Vasileios Almpanis wrote:
> __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>
Reviewed-by: Mirian Shilakadze <mirian.shilakadze at virtuozzo.com>
--
Best regards, Mirian Shilakadze
Linux C Virtualization Developer, Virtuozzo.
More information about the Devel
mailing list