diff options
author | Alexei Starovoitov <ast@kernel.org> | 2018-11-22 10:49:56 -0800 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2018-11-22 21:29:40 +0100 |
commit | 813961de3ee6474dd5703e883471fd941d6c8f69 (patch) | |
tree | c96784f1ab86f2fcdf98c420fd1f7fcb714e7107 /lib/memory-notifier-error-inject.c | |
parent | dde7011a824cfa815b03f853ec985ff46b740939 (diff) |
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: f1a2e44a3aec ("bpf: add queue and stack maps")
Reported-by: Wei Wu <ww9210@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Cc: Mauricio Vasquez B <mauricio.vasquez@polito.it>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions