Skip to content

tracing/remotes: Fix leak in trace_remote_alloc_buffer() error path

Vincent Donnefort linux-trace-kernel lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 5 repliesIn review
  2. v11 patch 2 repliesSuperseded

Changes in v2 from the cover letter

- Leak fix: increment nr_cpus early (after meta_va allocation) instead of in the error path.
- Added struct_len double-counting fix.
- Added sparse CPU masks support in ring_buffer_desc().

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3tracing/remotes: Fix leak in trace_remote_alloc_buffer() error pathkernel/trace/trace_remote.c+2 -15 replies
2/3tracing/remotes: Fix struct_len in trace_remote_alloc_buffer()kernel/trace/trace_remote.c+4 -110 replies
3/3ring-buffer: Allow sparse CPU masks in ring_buffer_desc()kernel/trace/ring_buffer.c+1 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] tracing/remotes: Fix leak in trace_remote_alloc_buffer() error path

This series addresses a few issues in the trace remote buffers allocation and descriptor handling, mostly reported by Sashiko bot on top of v1.

Changelog:

v1 -> v2:
- Leak fix: increment nr_cpus early (after meta_va allocation) instead of in the error path.
- Added struct_len double-counting fix.
- Added sparse CPU masks support in ring_buffer_desc().

v1: https://lore.kernel.org/all/[email protected]/

Vincent Donnefort (3):
tracing/remotes: Fix leak in trace_remote_alloc_buffer() error path tracing/remotes: Fix struct_len in trace_remote_alloc_buffer()
ring-buffer: Allow sparse CPU masks in ring_buffer_desc()

 kernel/trace/ring_buffer.c  |  5 +----
 kernel/trace/trace_remote.c | 18 ++++++------------
 2 files changed, 7 insertions(+), 16 deletions(-)

base-commit: 8cdeaa50eae8dad34885515f62559ee83e7e8dda

Signature · 1 line
2.55.0.795.g602f6c329a-goog