The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Tejun Heo <tj@kernel.org>
To: Josef Bacik <josef@bacik.io>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Christian Brauner <brauner@kernel.org>,
	driver-core@lists.linux.dev, linux-fsdevel@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/2] kernfs: fix two races in __kernfs_new_node()
Date: Thu, 03 Dec 2026 09:25:26 -1000	[thread overview]
Message-ID: <b39b88c1e4d804faa2d5bf9ba9f6cb50@kernel.org> (raw)
In-Reply-To: <20261202-b4-kernfs-new-node-v1-0-25b4eb0468a2@bacik.io>

On Wed, Dec 02, 2026 at 04:45:13PM +0000, Josef Bacik wrote:
> kernfs_find_and_get_node_by_id() can find a node in the idr while
> __kernfs_new_node() is still setting it up, and after its error path has
> freed it.  Patch 1 sets the deactivated bias before the node goes into
> the idr, and patch 2 frees the node with kernfs_free_rcu() on that error
> path.

For the series,

Acked-by: Tejun Heo <tj@kernel.org>

Thanks.

--
tejun

      parent reply	other threads:[~2026-12-03 19:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02 16:45 [PATCH 0/2] kernfs: fix two races in __kernfs_new_node() Josef Bacik
2026-12-02 16:45 ` [PATCH 2/2] kernfs: RCU free a new node that was already in the idr Josef Bacik
2026-12-02 16:45 ` [PATCH 1/2] kernfs: deactivate a new node before publishing its id Josef Bacik
2026-12-03 19:25 ` Tejun Heo [this message]

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=b39b88c1e4d804faa2d5bf9ba9f6cb50@kernel.org \
    --to=tj@kernel.org \
    --cc=brauner@kernel.org \
    --cc=driver-core@lists.linux.dev \
    --cc=gregkh@linuxfoundation.org \
    --cc=josef@bacik.io \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /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