intel / kernel-fuzzer-for-xen-project

Kernel Fuzzer for Xen Project (KF/x) - Hypervisor-based fuzzing using Xen VM forking, VMI & AFL
MIT License
466 stars 79 forks source link

Set libxdc IP callback even if not in debug mode #61

Closed v-p-b closed 2 years ago

v-p-b commented 2 years ago

The current libxdc submodule version doesn't initialize the ip_callback member of the decoder. This is a workaround, that sets the callback pointer to NULL if we're not in debug mode or collecting coverage, so libxdc can recognize it's invalid before call.

I didn't report this to libxdc because their current version seems to have refactored this code completely.

This seems to fix #60 .

tklengyel commented 2 years ago

Can you try https://github.com/tklengyel/libxdc/tree/fixes and see if that resolves your issue?

v-p-b commented 2 years ago

Yes, it works as expected, it didn't crash after multiple tries.

tklengyel commented 2 years ago

Fix pushed