aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorHou Tao <[email protected]>2022-11-21 15:34:38 +0800
committerDaniel Borkmann <[email protected]>2022-11-21 17:40:42 +0100
commit1a5160d4d8fe63ba4964cfff4a85831b6af75f2d (patch)
tree1d025ef563a411d8cf432ae492f239dd9bf77aec /tools/perf/scripts/python/check-perf-trace.py
parentceb35b666d42c2e91b1f94aeca95bb5eb0943268 (diff)
bpf: Pin the start cgroup in cgroup_iter_seq_init()
bpf_iter_attach_cgroup() has already acquired an extra reference for the start cgroup, but the reference may be released if the iterator link fd is closed after the creation of iterator fd, and it may lead to user-after-free problem when reading the iterator fd. An alternative fix is pinning iterator link when opening iterator, but it will make iterator link being still visible after the close of iterator link fd and the behavior is different with other link types, so just fixing it by acquiring another reference for the start cgroup. Fixes: d4ccaf58a847 ("bpf: Introduce cgroup iter") Signed-off-by: Hou Tao <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Yonghong Song <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions