From: Philippe Gerum <rpm@xenomai.org>
To: Jan Kiszka <jan.kiszka@siemens.com>
Cc: Xenomai <xenomai@lists.linux.dev>
Subject: Re: [dovetail][PATCH] lockdep: dovetail: fix unbalanced hard_cond_local_irq_restore
Date: Sat, 28 Nov 2026 11:53:02 +0100 [thread overview]
Message-ID: <87zeutgrch.fsf@xenomai.org> (raw)
In-Reply-To: <e66c29ef-ae08-4371-a00b-de5abeb43a0d@siemens.com> (Jan Kiszka's message of "Fri, 27 Nov 2026 14:56:30 +0100")
Jan Kiszka <jan.kiszka@siemens.com> writes:
> From: Jan Kiszka <jan.kiszka@siemens.com>
>
> After the skip_checks block comes a hard_cond_local_irq_restore() - but
> we were not initializing flags when jumping from here.
>
> We are in NMI context here, thus IRQs disabling is technically unneeded
> but a) symmetric to the hard_cond_local_irq_restore and b) truly gone
> when IRQ_PIPELINE is off.
>
> Reported-by: OpenCode:Opus-5.5
> Fixes: f9acdddb8afc, 5.15 ("irq_pipeline: lockdep: fix irq state causing deadlock")
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
> ---
>
> It took backports from 7.3 down to 5.15, each reviewed by the same AI, to
> finally make it spot this.
>
> kernel/locking/lockdep.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c
> index 08bb0173dad77..4d91327a2a6ce 100644
> --- a/kernel/locking/lockdep.c
> +++ b/kernel/locking/lockdep.c
> @@ -4535,6 +4535,7 @@ void noinstr lockdep_hardirqs_on(unsigned long ip)
> * - hardware state check, because above;
> * - chain_key check, see lockdep_hardirqs_on_prepare().
> */
> + flags = hard_cond_local_irq_save();
> goto skip_checks;
> }
Merged, thanks.
--
Philippe.
prev parent reply other threads:[~2026-11-28 10:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 13:56 [dovetail][PATCH] lockdep: dovetail: fix unbalanced hard_cond_local_irq_restore Jan Kiszka
2026-11-28 10:53 ` Philippe Gerum [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=87zeutgrch.fsf@xenomai.org \
--to=rpm@xenomai.org \
--cc=jan.kiszka@siemens.com \
--cc=xenomai@lists.linux.dev \
/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.