lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250402022308.372786127@goodmis.org>
Date: Tue, 01 Apr 2025 22:23:08 -0400
From: Steven Rostedt <rostedt@...dmis.org>
To: linux-kernel@...r.kernel.org
Cc: Masami Hiramatsu <mhiramat@...nel.org>,
 Mark Rutland <mark.rutland@....com>,
 Mathieu Desnoyers <mathieu.desnoyers@...icios.com>,
 Andrew Morton <akpm@...ux-foundation.org>
Subject: [for-linus][PATCH 0/4] tracing: Fixes for 6.15


tracing fixes for 6.15

- Fix build error when CONFIG_PROBE_EVENTS_BTF_ARGS is not enabled

  The tracing of arguments in the function tracer depends on some
  functions that are only defined when PROBE_EVENTS_BTF_ARGS is enabled.
  In fact, PROBE_EVENTS_BTF_ARGS also depends on all the same configs
  as the function argument tracing requires. Just have the function
  argument tracing depend on PROBE_EVENTS_BTF_ARGS.

- Free module_delta for persistent ring buffer instance

  When an instance holds the persistent ring buffer, it allocates
  a helper array to hold the deltas between where modules are loaded
  on the last boot and the current boot. This array needs to be freed
  when the instance is freed.

- Add cond_reschd() to loop in ftrace_graph_set_hash()

  The hash functions in ftrace loop over every function that can be
  enabled by ftrace. This can be 50,000 functions or more. This
  loop is known to trigger soft lockup warnings and requires a
  cond_resched(). The loop in ftrace_graph_set_hash() was missing it.

- Fix the event format verifier to include "%*p.." arguments

  To prevent events from dereferencing stale pointers that can
  happen if a trace event uses a dereferece pointer to something
  that was not copied into the ring buffer and can be freed by the
  time the trace is read, a verifier is called. At boot or module
  load, the verifier scans the print format string for pointers
  that can be dereferenced and it checks the arguments to make sure
  they do not contain something that can be freed. The "%*p" was
  not handled, which would add another argument and cause the verifier
  to not only not verify this pointer, but it will look at the wrong
  argument for every pointer after that.

  git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git
trace/fixes

Head SHA1: 1bf4f0161e70a33c602732c5e0f0fdb268f130e1


Steven Rostedt (3):
      ftrace: Have tracing function args depend on PROBE_EVENTS_BTF_ARGS
      tracing: Free module_delta on freeing of persistent ring buffer
      tracing: Verify event formats that have "%*p.."

zhoumin (1):
      ftrace: Add cond_resched() to ftrace_graph_set_hash()

----
 kernel/trace/Kconfig                       | 3 +--
 kernel/trace/ftrace.c                      | 1 +
 kernel/trace/trace.c                       | 1 +
 kernel/trace/trace_events.c                | 7 +++++++
 samples/trace_events/trace-events-sample.h | 8 ++++++--
 5 files changed, 16 insertions(+), 4 deletions(-)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ