lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Fri, 11 Mar 2022 09:12:05 +0000
From:   Michael Graichen <michael.graichen@...mail.com>
To:     "netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: ARM: BPF: xdpdump unknown opcode 21

Hey all,

I try to teach myself how BPF, XDP and JIT are working.
So, while doing this I started 'xdpdump' to attach to a running program on a 32-bit ARM (i.MX7)

xdpdump wants to load /lib/bpf/xdpdump_bpf.o but ends up with the error:

libbpf: prog 'trace_on_entry': failed to attach: ERROR: strerror_r(-524)=22
ERROR: Can't attach XDP trace fentry function: Unknown error 524

and dmesg tells me

"unknown opcode 21"

I have checked the Kernel source code under arch/arm/net/bpf_jit_32.c
and figured out that opcode 0x21 should be BPF_LDX | BPF_W | BPF_ABS but it is not implemented.
Well, it was in Kernel 4.1 until 4.13.

Can someone help me / guide me to reimplement this opcode?

Best regards
Michael

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ