Re: [PATCH] perf bperf: Avoid use after free via union
From: Arnaldo Carvalho de Melo
Date: Tue Apr 11 2023 - 08:36:55 EST
Em Mon, Apr 10, 2023 at 10:17:18PM -0700, Ian Rogers escreveu:
> If bperf sets leader_skel or follower_skel then it appears bpf_skel is
> set and can trigger the following use-after-free:
<SNIP>
> Resolve by clearing bpf_skel as part of bpf_counter__destroy.
> Suggested-by: Namhyung Kim <namhyung@xxxxxxxxxx>
Thanks, applied.
- Arnaldo