rseq: Cache CPU ID and MM CID values
authorThomas Gleixner <tglx@linutronix.de>
Mon, 27 Oct 2025 08:44:45 +0000 (09:44 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 4 Nov 2025 07:32:14 +0000 (08:32 +0100)
commit4b7de6df20d43dd651031aef8d818fa5da981dbf
treeb4a5bc7da9f59d105c1be32f36c0d63e6054c2f5
parent4fc9225d19ad6289c03340a520d35e3a6d1aebed
rseq: Cache CPU ID and MM CID values

In preparation for rewriting RSEQ exit to user space handling provide
storage to cache the CPU ID and MM CID values which were written to user
space. That prepares for a quick check, which avoids the update when
nothing changed.

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.841964081@linutronix.de
include/linux/rseq.h
include/linux/rseq_types.h
include/trace/events/rseq.h
kernel/rseq.c