aya: regression introduced by d8d311738c974f3b6fad22006ab2b827d0925ce8: error parsing BPF object
Today I cargo update
my project and suddenly I wasn’t able to load my probes anymore, neither on x86_64 or ARMv7, in both cases I get a error parsing BPF object
. It is caused by this line introduced by d8d311738c974f3b6fad22006ab2b827d0925ce8 and specifically the data.len() > sizeof(bpf_map_def)
since in a lot of cases it’ll result in something like 280 > 28
, which is always true.
If I use aya from a commit before that one, everything works flawlessly.
An important note: on both platforms, all tests run correctly, meaning that loading an eBPF ELF is not really tested.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 18 (12 by maintainers)
Commits related to this issue
- aya: don't error out parsing padded map sections Fixes #28 — committed to aya-rs/aya by alessandrod 3 years ago
i’m not familiar with that part of the codebase (yet!), so in order to avoid other bugs i’d prefer if you could do it 😃 it’s bed time for me anyway