selftests/bpf: veristat: Minimize map size during verification#12747
selftests/bpf: veristat: Minimize map size during verification#12747kernel-patches-daemon-bpf[bot] wants to merge 2 commits into
Conversation
|
Upstream branch: f3b1d8b |
787c964 to
369c9ba
Compare
|
Upstream branch: 41ec7e4 |
2cdd66b to
a8a174c
Compare
369c9ba to
a86433a
Compare
|
Upstream branch: e318f9d |
a8a174c to
29a83f0
Compare
a86433a to
ef46468
Compare
|
Upstream branch: 47b079e |
29a83f0 to
8d12661
Compare
ef46468 to
7d1432f
Compare
|
Upstream branch: 55db6a4 |
8d12661 to
7252444
Compare
7d1432f to
f42b070
Compare
|
Upstream branch: 36ffa86 |
7252444 to
635195d
Compare
f42b070 to
76af7b1
Compare
|
Upstream branch: c3d5ef2 |
635195d to
b79a704
Compare
76af7b1 to
294813d
Compare
|
Upstream branch: a455304 |
b79a704 to
285f844
Compare
294813d to
3d40a7b
Compare
|
Upstream branch: b1d4514 |
285f844 to
5bcb100
Compare
3d40a7b to
320974b
Compare
The veristat tool verifies that BPF objects along with their maps pass verification for a given kernel version. To do so, veristat loads the objects and maps into the kernel in order to pass them through the verifier. Currently, veristat sizes the maps according to the max_entries field provided by the program author. Depending on the map type this field may be irrelevant to the verification process. However, loading a large map can fail because of -ENOMEM errors. This is a problem when the map is supposed to run on large machines, but veristat tests it machines with significantly less RAM (e.g., CI). In that case veristat fails even if the program verifies. Expand veristat to resize maps whose max_entries are not relevant to verification. Set the max_entries value as low as possible to avoid -ENOMEM errors. Suggested-by: Andrii Nakryiko <andrii@kernel.org> Signed-off-by: Emil Tsalapatis <emil@etsalapatis.com> CHANGELOG ========= v2->v3 - Do not resize HASH_OF_MAPS because it can be declaratively populated from BPF at compile time (Sashiko) v1->v2 - Removed unnecessary ARENA, LPM_TRIE, and RHASH handling (Sashiko)
|
Upstream branch: 30f77a0 |
5bcb100 to
1aafd2f
Compare
320974b to
a8517a2
Compare
|
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=1124086 irrelevant now. Closing PR. |
Pull request for series with
subject: selftests/bpf: veristat: Minimize map size during verification
version: 3
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=1124086