summaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorMichael Jeanson <mjeanson@efficios.com>2025-02-19 23:53:26 +0300
committerIngo Molnar <mingo@kernel.org>2025-02-21 16:21:02 +0300
commitdc0a241ceaf3b7df6f1a7658b020c92682b75bfc (patch)
tree2019cf9195d235456ef28aedd2988ae8c7be36a0 /tools/perf/util/scripting-engines/trace-event-python.c
parent02d954c0fdf91845169cdacc7405b120f90afe01 (diff)
downloadlinux-dc0a241ceaf3b7df6f1a7658b020c92682b75bfc.tar.xz
rseq: Fix rseq registration with CONFIG_DEBUG_RSEQ
With CONFIG_DEBUG_RSEQ=y, at rseq registration the read-only fields are copied from user-space, if this copy fails the syscall returns -EFAULT and the registration should not be activated - but it erroneously is. Move the activation of the registration after the copy of the fields to fix this bug. Fixes: 7d5265ffcd8b ("rseq: Validate read-only fields under DEBUG_RSEQ config") Signed-off-by: Michael Jeanson <mjeanson@efficios.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Link: https://lore.kernel.org/r/20250219205330.324770-1-mjeanson@efficios.com
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions