[Bug target/112654] bpf: bpf program load failure
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112654 Brian Witte changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #5 from Brian Witte --- My issue is now fixed. As Jose said, the core issue was my kernel (Debian 6.5.10-1) needing the -mcpu=v3 flag in order to properly compile for the bpf target. Closing issue. Thanks for the help!
[Bug target/112654] bpf: bpf program load failure
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112654 --- Comment #4 from Jose E. Marchesi --- I think the problem here may be that OP's kernel doesn't understand BPF V4 instructions, and the program above has been compiled with them (movs). Try to use -mcpu=v3?
[Bug target/112654] bpf: bpf program load failure
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112654 --- Comment #3 from Jose E. Marchesi --- The instruction failing validation seems to be: e0: bf a4 00 00 00 00 00 00 mov %r4,%r10 Which is a regular MOV instruction with zeroes in imm32 and offset16. It has SRC=X. So I don't understand why the verifier is rejecting that instruction...
[Bug target/112654] bpf: bpf program load failure
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112654 --- Comment #2 from Brian Witte --- $ ./pretty_uname.sh System Information -- Kernel Name: Linux Node Name: debian Kernel Release:6.5.0-4-amd64 Kernel Version:#1 SMP PREEMPT_DYNAMIC Debian 6.5.10-1 (2023-11-03) Machine: x86_64 Operating System: GNU/Linux Distribution: Debian GNU/Linux
[Bug target/112654] bpf: bpf program load failure
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112654 --- Comment #1 from Brian Witte --- Created attachment 56658 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56658=edit this is a *.tmp.s file