Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pickup update libbtf that supports anonymous inner maps #562

Merged
merged 1 commit into from
Jan 15, 2024

Conversation

Alan-Jowett
Copy link
Contributor

This map definition fails verification because libbtf doesn't return the descriptor for maps that aren't associated with variables in the .maps section (like an anonymous inner map).

__attribute__((section(".maps"), used))
struct {
    __uint(type, BPF_MAP_TYPE_ARRAY_OF_MAPS);
    __uint(max_entries, 1);
    __type(key, uint32_t);
    __array(values, struct
    {
        __uint(type, BPF_MAP_TYPE_ARRAY);
        __type(key, uint32_t);
        __type(value, uint32_t);
        __uint(max_entries, 1);
    });
} outer_map;

Pickup updated libbtf and ebpf-samples.
Add test to check verification of anonymous map-in-map.

@dthaler
Copy link
Contributor

dthaler commented Jan 14, 2024

@Alan-Jowett please rebase, which should fix the test failures in CI/CD

@coveralls
Copy link

Coverage Status

coverage: 89.527% (+0.001%) from 89.526%
when pulling 4e817a6 on Alan-Jowett:update_libbtf
into 7311c35 on vbpf:main.

@elazarg elazarg merged commit cfc0fe8 into vbpf:main Jan 15, 2024
13 checks passed
@Alan-Jowett Alan-Jowett deleted the update_libbtf branch January 16, 2024 16:26
Alan-Jowett added a commit to Alan-Jowett/ebpf-verifier that referenced this pull request Oct 15, 2024
Signed-off-by: Alan Jowett <[email protected]>
Co-authored-by: Alan Jowett <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants