From: Mark Rutland <mark.rutland@arm.com>
To: linux-arm-kernel@lists.infradead.org, catalin.marinas@arm.com,
peterz@infradead.org, tglx@kernel.org, vladimir.murzin@arm.com,
will@kernel.org
Cc: mark.rutland@arm.com, ruanjinjie@huawei.com,
linux-kernel@vger.kernel.org, luto@kernel.org
Subject: [PATCH 0/2] arm64/entry: Fix involuntary preemption exception masking
Date: Fri, 20 Mar 2026 11:30:24 +0000 [thread overview]
Message-ID: <20260320113026.3219620-1-mark.rutland@arm.com> (raw)
Hi all,
Since the move to generic IRQ entry, arm64's involuntary kernel
preemption logic has been subtly broken, and preemption can lead to
tasks running with some exceptions masked unexpectedly.
Patch 1 describes the gory details, but the gist is that due to the way
exceptions work on arm64 architecturally, and due to the number of
independently maskable exceptions, some aspects of the generic irq entry
code aren't a great fit, and arm64 needs to manage more of the
sequencing and state management itself. Doing so will also make it
possible to implement new stuff in the near future (e.g. architectural
NMI).
Patch 2 is purely a cleanup atop patch 1.
Thomas, Peter, I have some questions at the end of the patch 1 commit
message, but otherwise I hope this looks good to you. I'm assuming that
this should go via the arm64 tree, so I'm looking for your acks on both
patches.
Mark.
Mark Rutland (2):
arm64/entry: Fix involuntary preemption exception masking
arm64/entry: Remove arch_irqentry_exit_need_resched()
arch/Kconfig | 3 +++
arch/arm64/Kconfig | 1 +
arch/arm64/include/asm/entry-common.h | 27 ---------------------------
arch/arm64/kernel/entry-common.c | 27 +++++++++++++++++++++++++++
kernel/entry/common.c | 20 ++++----------------
5 files changed, 35 insertions(+), 43 deletions(-)
--
2.30.2
next reply other threads:[~2026-03-20 11:30 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-20 11:30 Mark Rutland [this message]
2026-03-20 11:30 ` [PATCH 1/2] arm64/entry: Fix involuntary preemption exception masking Mark Rutland
2026-03-20 13:04 ` Peter Zijlstra
2026-03-20 14:11 ` Thomas Gleixner
2026-03-20 14:57 ` Mark Rutland
2026-03-20 15:34 ` Peter Zijlstra
2026-03-20 16:16 ` Mark Rutland
2026-03-20 15:50 ` Thomas Gleixner
2026-03-23 17:21 ` Mark Rutland
2026-03-20 14:59 ` Thomas Gleixner
2026-03-20 15:37 ` Mark Rutland
2026-03-20 16:26 ` Thomas Gleixner
2026-03-20 17:31 ` Mark Rutland
2026-03-21 23:25 ` Thomas Gleixner
2026-03-24 12:19 ` Thomas Gleixner
2026-03-25 11:03 ` Mark Rutland
2026-03-25 15:46 ` Thomas Gleixner
2026-03-26 8:56 ` Jinjie Ruan
2026-03-26 18:11 ` Mark Rutland
2026-03-26 18:32 ` Thomas Gleixner
2026-03-27 1:27 ` Jinjie Ruan
2026-03-26 8:52 ` Jinjie Ruan
2026-03-24 3:14 ` Jinjie Ruan
2026-03-24 10:51 ` Mark Rutland
2026-03-20 11:30 ` [PATCH 2/2] arm64/entry: Remove arch_irqentry_exit_need_resched() Mark Rutland
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=20260320113026.3219620-1-mark.rutland@arm.com \
--to=mark.rutland@arm.com \
--cc=catalin.marinas@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luto@kernel.org \
--cc=peterz@infradead.org \
--cc=ruanjinjie@huawei.com \
--cc=tglx@kernel.org \
--cc=vladimir.murzin@arm.com \
--cc=will@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