aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/bpf_doc.py
diff options
context:
space:
mode:
authorAndrei Matei <[email protected]>2024-03-27 02:42:44 +0000
committerAlexei Starovoitov <[email protected]>2024-03-27 16:56:17 +0000
commita8d89feba7e54e691ca7c4efc2a6264fa83f3687 (patch)
tree087d15f18cc99fa5355fe72cb0b91188b6c1d858 /scripts/bpf_doc.py
parentbpf: fix warning for crash_kexec (diff)
downloadkernel-a8d89feba7e54e691ca7c4efc2a6264fa83f3687.tar.gz
kernel-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 <[email protected]> Acked-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions