On Wed, Sep 29, 2021 at 10:39 AM Matteo Croce
[off-list ref] wrote:
quoted
quoted
I'll take a look. Could you provide the full .c file?
Sure. I put everything in this repo:
https://gist.github.com/teknoraver/2855e0f8770d1363b57d683fa32bccc3
This gist is not a reproducer. It doesn't have a single CO-RE relo.
But I've hacked it with dev->ifindex like in your email above
and managed to repro.
My error is different though:
[ 1127.634633] libbpf: prog 'prog_name': relo #0: trying to relocate
unrecognized insn #0, code:0x85, src:0x0, dst:0x0, off:0x0, imm:0x7
[ 1127.636003] libbpf: prog 'prog_name': relo #0: failed to patch insn #0: -22
But there is a bug. Debugging...