]> Gentwo Git Trees - linux/.git/commit
rseq: Separate the signal delivery path
authorThomas Gleixner <tglx@linutronix.de>
Mon, 27 Oct 2025 08:45:10 +0000 (09:45 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 4 Nov 2025 07:33:47 +0000 (08:33 +0100)
commit9f6ffd4cebda86841700775de3213f22bb0ea22d
treeb1cd57fb664fa27497894816ac35a8d0796110a7
parent0f085b41880e3140efa6941ff2b8fd43bac4d659
rseq: Separate the signal delivery path

Completely separate the signal delivery path from the notify handler as
they have different semantics versus the event handling.

The signal delivery only needs to ensure that the interrupted user context
was not in a critical section or the section is aborted before it switches
to the signal frame context. The signal frame context does not have the
original instruction pointer anymore, so that can't be handled on exit to
user space.

No point in updating the CPU/CID ids as they might change again before the
task returns to user space for real.

The fast path optimization, which checks for the 'entry from user via
interrupt' condition is only available for architectures which use the
generic entry code.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Link: https://patch.msgid.link/20251027084307.455429038@linutronix.de
include/linux/rseq.h
kernel/rseq.c