[RFC PATCH v4 0/4] Faultable syscall tracepoints updates

From: Mathieu Desnoyers
Date: Mon Oct 28 2024 - 15:12:04 EST


This series addresses use-after-free of faultable syscall tracepoints
reported by test bots using Syzkaller.

This applies on linux-next 20241022.

Thanks,

Mathieu

Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
Cc: Michael Jeanson <mjeanson@xxxxxxxxxxxx>
Cc: Masami Hiramatsu <mhiramat@xxxxxxxxxx>
Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
Cc: Alexei Starovoitov <ast@xxxxxxxxxx>
Cc: Yonghong Song <yhs@xxxxxx>
Cc: Paul E. McKenney <paulmck@xxxxxxxxxx>
Cc: Ingo Molnar <mingo@xxxxxxxxxx>
Cc: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
Cc: Mark Rutland <mark.rutland@xxxxxxx>
Cc: Alexander Shishkin <alexander.shishkin@xxxxxxxxxxxxxxx>
Cc: Namhyung Kim <namhyung@xxxxxxxxxx>
Cc: Andrii Nakryiko <andrii.nakryiko@xxxxxxxxx>
Cc: bpf@xxxxxxxxxxxxxxx
Cc: Joel Fernandes <joel@xxxxxxxxxxxxxxxxx>
Cc: Jordan Rife <jrife@xxxxxxxxxx>

Mathieu Desnoyers (4):
tracing: Introduce tracepoint extended structure
tracing: Introduce tracepoint_is_faultable()
tracing: Fix syscall tracepoint use-after-free
tracing: Add might_fault() check in __DO_TRACE() for syscall

include/linux/tracepoint-defs.h | 10 +++++--
include/linux/tracepoint.h | 49 +++++++++++++++++++++++++++------
include/trace/define_trace.h | 2 +-
kernel/tracepoint.c | 20 ++++++++------
4 files changed, 61 insertions(+), 20 deletions(-)

--
2.39.5