rseq: Allow registering RSEQ with slice extension

Since glibc cares about the number of syscalls required to initialize a new
thread, allow initializing rseq with slice extension on. This avoids having to
do another prctl().

Requested-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/20260121143207.814193010@infradead.org
This commit is contained in:
Peter Zijlstra
2026-01-19 11:23:57 +01:00
parent 830969e782
commit d6200245c7
2 changed files with 12 additions and 3 deletions

View File

@@ -19,7 +19,8 @@ enum rseq_cpu_id_state {
};
enum rseq_flags {
RSEQ_FLAG_UNREGISTER = (1 << 0),
RSEQ_FLAG_UNREGISTER = (1 << 0),
RSEQ_FLAG_SLICE_EXT_DEFAULT_ON = (1 << 1),
};
enum rseq_cs_flags_bit {