Giter Club home page Giter Club logo

Comments (2)

dvyukov avatar dvyukov commented on June 3, 2024

Hi Jiri,

Thanks for the report.
How can we reproduce such kernel build with DW_TAG_partial_unit?
Do you know how to get them in a unit test? Some special compiler flags?
The DWARF excerpt suggests that DW_TAG_partial_unit contains the same subtags as DW_TAG_compile_unit, if so doing:

   if ent.Tag != dwarf.TagCompileUnit && ent.Tag != dwarf.TagPartialUnit { 

may work?

from syzkaller.

jirislaby avatar jirislaby commented on June 3, 2024

Hi,

I was using our (openSUSE) kernel rpm tooling to build a "syzkaller" kernel (easy for me to build, transfer and install). The tooling uses dwz to compress the dwarf info. I believe it's exactly the source of these partial units.

Even with the if you propose above, there is TAG_BaseType at the root. And I suppose many more.

Now I switched to classic make && make modules_install model and have no issue.

Apart from this issue, it was pretty cumbersome, because syzkaller does not support separate *.debug files with .debug_info sections (using .gnu_debuglink). So I had to eu-unstrip all interesting binaries to work this around.

Further, the paths were hell (like sources referenced in .debug_* sections as /usr/src/debug/...).

I am not sure anyone wants to invest time to fix all this.

from syzkaller.

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.