Giter VIP home page Giter VIP logo

Comments (4)

brenns10 avatar brenns10 commented on June 7, 2024 1

As an FYI, looks like there will be an upstream fix for this!
https://lore.kernel.org/linux-mm/[email protected]/T/#u

from drgn.

osandov avatar osandov commented on June 7, 2024

This is on the live kernel, right? My wild guess is that this is a bug in /proc/kcore, because drgn isn't super fancy about reading memory. Do you get back the correct results if you read with access_remote_vm(prog["init_mm"].address_of_(), address, size) instead of prog.read()? That will translate the virtual address to a physical address from the kernel page table and then read based on the physical address. If that works, it's very likely a bug in /proc/kcore.

from drgn.

brenns10 avatar brenns10 commented on June 7, 2024

Yeah - live kernel. I tracked it through the /proc/kcore reads with some printf debugging and was coming to that conclusion myself.

The access_remote_vm() worked! So I guess it's time to look into the kernel for the bug.

I'm rather impressed that crash is doing the virt to phys translation manually given that /proc/kcore seems to have an ELF segment for this region of memory. Maybe the original /dev/mem did not, and crash was architected around that?

from drgn.

brenns10 avatar brenns10 commented on June 7, 2024

The issue must be in vread() not supporting memory which comes from vm_map_ram(), if the allocation is small it comes from vb_alloc().

from drgn.

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.