[Bug target/112654] bpf: bpf program load failure

2023-11-21 Thread brianwitte at mailfence dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112654 Brian Witte changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug target/112654] bpf: bpf program load failure

2023-11-21 Thread jemarch at gcc dot gnu.org via Gcc-bugs
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

2023-11-21 Thread jemarch at gcc dot gnu.org via Gcc-bugs
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 unde

[Bug target/112654] bpf: bpf program load failure

2023-11-21 Thread brianwitte at mailfence dot com via Gcc-bugs
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

[Bug target/112654] bpf: bpf program load failure

2023-11-21 Thread brianwitte at mailfence dot com via Gcc-bugs
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&action=edit this is a *.tmp.s file