Coder Social home page Coder Social logo

Handle EPERM everywhere about aya HOT 3 OPEN

addisoncrump avatar addisoncrump commented on June 2, 2024
Handle EPERM everywhere

from aya.

Comments (3)

alessandrod avatar alessandrod commented on June 2, 2024

For context

[2023-11-29T09:31:41Z DEBUG aya::bpf] BPF Feature Detection: Features {
        bpf_name: false,
        bpf_probe_read_kernel: false,
        bpf_perf_link: false,
        bpf_global_data: false,
        bpf_cookie: false,
        cpumap_prog_id: false,
        devmap_prog_id: false,
        btf: None,
    }
[2023-11-29T09:31:41Z DEBUG aya_obj::relocation] failed relocating map by section index 6

The relocation errors happens because the target map - in this case .rodata - is skipped during load as bpf_global_data is set to false. bpf_global_data is set to false like all the other features because all the probes failed with EPERM.

from aya.

dave-tucker avatar dave-tucker commented on June 2, 2024

Can we be 100% sure that we won't get EPERM from syscalls under any other circumstance than failing the capabilities check?

from aya.

alessandrod avatar alessandrod commented on June 2, 2024

Can we be 100% sure that we won't get EPERM from syscalls under any other circumstance than failing the capabilities check?

Oh no we definitely will. The point is that we need to handle those cases and output meaningful error messages. From the error you get right now if you run without sudo it gives the impression that there is some kind of relocation bug 😅

from aya.

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.