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

[BUG] Error log from libbpf when attach tc BPF repeatedly #245

Open
CH3CHOHCH3 opened this issue May 19, 2023 · 3 comments
Open

[BUG] Error log from libbpf when attach tc BPF repeatedly #245

CH3CHOHCH3 opened this issue May 19, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@CH3CHOHCH3
Copy link
Member

Describe the bug
ecli output of the first attach :

# ecli run examples/bpftools/tc/package.json
INFO [faerie::elf] strtab: 0x80a symtab 0x848 relocs 0x890 sh_offset 0x890
INFO [bpf_loader_lib::skeleton::poller] Running ebpf program...

Press ctrl-c and rerun ecli, the output turns into:

# ecli run examples/bpftools/tc/package.json
INFO [faerie::elf] strtab: 0x80a symtab 0x848 relocs 0x890 sh_offset 0x890
libbpf: Kernel error message: Exclusivity flag on, cannot modify
INFO [bpf_loader_lib::skeleton::poller] Running ebpf program...

This message is harmless according to https://www.spinics.net/lists/bpf/msg44842.html but maybe we can use libbpf_set_print to filter logs from libbpf like https://elixir.bootlin.com/linux/v5.10.53/source/tools/testing/selftests/bpf/test_progs.c#L667.

@CH3CHOHCH3 CH3CHOHCH3 added the bug Something isn't working label May 19, 2023
@github-actions
Copy link

Thanks for using eunomia-bpf! We appreciate your help and we’ll take care of this as soon as possible.

@yunwei37
Copy link
Member

yunwei37 commented May 20, 2023

This maybe due to failed to detach tc hooks gracefully, see the code comments in libbpf-bootstrap

https://github.com/libbpf/libbpf-bootstrap#tc

https://github.com/libbpf/libbpf-bootstrap/blob/859c2339dd5cb6c09a1819c52f73cd63976fa9bf/examples/c/tc.c#L38

@Officeyutong
Copy link
Contributor

Has this issue been done now?

@Officeyutong Officeyutong self-assigned this Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants