OpenVZ / Virtuozzo kernel development (devel@openvz.org)
 help / color / mirror / Atom feed
From: Konstantin Khorenko <khorenko@virtuozzo.com>
To: Vasileios Almpanis <vasileios.almpanis@virtuozzo.com>
Cc: devel@openvz.org, Artem Bulgakov <artem.bulgakov@virtuozzo.com>
Subject: Re: [Devel] [PATCH hci-8.2] ve/kthreadd: keep the create request of a VE kthread off the stack
Date: Tue, 01 Dec 2026 16:17:14 +0100	[thread overview]
Message-ID: <179613823493.1933540.2667382663582213489.b4-review@b4> (raw)
In-Reply-To: <20261201-ve-kthreadd-stack-v1-1-b4fb15511033@virtuozzo.com>

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

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

  parent reply	other threads:[~2026-12-01 15:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01 10:20 Vasileios Almpanis
2026-12-01 10:24 ` no-reply
2026-12-01 10:52 ` Mirian Shilakadze
2026-12-01 15:17 ` Konstantin Khorenko [this message]
2026-12-01 15:17 ` Konstantin Khorenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179613823493.1933540.2667382663582213489.b4-review@b4 \
    --to=khorenko@virtuozzo.com \
    --cc=artem.bulgakov@virtuozzo.com \
    --cc=devel@openvz.org \
    --cc=vasileios.almpanis@virtuozzo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox