Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

rseq: Make exit debugging static branch based

Disconnect it from the config switch and use the static debug branch. This
is a temporary measure for validating the rework. At the end this check
needs to be hidden behind lockdep as it has nothing to do with the other
debug infrastructure, which mainly aids user space debugging by enabling a
zoo of checks which terminate misbehaving tasks instead of letting them
keep the hard to diagnose pieces.

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.272660745@linutronix.de

authored by

Thomas Gleixner and committed by
Ingo Molnar
c1cbad8f f7ee1964

+1 -1
+1 -1
include/linux/rseq_entry.h
··· 285 285 286 286 rseq_stat_inc(rseq_stats.exit); 287 287 288 - if (IS_ENABLED(CONFIG_DEBUG_RSEQ)) 288 + if (static_branch_unlikely(&rseq_debug_enabled)) 289 289 WARN_ON_ONCE(ev->sched_switch); 290 290 291 291 /*