Andrei Matei a8d89feba7 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>
2024-03-27 09:56:17 -07:00
..
2024-03-11 09:25:33 -07:00
2023-08-24 10:41:47 -04:00
2024-03-14 16:16:33 -07:00
2024-03-15 13:03:13 -07:00
2024-03-14 16:00:27 -07:00
2024-03-11 09:25:33 -07:00
2023-11-01 17:08:10 -10:00
2024-03-15 17:53:48 -07:00
2023-10-15 20:07:52 +01:00
2023-04-25 11:05:04 -07:00
2024-03-12 17:44:08 -07:00
2023-10-05 14:22:53 -06:00
2024-03-12 17:44:08 -07:00
2024-03-21 12:35:20 -07:00