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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241120214531.45d75a60@gandalf.local.home>
Date: Wed, 20 Nov 2024 21:45:31 -0500
From: Steven Rostedt <rostedt@...dmis.org>
To: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: LKML <linux-kernel@...r.kernel.org>, Masami Hiramatsu
 <mhiramat@...nel.org>, Andrii Nakryiko <andrii@...nel.org>, Colin Ian King
 <colin.i.king@...il.com>, Jeff Xie <jeff.xie@...ux.dev>, Jinjie Ruan
 <ruanjinjie@...wei.com>, Josh Poimboeuf <jpoimboe@...nel.org>, Justin Stitt
 <justinstitt@...gle.com>, Levi Yun <yeoreum.yun@....com>, Li Chen
 <chenl311@...natelecom.cn>, Mathieu Desnoyers
 <mathieu.desnoyers@...icios.com>, Ryan Roberts <ryan.roberts@....com>,
 Sebastian Andrzej Siewior <bigeasy@...utronix.de>, Tatsuya S
 <tatsuya.s2862@...il.com>, Uros Bizjak <ubizjak@...il.com>, Zheng Yejian
 <zhengyejian@...weicloud.com>, guoweikang <guoweikang.kernel@...il.com>
Subject: [GIT PULL] tracing: Updates for v6.13


Linus,

tracing updates for v6.13:

- Addition of faultable tracepoints

  There's a tracepoint attached to both a system call entry and exit. This
  location is known to allow page faults. The tracepoints are called under
  an rcu_read_lock() which does not allow faults that can sleep. This limits
  the ability of tracepoint handlers to page fault in user space system call
  parameters. Now these tracepoints have been made "faultable", allowing the
  callbacks to fault in user space parameters and record them.

  Note, only the infrastructure has been implemented. The consumers (perf,
  ftrace, BPF) now need to have their code modified to allow faults.

- Fix up of BPF code for the tracepoint faultable logic

- Update tracepoints to use the new static branch API

- Remove trace_*_rcuidle() variants and the SRCU protection they used

- Remove unused TRACE_EVENT_FL_FILTERED logic

- Replace strncpy() with strscpy() and memcpy()

- Use replace per_cpu_ptr(smp_processor_id()) with this_cpu_ptr()

- Fix perf events to not duplicate samples when tracing is enabled

- Replace atomic64_add_return(1, counter) with atomic64_inc_return(counter)

- Make stack trace buffer 4K instead of PAGE_SIZE

- Remove TRACE_FLAG_IRQS_NOSUPPORT flag as it was never used

- Get the true return address for function tracer when function graph tracer
  is also running.

  When function_graph trace is running along with function tracer,
  the parent function of the function tracer sometimes is
  "return_to_handler", which is the function graph trampoline to record
  the exit of the function. Use existing logic that calls into the
  fgraph infrastructure to find the real return address.

- Remove (un)regfunc pointers out of tracepoint structure

- Added last minute bug fix for setting pending modules in stack function
  filter.

  echo "write*:mod:ext3" > /sys/kernel/tracing/stack_trace_filter

  Would cause a kernel NULL dereference.

- Minor clean ups


Please pull the latest trace-v6.13 tree, which can be found at:


  git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git
trace-v6.13

Tag SHA1: 8f623cff04bb42e08806c4d6ed5ccb6cd49c1365
Head SHA1: 45af52e7d3b8560f21d139b3759735eead8b1653


Andrii Nakryiko (3):
      bpf: put bpf_link's program when link is safe to be deallocated
      bpf: decouple BPF link/attach hook and BPF program sleepable semantics
      bpf: ensure RCU Tasks Trace GP for sleepable raw tracepoint BPF links

Colin Ian King (1):
      tracing: Remove redundant check on field->field in histograms

Jeff Xie (1):
      ftrace: Get the true parent ip for function tracer

Jinjie Ruan (1):
      tracing: Replace strncpy() with strscpy() when copying comm

Josh Poimboeuf (1):
      tracepoints: Use new static branch API

Justin Stitt (2):
      tracing/branch-profiler: Replace deprecated strncpy with strscpy
      tracing: Replace multiple deprecated strncpy with memcpy

Levi Yun (1):
      trace/trace_event_perf: remove duplicate samples on the first tracepoint event

Li Chen (1):
      ftrace: Use this_cpu_ptr() instead of per_cpu_ptr(smp_processor_id())

Mathieu Desnoyers (12):
      tracing: Declare system call tracepoints with TRACE_EVENT_SYSCALL
      tracing/ftrace: disable preemption in syscall probe
      tracing/perf: disable preemption in syscall probe
      tracing/bpf: disable preemption in syscall probe
      tracing: Allow system call tracepoints to handle page faults
      tracing/ftrace: Add might_fault check to syscall probes
      tracing/perf: Add might_fault check to syscall probes
      tracing/bpf: Add might_fault check to syscall probes
      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

Ryan Roberts (1):
      tracing: Make percpu stack trace buffer invariant to PAGE_SIZE

Sebastian Andrzej Siewior (1):
      tracing: Remove TRACE_FLAG_IRQS_NOSUPPORT

Steven Rostedt (2):
      tracing: Remove definition of trace_*_rcuidle()
      tracepoint: Remove SRCU protection

Tatsuya S (1):
      tracing: Fix function name for trampoline

Uros Bizjak (1):
      tracing: Use atomic64_inc_return() in trace_clock_counter()

Zheng Yejian (1):
      tracing: Remove TRACE_EVENT_FL_FILTERED logic

guoweikang (1):
      ftrace: Fix regression with module command in stack_trace_filter

----
 Documentation/trace/ftrace.rst       |   3 -
 include/linux/bpf.h                  |  20 ++++-
 include/linux/trace_events.h         |  17 ----
 include/linux/tracepoint-defs.h      |  14 ++-
 include/linux/tracepoint.h           | 169 ++++++++++++++++++++---------------
 include/trace/bpf_probe.h            |  14 +++
 include/trace/define_trace.h         |   5 ++
 include/trace/events/preemptirq.h    |   8 --
 include/trace/events/syscalls.h      |   4 +-
 include/trace/perf.h                 |  44 ++++++++-
 include/trace/trace_events.h         |  62 ++++++++++++-
 init/Kconfig                         |   1 +
 kernel/bpf/syscall.c                 |  67 ++++++++++----
 kernel/trace/ftrace.c                |   3 +
 kernel/trace/trace.c                 |  81 ++++++++---------
 kernel/trace/trace.h                 |  11 ++-
 kernel/trace/trace_branch.c          |  10 +--
 kernel/trace/trace_clock.c           |   2 +-
 kernel/trace/trace_event_perf.c      |   6 ++
 kernel/trace/trace_events.c          |   2 -
 kernel/trace/trace_events_filter.c   |   8 +-
 kernel/trace/trace_events_hist.c     |  11 +--
 kernel/trace/trace_events_user.c     |   4 +-
 kernel/trace/trace_functions.c       |  36 ++++++--
 kernel/trace/trace_functions_graph.c |   8 +-
 kernel/trace/trace_hwlat.c           |   4 +-
 kernel/trace/trace_mmiotrace.c       |   8 +-
 kernel/trace/trace_osnoise.c         |  12 +--
 kernel/trace/trace_output.c          |   5 +-
 kernel/trace/trace_preemptirq.c      |  26 ++----
 kernel/trace/trace_sched_switch.c    |   2 +-
 kernel/trace/trace_sched_wakeup.c    |   8 +-
 kernel/trace/trace_syscalls.c        |  28 ++++++
 kernel/tracepoint.c                  |  75 +++-------------
 scripts/tags.sh                      |   2 -
 35 files changed, 452 insertions(+), 328 deletions(-)
---------------------------

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ