diff options
| author | Björn Töpel <[email protected]> | 2023-07-06 14:22:28 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2023-07-06 20:39:40 +0000 |
| commit | e76a014334a6d46a9c21356afa25aa5b81566540 (patch) | |
| tree | 1bc4937e7daff0717b87cd5e75480a950a984f3d /tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c | |
| parent | Merge branch 'bpf: add percpu stats for bpf_map' (diff) | |
| download | kernel-e76a014334a6d46a9c21356afa25aa5b81566540.tar.gz kernel-e76a014334a6d46a9c21356afa25aa5b81566540.zip | |
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 <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Acked-by: Stanislav Fomichev <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c')
0 files changed, 0 insertions, 0 deletions
