Closed bjloed closed 10 months ago
i also had stucked in this problem. i think there is some problem in Qemu PT.
🤯🤯
Hi @bjloed
When opening the resulting file, it should contain the default log file data.
I'm not familiar with Windows logging functions. Do you expected a certain header in the log file, after CreateLogFile()
has been called ?
Otherwise your makeLog()
simply creates an empty file here.
Assuming there should be a header, have you tried to force flush the disk I/O in the kAFL harness ? It's possible that the file content remains in a cache buffer, waiting to be flushed at another occasion, and the snapshot is reset too quickly.
@Wenzel Hi ^^ Can I set the time to wait to flush? In other words, can I change the speed at which I set up the snapshot? Thank you.
Hi,
Not sure I understand what you need here, but if you are looking for a setting to increase the number of persistent iterations between snapshot restore, you can use -R
parameter:
https://intellabs.github.io/kAFL/reference/hypercall_api.html#fuzzing-without-snapshot-restore
@Wenzel Adjusting the number of snapshots resulted in the same results. From what we tested, File I/O and Socket I/O did not seem to work normally when purging. Do you think it's equally a matter of time? How can I solve this problem? Thank you.
@bjloed Hello, I encountered the same issue. And how did you solve the issue? thank you so much.
The provided code is an example of creating a log file using WinAPI:
However, when you execute kafl-fuzz, the file is saved with empty contents when the CreateLogFile() function is called within the makeLog() function. In other words, it behaves abnormally.
Why is this happening? Does file I/O pose any issues during fuzzing? Thanks.