jxuanli
b49b95487e
Scanning page tables but on steroids ( #3394 )
...
* from stash
* added pagetable scan func
* abstracted to a class
* finished the pagescan func
* pagetable scan aarch64
* added if
* refactored kernel/vmmap
* Squashed commit of the following:
commit cf4a658a70
Author: jxuanli <junxua01@student.ubc.ca>
Date: Wed Nov 5 13:06:47 2025 -0800
addressed comments
commit 32f46afb92
Author: jxuanli <junxua01@student.ubc.ca>
Date: Wed Nov 5 13:03:45 2025 -0800
handle none value
commit b958d62055
Author: jxuanli <junxua01@student.ubc.ca>
Date: Wed Nov 5 12:41:56 2025 -0800
addressed comments
commit ac34ad5d37
Author: jxuanli <junxua01@student.ubc.ca>
Date: Wed Nov 5 11:58:53 2025 -0800
further optimizations
commit 6fde305fbc
Author: jxuanli <junxua01@student.ubc.ca>
Date: Wed Nov 5 00:57:07 2025 -0800
fixing tests
commit 4077f7a7f3
Author: jxuanli <junxua01@student.ubc.ca>
Date: Wed Nov 5 00:39:46 2025 -0800
restore
commit 1e62c62c42
Merge: 696dc6d0 30299571
Author: jxuanli <junxua01@student.ubc.ca>
Date: Wed Nov 5 00:38:57 2025 -0800
Merge branch 'dev' of https://github.com/pwndbg/pwndbg into vmmap-opt
commit 696dc6d0c3
Author: jxuanli <junxua01@student.ubc.ca>
Date: Wed Nov 5 00:27:09 2025 -0800
fix x64 vmmap perf issue
* using physmem mode
* Squashed commit of the following:
commit 3d7bd9b784
Author: jxuanli <junxua01@student.ubc.ca>
Date: Thu Nov 6 12:29:33 2025 -0800
handle `kbase == None`
commit 17979d4c1a
Author: jxuanli <65455765+jxuanli@users.noreply.github.com>
Date: Thu Nov 6 07:16:43 2025 -0800
Tracing kernel memory management (#3379 )
* added kmemtrace class
* added ret trace handler
* added lldb ret trace handler
* making the output more colourful
* added the actual command
* storing output
* temp suspend ctx output
* tracing with mutex
* add option to only trace relevant allocations and frees
* cleaned up
* renaming
* docs
* format
* refactored + addressing comments
commit 03dfc4d929
Author: jxuanli <65455765+jxuanli@users.noreply.github.com>
Date: Thu Nov 6 07:15:31 2025 -0800
Fixing `kernel_vmmap` perf issue when symbol file is not added (#3390 )
* fix x64 vmmap perf issue
* restore
* fixing tests
* further optimizations
* addressed comments
* handle none value
* addressed comments
commit 0488970cfd
Author: OBarronCS <55004530+OBarronCS@users.noreply.github.com>
Date: Thu Nov 6 10:14:01 2025 -0500
Update one-liner install (#3389 )
* opt
* more optimizations
* docs
* comments
* revert back
* opt
* allow debugging the vmmap of different tasks
* docs and comments
* catching pagetable scan errors
* checks for kernelland pc
* stuff
* changed access
* defaulting riscv handling
* fixing kconfig
* fixing disass
* fixing pagetable scan x kcurrent --set
* del check
* proper cache invalidation
* moved pagewalk def
* caching
* updated test
* cleaning up
* cleaning up
* improving nearpc
* making linter complain less
* cleaning up
* cleaning up
* cleaning up
* cleaning up
2 days ago
OBarronCS
959f5fce4e
Remove regs getattr + setattr ( #3471 )
...
* Remove regs __getattr__, convert uses to read_reg(). Make .pc and .sp special properties to fetch current program counter and stack pointer
* Remove register lookup handler helper function, fixup docs
* Update comment
* Remove all uses of setattr to write to reg, replace with .write_reg()
* Fix after rebase
* Add setter property to .pc and .sp to avoid bugs if writing directly to 'pc' or 'sp'
* LLDB reg_write fix
* Fix partial writes to sp/pc in LLDB invalidating frame
* Fix
3 days ago
patryk4815
7c83a2acd4
Revert "Remove pwndbg.aglib.regs.__getattr__, convert uses to pwndbg.aglib.re…"
...
This reverts commit 4ff9f010f6 .
2 weeks ago
OBarronCS
4ff9f010f6
Remove pwndbg.aglib.regs.__getattr__, convert uses to pwndbg.aglib.regs.read_reg ( #3441 )
...
* Remove regs __getattr__, convert uses to read_reg(). Make .pc and .sp special properties to fetch current program counter and stack pointer
* Remove register lookup handler helper function, fixup docs
* Update comment
---------
Co-authored-by: Disconnect3d <dominik.b.czarnota@gmail.com>
2 weeks ago
jxuanli
217590668b
Partial support for simultaneously debugging different kernel tasks ( #3370 )
...
* refactor
* refactored
* added files
* exported kfile
* kcurrent
* docs
* pagewalk
* cleaning up
* config detection
* tests
* improved arch symbol handlign
* cleaning up
* docs
* fix typo
2 months ago
jxuanli
7c87ab0f19
improving the computation of page struct size ( #3346 )
2 months ago
patryk4815
995f5430d9
disable msr tests ( #3338 )
2 months ago
jxuanli
075580d59a
Added `klookup` option for applying symbols ( #3318 )
...
* klookup
* using lief to create a blank elf and add symbols to it
* added lief in dependencies
* doc
* fixed add_symbol_file
* changes to tuple
* fix tests
* fix compiler warnings
* fix div by 0 issue
* removed redundant bracket
2 months ago
jxuanli
c2c31fc01e
Handling `kmem_cache` recovery edge case + improving SLUB corrupted list handling ( #3311 )
...
* gracefully handle the case when `char_ptr` points to a string that contains none utf-8 chars
* handling `struct kmem_cache` recovery edge case
* improved slub warning message handling
* added emphasize
* slab free obj addr bound checking
* refactored a bit
* linting
* added head of list error handling
* updated error message
* cleaning up
* cleaning up
3 months ago
jxuanli
2ea5e383bf
avoid default values for the options of `buddydump` ( #3313 )
...
* avoiding using default values for the options of `buddydump`
* updated doc
* updated test
3 months ago
jxuanli
b6c62f6f2a
Fixing computation of Aarch64 page markers and physical offset handling ( #3291 )
...
* Fixing aarch64 phys offset handling
* fixing aarch64 vmemmap handling
* fixing aarch64 pci handling
* improved comments
* improved the computations of arm address markers
* improved tests
* improved marker checking in vmmap
* fixes based on comments
3 months ago
jxuanli
41c8bc734b
Improving `kmod` ( #3254 )
...
* -
* improving kmod
* bug fix
* added helpers for finding offsets
* improved helpers for determining offsets
* improving kmod helpers
* refactoring + handling kallsyms
* recovering from stash
* doc + test
* fixes based on coments
* improvements
4 months ago
Deepanshu Sharma
870825cd5f
changing PWNDBG_DISABLE_COLORS to NO_COLOR #3191 ( #3239 )
4 months ago
Allen Chang
26db4533aa
Add command to display information about kernel syscalls ( #3103 )
...
* merge conflicts
* Fix lint errors
* ksyscalls
* Update pwndbg/commands/ksyscalls.py
* Requested changes
* docs
* merge fix
* Minor change
* Minor change in test
* Check sys_call_table symbol
---------
Co-authored-by: Disconnect3d <dominik.b.czarnota@gmail.com>
4 months ago
jxuanli
9aabc0b83d
Supporting kernel debugging in the absence of provided type information ( #3116 )
...
* recoverying from rm -rf
* refactored kconfig
* collapsing merge history
* cleaning up
* refactored out buddydump and slab type helpers
* improving bud and slub
* improved arch specific symbol handling
* improved handling of vmemmap and vmalloc bases when symbols do not exist
* misc
* doc
* properly naming kernel symbol files
* try except for cases where ptrace_scope is enabled
* fixing test
5 months ago
patryk4815
7e7c47f209
fix relative imports in tests ( #3163 )
...
* fix relative imports
5 months ago
patryk4815
f7f8b31f4f
add relative imports into tests ( #3161 )
...
* add relative imports into tests
* fix lint
* fix run
* fix imports
* fix lint
* fix mocks
* fix unit_tests
* fix collect
* fix execute with nix
* fix qemu-system
5 months ago