diff options
| author | Vincent Donnefort <vdonnefort@google.com> | 2026-09-11 20:39:35 +0100 |
|---|---|---|
| committer | Steven Rostedt <rostedt@goodmis.org> | 2026-09-13 13:06:29 -0400 |
| commit | 442ffa742daa65a0e8fe003abe9fbe472366e4de (patch) | |
| tree | 1f72c21dd26526d26b19bee8d453a6b8387755a0 /scripts/basic | |
| parent | bcfe2816e6ec46c3f4c58aa4264476665ddb3f69 (diff) | |
| download | linux-442ffa742daa65a0e8fe003abe9fbe472366e4de.tar.gz linux-442ffa742daa65a0e8fe003abe9fbe472366e4de.zip | |
tracing/remotes: Account for ring buffer page header in size calculation
trace_buffer_desc_size() and trace_remote_alloc_buffer() undercount the
required pages because every ring buffer page contains a header
(BUF_PAGE_HDR_SIZE). Account for that header to ensure allocated remote
ring buffers aren't smaller than requested by the user.
The newly introduced helper __calc_nr_pages_ring_buffer_desc() can
return a value that overflows the descriptor nr_pages field (32 bits).
Link: https://patch.msgid.link/20260911193937.602202-2-vdonnefort@google.com
Fixes: 2e67fabd8b77 ("ring-buffer: Introduce ring-buffer remotes")
Signed-off-by: Vincent Donnefort <vdonnefort@google.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions
