public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] arm64/entry: Fix involuntary preemption exception masking
@ 2026-03-20 11:30 Mark Rutland
  2026-03-20 11:30 ` [PATCH 1/2] " Mark Rutland
  2026-03-20 11:30 ` [PATCH 2/2] arm64/entry: Remove arch_irqentry_exit_need_resched() Mark Rutland
  0 siblings, 2 replies; 25+ messages in thread
From: Mark Rutland @ 2026-03-20 11:30 UTC (permalink / raw)
  To: linux-arm-kernel, catalin.marinas, peterz, tglx, vladimir.murzin,
	will
  Cc: ada.coupriediaz, linux-kernel, luto, mark.rutland, ruanjinjie

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


^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2026-03-27  1:27 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-20 11:30 [PATCH 0/2] arm64/entry: Fix involuntary preemption exception masking Mark Rutland
2026-03-20 11:30 ` [PATCH 1/2] " 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox