diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2025-10-27 11:45:02 +0300 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2025-11-04 10:33:20 +0300 |
| commit | c1cbad8f99b5c73c6af6e96acbfa64eaaaeb085f (patch) | |
| tree | d1a6071ec21e4c459db50f702043dea62f3b24f7 | |
| parent | f7ee1964ac397bee5c6d1c017557c0eec8856145 (diff) | |
| download | linux-c1cbad8f99b5c73c6af6e96acbfa64eaaaeb085f.tar.xz | |
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
| -rw-r--r-- | include/linux/rseq_entry.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/rseq_entry.h b/include/linux/rseq_entry.h index f9510ce72211..5bdcf5b5f595 100644 --- a/include/linux/rseq_entry.h +++ b/include/linux/rseq_entry.h @@ -285,7 +285,7 @@ static __always_inline void rseq_exit_to_user_mode(void) rseq_stat_inc(rseq_stats.exit); - if (IS_ENABLED(CONFIG_DEBUG_RSEQ)) + if (static_branch_unlikely(&rseq_debug_enabled)) WARN_ON_ONCE(ev->sched_switch); /* |
