aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/intel-pt-events.py
diff options
context:
space:
mode:
authorJohn Fastabend <[email protected]>2017-10-19 16:03:52 +0000
committerDavid S. Miller <[email protected]>2017-10-21 23:54:09 +0000
commit8695a5395661fbb4a4f26c97f801f3800ae4754e (patch)
treed7f30a46a501e695325675205354a69c29bad81e /tools/perf/scripts/python/intel-pt-events.py
parentMerge branch 'aquantia-fixes' (diff)
downloadkernel-8695a5395661fbb4a4f26c97f801f3800ae4754e.tar.gz
kernel-8695a5395661fbb4a4f26c97f801f3800ae4754e.zip
bpf: devmap fix arithmetic overflow in bitmap_size calculation
An integer overflow is possible in dev_map_bitmap_size() when calculating the BITS_TO_LONG logic which becomes, after macro replacement, (((n) + (d) - 1)/ (d)) where 'n' is a __u32 and 'd' is (8 * sizeof(long)). To avoid overflow cast to u64 before arithmetic. Reported-by: Richard Weinberger <[email protected]> Acked-by: Daniel Borkmann <[email protected]> Signed-off-by: John Fastabend <[email protected]> Acked-by: Alexei Starovoitov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions