Files
linux-stable-mirror/kernel
Masami Hiramatsu (Google) da102725b4 ring-buffer: Fix to update per-subbuf entries of persistent ring buffer
commit f35dbac694 upstream.

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: 5f3b6e839f ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2026-03-25 11:08:56 +01:00
..
2025-11-24 10:35:59 +01:00
2025-06-27 11:11:45 +01:00
2026-03-25 11:08:24 +01:00
2024-10-09 12:47:19 -07:00
2024-09-27 08:18:43 -07:00
2025-12-18 13:54:50 +01:00