20 Commits

Author SHA1 Message Date
fead70c87b clear ptimers before each run 2025-02-26 10:55:34 +01:00
ff8c538b93 missing header 2024-12-18 16:38:59 +01:00
21370f3356 refactor hooks 2024-12-18 16:36:59 +01:00
9dfe6e5c51 re-introduce native breakpoints 2024-12-03 11:17:45 +01:00
68565a638b move instrumentation to hook file 2024-12-03 11:16:52 +01:00
Romain Malmain
b01a0bc334
Fix helper function calls & support for new x86 decoder (#92)
* fix helper function calls

* cmp hooks: support for new x86 decoder
2024-10-31 16:31:54 +01:00
Romain Malmain
0832bb4892
fix libafl side wih new version 2024-10-25 22:41:53 +02:00
Romain Malmain
d663793952
Early return from libafl edge generation if no exec hooks (#85)
* bug with edges in systemmode, not fixed yet

* timeout request only for systemmode
2024-09-20 13:42:52 +02:00
Romain Malmain
f58a6859f3
extern some variables + cleanup (#86) 2024-09-12 19:49:02 +02:00
Romain Malmain
ee43af7f80
Run thread hooks for KVM mode (#84)
* Run thread hooks for KVM mode

* Unify qemu init function symbol for systemmode and usermode

* get tid from caller instead of callee
2024-08-21 15:36:05 +02:00
Romain Malmain
7f468ebba6
Second round of cleanups (#83)
* get rid of as many extern / function definition in QEMU codebase.

* mostly moved cpu / gdb related code.

* move qemu snapshot code in dedicated files.
2024-08-14 10:28:47 +02:00
Romain Malmain
86d38fbfa7
Add pre/post cpu_run hooks + Refactoring (#82)
* Add cpu_run pre/post exec hooks, to hook the cpu just before / after it runs target code.
* Refactor hooks to separate them in different files
* Remove most extern variables
* Reduce the amount of extra code in QEMU
* Add clang-format script
2024-08-13 16:56:00 +02:00
Romain Malmain
11b27cc216
Refactor and fix edge-related code generation (#81)
* refactor and fix edge-related code generation.

- fix sigsetjmp bug
- fix tcg buffer overflow bug due to wrong icount report.
- closer to original QEMU implementation to improve maintainability.
- use the right TB icount / size semantic
- report problems related errors during generation
2024-08-06 09:49:51 +02:00
Romain Malmain
712661c820
Rename instruction hooks (#75)
* rename instruction hooks
2024-06-03 10:23:57 +02:00
Romain Malmain
9d2197b73b
Better typed syx snapshot check result (#74)
* better typed snapshot check

* edit compile_commands.json to use the real compiler
2024-05-22 18:49:59 +02:00
Romain Malmain
9f3e2399ee
QEMU host page size getter (#73)
* QEMU host page size getter
* Rename to sync_exit
2024-05-06 18:07:38 +02:00
cube0x8
43302cdc39 Fixed qemu usermode snapshot (#66)
* Fixed qemu usermode snapshot

---------

Co-authored-by: Romain Malmain <romain.malmain@pm.me>
2024-05-01 16:15:52 +02:00
Romain Malmain
bf82921212
Add missing LibAFL RW callbacks (#65)
* Add other rw missing callbacks

* Fix mapping iterator

* LibAFL guard
2024-04-24 10:57:25 +02:00
Romain Malmain
2edf778b1c
Add utils (#62)
* add utils file
* user only guard.
2024-04-17 18:08:38 +02:00
Romain Malmain
50b0c90e0a
Moving libafl related files in dedicating folders (#60)
* Restructuration of libafl dirs. Formatting + export of maps struct and functions.

* Fix wrong header path.

* Fix misc path
2024-04-11 16:45:36 +02:00