]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rseq: Record interrupt from user space
authorThomas Gleixner <tglx@linutronix.de>
Mon, 27 Oct 2025 08:44:48 +0000 (09:44 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 4 Nov 2025 07:32:23 +0000 (08:32 +0100)
commit2fc0e4b4126caadfa5772ba69276b350609584dd
tree32cb4944c87f512e7a58e1796f9fe10051b4dc69
parent4b7de6df20d43dd651031aef8d818fa5da981dbf
rseq: Record interrupt from user space

For RSEQ the only relevant reason to inspect and eventually fixup (abort)
user space critical sections is when user space was interrupted and the
task was scheduled out.

If the user to kernel entry was from a syscall no fixup is required. If
user space invokes a syscall from a critical section it can keep the
pieces as documented.

This is only supported on architectures which utilize the generic entry
code. If your architecture does not use it, bad luck.

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/20251027084306.905067101@linutronix.de
include/linux/irq-entry-common.h
include/linux/rseq.h
include/linux/rseq_entry.h [new file with mode: 0644]
include/linux/rseq_types.h