-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory Leak(?) problem with usermode harness #271
Comments
Hi @hyjun0407 and thanks for your bug report, I've never experienced a memory leak before, but i haven't used the harness extensively on Windows as well. Can you run QEMU monitored by valgrind, and see if you can locate the memory leak in the code ? |
Can U lemme know what is valgrind and how can i find memory leak with that? |
And... there's a lot of memory leaks in the first place, for example: |
I would appreciate it if you could delete the snippet from this part |
#243 (comment) |
@hyjun0407 I've removed your code snippet from my comment, but there is still code present in the multiple edits of your first message. |
Whatever the reason, we apologize for the hassle, and if you look at the first revision, you'll notice that it's not highlighted and is strangely indented. I didn't write the code on my own, I just posted code with my quick thoughts and a coworker asked me to remove it. Whatever the reason, if it came across as rude, I'd like to say it wasn't my intention. I'm so Sorry about it. |
@hyjun0407 I had a similar problem with the memory consumption of certain VMs. Could you upload the included header files of your code to test it or send it privately if you prefer? |
Hi, I looked at the example of the KAFL UserMode harness and used the code below to fuzz Defender. By the way, after some time, QEMU will be shut down due to low memory. (Actual Ram 64gb, Swap file 50gb) This is quite weird. As far as I know, fuzzer is returning qemu to the time it called LOCK Hypercall, and working again, so suppose it's not affected by functions such as memory free or freelibrary.(because it will be restore to when I called Lock Hypercall) And no payload will have more than 500mb of memory usage on the host(on my real compute). Why is this happening? Below is my code.
It's weird because I didn't get this memory related problem when I tested the Windows driver and just as an example. Am I doing something wrong?
my parameter was : kafl fuzz -workdir ./work --seed-dir ./seed --redqueen -p 24
dunno why but if i paste my code to this issue section directly, then indent make weird. So I paste it to pastebin
The text was updated successfully, but these errors were encountered: