diff options
author | 2024-03-26 22:42:44 -0400 | |
---|---|---|
committer | 2024-03-27 09:56:17 -0700 | |
commit | a8d89feba7e54e691ca7c4efc2a6264fa83f3687 (patch) | |
tree | 087d15f18cc99fa5355fe72cb0b91188b6c1d858 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | bpf: fix warning for crash_kexec (diff) | |
download | wireguard-linux-a8d89feba7e54e691ca7c4efc2a6264fa83f3687.tar.xz wireguard-linux-a8d89feba7e54e691ca7c4efc2a6264fa83f3687.zip |
bpf: Check bloom filter map value size
This patch adds a missing check to bloom filter creating, rejecting
values above KMALLOC_MAX_SIZE. This brings the bloom map in line with
many other map types.
The lack of this protection can cause kernel crashes for value sizes
that overflow int's. Such a crash was caught by syzkaller. The next
patch adds more guard-rails at a lower level.
Signed-off-by: Andrei Matei <andreimatei1@gmail.com>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20240327024245.318299-2-andreimatei1@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions