Skip to content
Commit 813961de authored by Alexei Starovoitov's avatar Alexei Starovoitov Committed by Daniel Borkmann
Browse files

bpf: fix integer overflow in queue_stack_map

Fix the following issues:

- allow queue_stack_map for root only
- fix u32 max_entries overflow
- disallow value_size == 0

Fixes: f1a2e44a

 ("bpf: add queue and stack maps")
Reported-by: default avatarWei Wu <ww9210@gmail.com>
Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
Cc: Mauricio Vasquez B <mauricio.vasquez@polito.it>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
parent dde7011a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment