https://bugs.kde.org/show_bug.cgi?id=492050
Bug ID: 492050 Summary: Valgrind does not understand some eBPF commands passed into the bpf syscalls Classification: Developer tools Product: valgrind Version: 3.23.0 Platform: Fedora RPMs OS: Linux Status: REPORTED Severity: minor Priority: NOR Component: general Assignee: jsew...@acm.org Reporter: wco...@redhat.com Target Milestone: --- SUMMARY When attempting to track down the root cause of a valgrind complaint about unitialized fields in some PCP code I noticed that valgrind would print out messages in the following in the output: --1794549-- WARNING: unhandled eBPF command 28 --1794549-- WARNING: unhandled eBPF command 35 The command 28 and 35 map to BPF_LINK_CREATE and BPF_PROG_BIND_MAP, respectively. The handling of things the bpf syscall handles is incomplete. STEPS TO REPRODUCE on Fedora 40 as root: 1. dnf install pcp-pmda-bpf valgrind 2. touch /var/lib/pcp/pmdas/bpf/.NeedInstall 3. systemctl restart pmcd 4. valgrind pminfo -L -K clear -K add,157,/var/lib/pcp/pmdas/bpf/pmda_bpf,bpf_init -dmtT bpf.disk bpf.runq OBSERVED RESULT The output has a number of messages about "unhandled eBPF command ..." EXPECTED RESULT No messages about unhandled eBPF commands in the output SOFTWARE/OS VERSIONS Linux/KDE Plasma: Fedora 40 pcp-pmda-bpf-6.2.2-3.fc39.x86_64 valgrind-3.22.0-4.fc39.x86_64 ADDITIONAL INFORMATION The last command in the list that valgrind understands is BPF_MAP_FREEZE. There looks to be a number of additional BPF commands after BPF_MAP_FREEZE listed on the 6.11 kernel: https://elixir.bootlin.com/linux/v6.11-rc4/source/include/uapi/linux/bpf.h#L922 -- You are receiving this mail because: You are watching all bug changes.