Re: [PATCH 0/2] perf kvm: Fix memory leaks

Namhyung Kim <[email protected]>
Newsgroups org.kernel.vger.linux-perf-users,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
On Fri, 07 Aug 2026 17:08:34 +0200, Michalis Niarchos wrote:
> Running ./perf kvm stat report with ASan, revealed some memory leaks:
> 
> ==206006==ERROR: LeakSanitizer: detected memory leaks
> 
> Direct leak of 72 byte(s) in 3 object(s) allocated from:
>     #0 0x7ff86bf2bea9 in calloc (/usr/lib/libasan.so.8+0x12bea9) (BuildId: 7f2845989b820f536270e19ec47df085ae89a675)
>     #1 0x55f42795a0d5 in zalloc ../../lib/zalloc.c:8
>     #2 0x55f42782d7f4 in per_vcpu_record /home/mike/git/linux/tools/perf/builtin-kvm.c:929
>     #3 0x55f42782dab7 in handle_kvm_event /home/mike/git/linux/tools/perf/builtin-kvm.c:950
>     #4 0x55f42782fa80 in process_sample_event /home/mike/git/linux/tools/perf/builtin-kvm.c:1159
>     ...
>     #14 0x55f42783236c in read_events /home/mike/git/linux/tools/perf/builtin-kvm.c:1591
>     #15 0x55f4278326f8 in kvm_events_report_vcpu /home/mike/git/linux/tools/perf/builtin-kvm.c:1636
> 
> [...]
Applied to perf-tools-next, thanks!

Best regards,
Namhyung
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.