mbox series

[v5,0/4] Faultable syscall tracepoints updates

Message ID 20241030144634.721630-1-mathieu.desnoyers@efficios.com (mailing list archive)
Headers show
Series Faultable syscall tracepoints updates | expand

Message

Mathieu Desnoyers Oct. 30, 2024, 2:46 p.m. UTC
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@linutronix.de>
Cc: Michael Jeanson <mjeanson@efficios.com>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Yonghong Song <yhs@fb.com>
Cc: Paul E. McKenney <paulmck@kernel.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Andrii Nakryiko <andrii.nakryiko@gmail.com>
Cc: bpf@vger.kernel.org
Cc: Joel Fernandes <joel@joelfernandes.org>
Cc: Jordan Rife <jrife@google.com>

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 __DECLARE_TRACE_SYSCALL

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

Comments

Steven Rostedt Oct. 30, 2024, 11:33 p.m. UTC | #1
On Wed, 30 Oct 2024 10:46:30 -0400
Mathieu Desnoyers <mathieu.desnoyers@efficios.com> wrote:

> This series addresses use-after-free of faultable syscall tracepoints
> reported by test bots using Syzkaller.
> 
> This applies on linux-next 20241022.

Please Cc, linux-trace-kernel@vger.kernel.org so that your patches
appear in patchwork. Otherwise they will not be seen. I can pull them
from my "INBOX patchwork" but that is outside the workflow of the
tracing subsystem.

-- Steve