Skip to content

selftests/bpf: veristat: Minimize map size during verification#12747

Closed
kernel-patches-daemon-bpf[bot] wants to merge 2 commits into
bpf-next_basefrom
series/1124086=>bpf-next
Closed

selftests/bpf: veristat: Minimize map size during verification#12747
kernel-patches-daemon-bpf[bot] wants to merge 2 commits into
bpf-next_basefrom
series/1124086=>bpf-next

Conversation

@kernel-patches-daemon-bpf

Copy link
Copy Markdown

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

@kernel-patches-daemon-bpf

Copy link
Copy Markdown
Author

Upstream branch: f3b1d8b
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=1124086
version: 3

@kernel-patches-daemon-bpf

Copy link
Copy Markdown
Author

Upstream branch: 41ec7e4
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=1124086
version: 3

@kernel-patches-daemon-bpf

Copy link
Copy Markdown
Author

Upstream branch: e318f9d
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=1124086
version: 3

@kernel-patches-daemon-bpf

Copy link
Copy Markdown
Author

Upstream branch: 47b079e
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=1124086
version: 3

@kernel-patches-daemon-bpf

Copy link
Copy Markdown
Author

Upstream branch: 55db6a4
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=1124086
version: 3

@kernel-patches-daemon-bpf

Copy link
Copy Markdown
Author

Upstream branch: 36ffa86
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=1124086
version: 3

@kernel-patches-daemon-bpf

Copy link
Copy Markdown
Author

Upstream branch: c3d5ef2
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=1124086
version: 3

@kernel-patches-daemon-bpf

Copy link
Copy Markdown
Author

Upstream branch: a455304
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=1124086
version: 3

@kernel-patches-daemon-bpf kernel-patches-daemon-bpf Bot force-pushed the series/1124086=>bpf-next branch from b79a704 to 285f844 Compare July 9, 2026 20:38
@kernel-patches-daemon-bpf

Copy link
Copy Markdown
Author

Upstream branch: b1d4514
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=1124086
version: 3

@kernel-patches-daemon-bpf kernel-patches-daemon-bpf Bot force-pushed the series/1124086=>bpf-next branch from 285f844 to 5bcb100 Compare July 10, 2026 10:10
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)
@kernel-patches-daemon-bpf

Copy link
Copy Markdown
Author

Upstream branch: 30f77a0
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=1124086
version: 3

@kernel-patches-daemon-bpf

Copy link
Copy Markdown
Author

At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=1124086 irrelevant now. Closing PR.

@kernel-patches-daemon-bpf kernel-patches-daemon-bpf Bot deleted the series/1124086=>bpf-next branch July 10, 2026 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant