]> git.ipfire.org Git - thirdparty/linux.git/commit
ring-buffer: Fix to update per-subbuf entries of persistent ring buffer
authorMasami Hiramatsu (Google) <mhiramat@kernel.org>
Thu, 19 Mar 2026 09:12:19 +0000 (18:12 +0900)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Sat, 21 Mar 2026 20:47:28 +0000 (16:47 -0400)
commitf35dbac6942171dc4ce9398d1d216a59224590a9
tree8ed9093aa20f8e815b42ae416cc201b94ffebc30
parent07183aac4a6828e474f00b37c9d795d0d99e18a7
ring-buffer: Fix to update per-subbuf entries of persistent ring buffer

Since the validation loop in rb_meta_validate_events() updates the same
cpu_buffer->head_page->entries, the other subbuf entries are not updated.
Fix to use head_page to update the entries field, since it is the cursor
in this loop.

Cc: stable@vger.kernel.org
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Ian Rogers <irogers@google.com>
Fixes: 5f3b6e839f3c ("ring-buffer: Validate boot range memory events")
Link: https://patch.msgid.link/177391153882.193994.17158784065013676533.stgit@mhiramat.tok.corp.google.com
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/ring_buffer.c