diff options
author | Bui Quang Minh <[email protected]> | 2021-01-27 06:36:53 +0000 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2021-02-03 21:45:33 +0100 |
commit | 6183f4d3a0a2ad230511987c6c362ca43ec0055f (patch) | |
tree | d30766fb02fcac1ed22476c75727435978cdee76 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 548f1191d86ccb9bde2a5305988877b7584c01eb (diff) |
bpf: Check for integer overflow when using roundup_pow_of_two()
On 32-bit architecture, roundup_pow_of_two() can return 0 when the argument
has upper most bit set due to resulting 1UL << 32. Add a check for this case.
Fixes: d5a3b1f69186 ("bpf: introduce BPF_MAP_TYPE_STACK_TRACE")
Signed-off-by: Bui Quang Minh <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions