Björn Töpel e76a014334 selftests/bpf: Bump and validate MAX_SYMS
BPF tests that load /proc/kallsyms, e.g. bpf_cookie, will perform a
buffer overrun if the number of syms on the system is larger than
MAX_SYMS.

Bump the MAX_SYMS to 400000, and add a runtime check that bails out if
the maximum is reached.

Signed-off-by: Björn Töpel <bjorn@rivosinc.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Stanislav Fomichev <sdf@google.com>
Link: https://lore.kernel.org/bpf/20230706142228.1128452-1-bjorn@kernel.org
2023-07-06 13:39:40 -07:00
..
2023-01-21 17:52:26 +00:00
2023-06-28 16:43:10 -07:00
2023-04-25 13:00:41 -07:00
2023-06-27 15:05:41 -07:00
2023-06-28 16:43:10 -07:00
2023-04-27 17:41:23 -07:00
2023-04-18 14:22:12 -07:00