All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrea Parri <parri.andrea@gmail.com>
To: sashiko-bot@kernel.org
Cc: bpf@vger.kernel.org
Subject: Re: [PATCH] srcu: Make srcu_barrier() wait for nested deferred callbacks
Date: Wed,  2 Dec 2026 01:22:45 +0100	[thread overview]
Message-ID: <20261202002246.193052-1-parri.andrea@gmail.com> (raw)
In-Reply-To: <sashiko-outbox-243937@kernel.org>

On Tue, Dec 01, 2026 at 06:08:51PM +0000, sashiko-bot@kernel.org wrote:
> [Severity: High]
> This problem wasn't introduced by this patch, but can a duplicate deferred
> call_srcu() truncate sdp->defer_cbs before __srcu_defer_drain() runs
> [1]?

This is addressed by "srcu: Detect duplicate callback enqueue at
registration", which is queued for v7.5 in the RCU tree and is in
linux-next:

  https://lore.kernel.org/all/20261113005017.2772440-9-jfern@kernel.org/

It moves the debug_rcu_head_queue() check to the start of __call_srcu(),
so that a duplicate is rejected before it reaches ->defer_cbs.

  Andrea

      reply	other threads:[~2026-12-02  0:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01 17:55 [PATCH] srcu: Make srcu_barrier() wait for nested deferred callbacks Andrea Parri
2026-12-01 18:08 ` sashiko-bot
2026-12-02  0:22   ` Andrea Parri [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=20261202002246.193052-1-parri.andrea@gmail.com \
    --to=parri.andrea@gmail.com \
    --cc=bpf@vger.kernel.org \
    --cc=sashiko-bot@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.