Code Monkey home page Code Monkey logo

Comments (7)

elazarg avatar elazarg commented on September 18, 2024

The flag --assume-assert is designed to help in this exact case. Doesn't it?

from ebpf-verifier.

elazarg avatar elazarg commented on September 18, 2024

@Alan-Jowett did you experiment with that flag?

from ebpf-verifier.

Alan-Jowett avatar Alan-Jowett commented on September 18, 2024

Thanks for the feedback. What does this flag do? Should it be on by default when performing the analysis? I will try it out.

from ebpf-verifier.

elazarg avatar elazarg commented on September 18, 2024

The flag forces the invariants to match the assertions, even if they did not. So errors are not repeated and not compounded.

It used to be the default. I don't remember the reasoning behind disabling it, but in part it's because expected failures in tests stress the code less (since many invariants drop to bottom immediately).

Please let me know if the flag helps.

from ebpf-verifier.

Alan-Jowett avatar Alan-Jowett commented on September 18, 2024

That flag is awesome!

From 507 errors -> 1 error, and it's the actual relevant error that is causing the problem. This is even better than my approach. Is there any harm in making this the default in eBPF-for-Window's calls to the verifier?

I will go ahead and close this PR unless you see value in it.

from ebpf-verifier.

elazarg avatar elazarg commented on September 18, 2024

I think it should be on by default during debugging, and off by default in tests.

from ebpf-verifier.

Alan-Jowett avatar Alan-Jowett commented on September 18, 2024

Thanks!

from ebpf-verifier.

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.