Comments (4)
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.
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.
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.
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)
- Handle symlinks in path_lookup()
- Packit is failing because COPYING doesn't exist anymore HOT 5
- Quick Start error,KeyError: 'init_task' HOT 1
- drgn failed to read crash dump on ppc64 HOT 15
- Exception: (null): .debug_loc+0x19e829: unknown DWARF expression opcode 0xf3 HOT 9
- libdrgn does not compile on ARM32 HOT 2
- Support Maple tree data structure
- vmtest.vm: failing tests when run locally HOT 2
- Add framework for running higher-level commands in interactive mode HOT 13
- contrib/tcp_sock.py fails for older kernels (<= `v5.18`)
- Need suggestion: do we have APIs to get a member of a struct object for dump and live kernel inside libdrgn HOT 2
- FaultError in stack_trace() HOT 3
- Segmentation fault when drgn finishes with libkdumpfile HOT 7
- Support reading of `vmlinux` in the same folder as `--core` file
- opening of a --vmcore file of a different architecture
- Add Architecture Support to main part of the manual HOT 1
- Help: could not find loaded kernel modules
- Issue finding string literal in readonly memory for userland core HOT 2
- drgn failed to debug vmcore with lzo format HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drgn.