Re: [PATCH] bpf: Check for integer overflow when using roundup_pow_of_two()

2021-02-03 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to bpf/bpf.git (refs/heads/master): On Wed, 27 Jan 2021 06:36:53 + you wrote: > 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: d5a3b1f ("bpf

[PATCH] bpf: Check for integer overflow when using roundup_pow_of_two()

2021-01-26 Thread Bui Quang Minh
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: d5a3b1f ("bpf: introduce BPF_MAP_TYPE_STACK_TRACE") Signed-off-by: Bui Quang Minh --- kernel/bpf/stackmap.c | 2 ++ 1 file changed, 2 i