invalid zero-sized read ? #1143
Unanswered
chenhengqi
asked this question in
Q&A
Replies: 2 comments 6 replies
-
Interesting! Can you extract the full verifier log for both libbpf and c/ebpf? |
Beta Was this translation helpful? Give feedback.
5 replies
-
I didn't do anything special, just: var obj sockopsObjects
err := loadSockopsObjects(&obj, &ebpf.CollectionOptions{
Programs: ebpf.ProgramOptions{
LogLevel: ebpf.LogLevelInstruction | ebpf.LogLevelBranch | ebpf.LogLevelStats,
LogSize: 100_000_000,
},
}) In Lines 306 to 314 in 9feeb26 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The following BPF program causes a verifier error if loaded by cilium/ebpf:
like:
But it's OK with bpftool/libbpf. The BPF instructions loaded is exactly the same.
The only difference I found is the BTF loaded is manipulated by cilium/ebpf (i.e. not directly from ELF object),
it might be related, not sure.
Beta Was this translation helpful? Give feedback.
All reactions