All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@kernel.org>
To: linux-kernel@vger.kernel.org
Cc: Masami Hiramatsu <mhiramat@kernel.org>,
	Mark Rutland <mark.rutland@arm.com>,
	Mathieu Desnoyers <mathieu.desnoyers@efficios.com>,
	Andrew Morton <akpm@linux-foundation.org>
Subject: [for-linus][PATCH 0/5] tracing: Fixes for v7.2
Date: Wed, 29 Jul 2026 19:55:51 -0400	[thread overview]
Message-ID: <20260729235551.356165691@kernel.org> (raw)

tracing fixes for 7.2:

- Reset dropped_count in mmio_reset_data()

  When mmio_reset_data() is called, it does not reset the dropped_count
  so that subsequent runs will have incorrect reporting.

- Add NULL check for mmio_trace_array in logging functions

  The functions __trace_mmiotrace_rw() and __trace_mmiotrace_map()
  may have the 'tr' variable passed to it as NULL. But they both
  dereference it without checking if it is NULL first.

- Check return value of __register_event() in trace_module_add_events()

  If __register_event() fails, the call after it (__add_event_to_tracers())
  will create a file for it. If the module fails to load and its memory
  is freed, the file will still point to it and it will not be removed
  as the registering of the event did not complete. Only call
  __add_event_to_tracers() if the __register_event() was successful.

- Fix false positive match in regex_match_full()

  The regex full matching uses a strncmp() to test against the match
  string and the value. It should not match if value is a prefix of
  the string to match. Check to make sure the length of the strings
  match before comparing.

- Fix reader page read offset for remote buffers

  A page swapped in by __rb_get_reader_page_from_remote() retains its
  stale read offset, causing subsequent reads to skip events or read
  past valid data.

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

Head SHA1: 78cd56c2a9d2e8da763cea3b06b636266ca66911


Masami Hiramatsu (Google) (4):
      tracing/mmiotrace: Reset dropped_count in mmio_reset_data()
      tracing/mmiotrace: Add NULL check for mmio_trace_array in logging functions
      tracing: Check return value of __register_event() in trace_module_add_events()
      tracing/filters: Fix false positive match in regex_match_full()

Vincent Donnefort (1):
      ring-buffer: Fix reader page read offset for remote buffers

----
 kernel/trace/ring_buffer.c         |  1 +
 kernel/trace/trace_events.c        |  4 ++--
 kernel/trace/trace_events_filter.c |  3 +++
 kernel/trace/trace_mmiotrace.c     | 13 +++++++++++--
 4 files changed, 17 insertions(+), 4 deletions(-)

             reply	other threads:[~2026-07-29 23:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-29 23:55 Steven Rostedt [this message]
2026-07-29 23:55 ` [for-linus][PATCH 1/5] tracing/mmiotrace: Reset dropped_count in mmio_reset_data() Steven Rostedt
2026-07-29 23:55 ` [for-linus][PATCH 2/5] tracing/mmiotrace: Add NULL check for mmio_trace_array in logging functions Steven Rostedt
2026-07-29 23:55 ` [for-linus][PATCH 3/5] tracing: Check return value of __register_event() in trace_module_add_events() Steven Rostedt
2026-07-29 23:55 ` [for-linus][PATCH 4/5] tracing/filters: Fix false positive match in regex_match_full() Steven Rostedt
2026-07-29 23:55 ` [for-linus][PATCH 5/5] ring-buffer: Fix reader page read offset for remote buffers Steven Rostedt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260729235551.356165691@kernel.org \
    --to=rostedt@kernel.org \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=mathieu.desnoyers@efficios.com \
    --cc=mhiramat@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.