Disconnect3d
9e9f328ccc
Update code to Python >= 3.8 ( #1840 )
...
* isort: import __future__ annotations & pyupgrade to 3.8
* dev-requirements.txt: update vermin to 1.5.2 & dont use --quiet
* pyupgrade 3.8 fixes
* fixes
* update vermin to 3.8-
2 years ago
peace-maker
a6cc19aa5c
Improve RISCV support ( #1770 )
...
* Improve RISCV support
This is a resurrection of #829
Co-authored-by: Tobias Faller <faller@endiio.com>
* Silence bogus vermin warning
* Fix relative backwards jump calculations
The target address wouldn't be truncated to the pointer size.
* Add basic qemu-user test
* Run qemu-user tests in CI
* Make shfmt happy
* Fix pwntools < 4.11.0 support
* Support RISCV32 for pwntools < 4.11.0 as well
---------
Co-authored-by: Tobias Faller <faller@endiio.com>
2 years ago
Gulshan Singh
37376c8ac7
Covert printf format strings to f-strings ( #1735 )
3 years ago
Gulshan Singh
b5a1219e2f
Update QEMU image download URL ( #1731 )
3 years ago
theguy147
e830dcb500
Support slab command for all available cpus ( #1725 )
...
* feat: support slab command for all available cpus
* fix: remove todo comment
---------
Co-authored-by: Disconnect3d <dominik.b.czarnota@gmail.com>
3 years ago
theguy147
c40f143edd
address translation only works with debug symbols ( #1723 )
...
* test: skip address translation test when no debug symbols
* fix: add missing decorators to archops functions
3 years ago
theguy147
f9731bb04b
refactor: move slab business logic to gdblib ( #1711 )
...
* refactor: move slab business logic to gdblib
* refactor: minor improvements
* refactor: move slab contains logic to backend
* feat: add error catching wrapper for parse_and_eval
* fix: repair test after refactor
* tests: test slab info more extensively
* fix: correctly detect non-existant slabs
* fix: respect if slab objects have surrounding metadata
* fix: correctly detect non-existant slabs (2)
* style: update kconfig lookup
3 years ago
theguy147
608fa83b04
Add `slab contains` command ( #1707 )
...
* feat: add slab contains command
* tests: add slab contains test
* fix: repair faulty 5lvl paging detection
* fix: remove typo
* fix: dereference compound_head
* fix: repair address translation for arm64
* fix: ensure kernel initialization has progressed for tests
* fix: adjust address range for valid slab objects
* tests: automatically find slab objects for tests
* fix: repair off-by-one error in address range
3 years ago
theguy147
6ffc3de08f
Repair slab info command ( #1699 )
...
* fix: repair slab info command
* CI: remove unnecessary assertion
3 years ago
theguy147
6ff05bbcc8
Test more kernels ( #1684 )
3 years ago
theguy147
a9ec60c727
Fix and Improvements for ArchOps ( #1676 )
...
* fix: remove minor bugs and complete address translation
* feat: add 5lvl paging
* feat: add address translation tests
* fix: remove unnecessary comments
* fix: add references for magic values
* fix: add X86_FEATURE_LA57 reference
* fix: move x86 specific functions to x86_64Ops
* fix: extend tests and remove faulty code
* fix: only test address translation for lowmem
* fix: adjust arch_ops test to pytest
* fix: add reference for memory models in linux
* fix: do not memoize staticmethods
3 years ago
theguy147
e1dad2e8c7
feat: make qemu-system tests more flexible ( #1682 )
3 years ago
theguy147
91c72a001e
feat: use pytest for qemu-system tests ( #1679 )
...
* feat: use pytest for qemu-system tests
* CI: update qemu workflow
* feat: make tests aware of ARCH and KERNEL_TYPE
3 years ago
theguy147
d80e55c4e3
add `krelease()` function ( #1673 )
3 years ago
Gulshan Singh
b9c9f12efc
Add qemu tests to CI
3 years ago
Gulshan Singh
52a479211c
Update QEMU test scripts
3 years ago
Gulshan Singh
0757878b80
Update qemu image download script
3 years ago
Gulshan Singh
d4562ea462
Update qemu test scripts and images ( #1529 )
3 years ago
Gulshan Singh
3b482a6485
Add basic QEMU system testing scripts ( #1428 )
3 years ago
Gulshan Singh
d52011877b
Add simple qemu-aarch64 test ( #1423 )
3 years ago