mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
To: Andrea Parri <parri.andrea@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>,
	Thomas Gleixner <tglx@kernel.org>,
	Jiayuan Chen <jiayuan.chen@linux.dev>,
	Steven Rostedt <rostedt@goodmis.org>,
	Clark Williams <clrkwllms@kernel.org>,
	Vlastimil Babka <vbabka@kernel.org>,
	linux-rt-devel@lists.linux.dev, linux-kernel@vger.kernel.org,
	Sashiko <sashiko-bot@kernel.org>
Subject: Re: [PATCH] irq_work: Fix use-after-free in irq_work_run_cpu() on PREEMPT_RT
Date: Tue, 1 Dec 2026 09:05:25 +0100	[thread overview]
Message-ID: <20261201080525.SHqAV1O5@linutronix.de> (raw)
In-Reply-To: <20261130093411.5582-1-parri.andrea@gmail.com>

On 2026-11-30 10:34:10 [+0100], Andrea Parri wrote:
> On PREEMPT_RT, irq_work_sync() on a !IRQ_WORK_HARD_IRQ item waits for
> IRQ_WORK_BUSY to clear and then calls synchronize_rcu(), because
…
> Sashiko reported this on v1 of the series [1] and Sebastian acknowledged
> it [2], but the patch was applied unchanged.

Yeah. I sort was thinking to lift the restriction somehow but didn't so
far. Do you think you can shrink the commit message to something
readable?
The sense itself makes sense.

> diff --git a/kernel/irq_work.c b/kernel/irq_work.c
> index 73eabcbdcd50c..121f604569d17 100644
> --- a/kernel/irq_work.c
> +++ b/kernel/irq_work.c
> @@ -271,6 +271,7 @@ void irq_work_run_cpu(unsigned int cpu)
>  	if (!IS_ENABLED(CONFIG_PREEMPT_RT))
>  		return;
>  
> +	guard(rcu)();
>  	irq_work_run_list(per_cpu_ptr(&lazy_list, cpu));
>  }
>  

Sebastian

  reply	other threads:[~2026-12-01  8:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30  9:34 Andrea Parri
2026-12-01  8:05 ` Sebastian Andrzej Siewior [this message]
2026-12-01 13:30   ` Andrea Parri

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=20261201080525.SHqAV1O5@linutronix.de \
    --to=bigeasy@linutronix.de \
    --cc=clrkwllms@kernel.org \
    --cc=jiayuan.chen@linux.dev \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rt-devel@lists.linux.dev \
    --cc=parri.andrea@gmail.com \
    --cc=peterz@infradead.org \
    --cc=rostedt@goodmis.org \
    --cc=sashiko-bot@kernel.org \
    --cc=tglx@kernel.org \
    --cc=vbabka@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

all inboxes | Powered by JetHome®