Thread (4 messages) 4 messages, 2 authors, 17d ago

Re: [PATCH] tracing: hist: free the var ref when its initialization fails

From: Donggeun Yoo <hidden>
Date: 2026-09-06 13:51:10
Also in: sashiko-reviews

Sashiko wrote:
- [High] Pre-existing memory leak in `__destroy_hist_field()` for variable
references (`VAR_REF` fields) reused three or more times within a histogram
trigger.
That is the bug fixed by the patch linked in this one's notes:

  https://lore.kernel.org/linux-trace-kernel/20260906124025.3550596-1-donggeunyoo.kernel@gmail.com/ (local)

It removes the reference count so __destroy_hist_field() frees
unconditionally, and the three-reference case no longer leaks. The two
patches are independent and apply in either order.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help