GithubHelp home page GithubHelp logo

Comments (4)

ajor avatar ajor commented on August 16, 2024

Thanks for the report @piso77. I can't reproduce it on my kernel, so would you be able to share the output of your verifier logs to help us debug it please?

You should (hopefully) be able to get it with this command:

# bpftrace -e 'kfunc:filp_close { $f = path(args.filp->f_path); if (strcontains($f, "tmp")) { printf("OK\n"); exit(); } }' -d verifier

from bpftrace.

piso77 avatar piso77 commented on August 16, 2024
$ sudo ./src/bpftrace -v -e 'kfunc:filp_close { $f = path(args.filp->f_path); if (strcontains($f, "tmp")) { printf("OK\n"); exit(); } }' -d verifier
AST node count: 19
Attaching 1 probe...
BPF verifier log for kfunc_vmlinux_filp_close_1:
--------------------------------------
func#0 @0
Tracing programs must provide btf_id
verification time 37 usec
stack depth 0
processed 0 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0

ERROR: Error loading BPF program for kfunc_vmlinux_filp_close_1.
Kernel error log: 
func#0 @0
Tracing programs must provide btf_id
verification time 37 usec
stack depth 0
processed 0 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0


ERROR: Loading BPF object(s) failed.

from bpftrace.

piso77 avatar piso77 commented on August 16, 2024

config-6.10.0-rc7.txt

Here is the .config i've used to build the above kernel.

from bpftrace.

viktormalik avatar viktormalik commented on August 16, 2024

@piso77 based on the log, it looks to me that you don't have a sufficiently new libbpf installed. Since #3285, we require libbpf which includes libbpf/libbpf@dd589c3.

from bpftrace.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.