Files
twx-linux/kernel
Bui Quang Minh 7661073517 bpf: Check for integer overflow when using roundup_pow_of_two()
[ Upstream commit 6183f4d3a0 ]

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 14:00:32 +01:00
..
2020-09-23 10:46:32 +02:00
2019-12-01 09:14:03 +01:00
2021-02-07 14:47:41 +01:00
2021-02-10 09:12:08 +01:00
2020-04-02 16:34:20 +02:00
2020-04-24 08:00:38 +02:00
2021-02-07 14:47:41 +01:00
2020-01-09 10:17:53 +01:00