]> www.infradead.org Git - users/dwmw2/linux.git/commit
rseq: Fix rseq unregistration regression
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 16 Jan 2025 20:59:56 +0000 (15:59 -0500)
committerIngo Molnar <mingo@kernel.org>
Tue, 21 Jan 2025 07:10:51 +0000 (08:10 +0100)
commit40724ecafccb1fb62b66264854e8c3ad394c8f3d
tree030f0d4b3c776f18bca6ea901abaf4eb5929593f
parent7d9da040575b343085287686fa902a5b2d43c7ca
rseq: Fix rseq unregistration regression

A logic inversion in rseq_reset_rseq_cpu_node_id() causes the rseq
unregistration to fail when rseq_validate_ro_fields() succeeds rather
than the opposite.

This affects both CONFIG_DEBUG_RSEQ=y and CONFIG_DEBUG_RSEQ=n.

Fixes: 7d5265ffcd8b ("rseq: Validate read-only fields under DEBUG_RSEQ config")
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20250116205956.836074-1-mathieu.desnoyers@efficios.com
kernel/rseq.c