Open
Description
Describe the bug
在编译 23-http 代码时,编译可以成功,但运行时遇到了错误。具体的错误信息如下:
if (bpf_strncmp(line_buffer, 3, "GET") != 0 &&
90: (bf) r1 = r9
91: (b7) r2 = 3
92: (18) r3 = 0xffffa0c09916e310
94: (85) call unknown#182
invalid func unknown#182
processed 93 insns (limit 1000000) max_states_per_insn 0 total_states 6 peak_states 6 mark_read 3
-- END PROG LOAD LOG --
libbpf: prog 'socket_handler': failed to load: -22
libbpf: failed to load object 'sockfilter_bpf'
libbpf: failed to load BPF skeleton 'sockfilter_bpf': -22
Failed to open and load BPF skeleton
To Reproduce
Steps to reproduce the behavior:
运行时报错:./sockfilter
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: [e.g. Windows]
- Version [e.g. 10]
- Ubuntu 22.04
- Linux 5.15.0-94-generic
Additional context
Add any other context about the problem here.