aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorHou Tao <[email protected]>2022-11-16 15:23:51 +0800
committerAndrii Nakryiko <[email protected]>2022-11-17 15:49:59 -0800
commit05c1558bfcb63b95a9f530767c04c7db091560f2 (patch)
treefa2ca7e67b027b642c4ed7cfb7872ab9b9106a29 /tools/perf/scripts/python/stackcollapse.py
parent64176bff2446cd825b163976ee451fb6e5cd851d (diff)
libbpf: Check the validity of size in user_ring_buffer__reserve()
The top two bits of size are used as busy and discard flags, so reject the reservation that has any of these special bits in the size. With the addition of validity check, these is also no need to check whether or not total_size is overflowed. Signed-off-by: Hou Tao <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions