android_kernel_sony_sdm845/kernel/bpf
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Bui Quang Minh 253150830a bpf: Check for integer overflow when using roundup_pow_of_two()
[ Upstream commit 6183f4d3a0a2ad230511987c6c362ca43ec0055f ]

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: d5a3b1f691 ("bpf: introduce BPF_MAP_TYPE_STACK_TRACE")
Signed-off-by: Bui Quang Minh <minhquangbui99@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20210127063653.3576-1-minhquangbui99@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-02-23 13:59:16 +01:00
..
arraymap.c bpf: map_get_next_key to return first key on NULL 2018-05-09 09:50:19 +02:00
core.c bpf: fix bpf_jit_limit knob for PAGE_SIZE >= 64K 2019-08-25 10:51:50 +02:00
hashtab.c bpf: Remove recursion prevention from rcu free callback 2020-10-01 20:40:08 +02:00
helpers.c bpf: direct packet write and access for helpers for clsact progs 2016-09-20 23:32:11 -04:00
inode.c fs: Replace CURRENT_TIME with current_time() for inode timestamps 2016-09-27 21:06:21 -04:00
Makefile bpf: silence warning messages in core 2019-08-04 09:33:19 +02:00
percpu_freelist.c bpf: fix lockdep splat 2017-12-14 09:28:23 +01:00
percpu_freelist.h bpf: introduce percpu_freelist 2016-03-08 15:28:31 -05:00
stackmap.c bpf: Check for integer overflow when using roundup_pow_of_two() 2021-02-23 13:59:16 +01:00
syscall.c bpf: Explicitly memset the bpf_attr structure 2020-04-02 17:20:40 +02:00
verifier.c bpf: Fix buggy rsh min/max bounds tracking 2021-01-30 13:27:15 +01:00