-
Notifications
You must be signed in to change notification settings - Fork 515
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
honggfuzz seems to pass files with no hard links #468
Comments
Also, I found some binaries parsing /dev/fd/* files resulting in faults and I would like to modify the source code on the temporary file location. If you have some ideas, offer me plz. |
Those files are essentially memfd objects, so they never exist on the FS. We could maybe try to use linkat2(AT_EMPTY_PATH) to link those files to some tmpfs. But, do you know the reason an application wants to read number of links to a file before process? Any specific examples? |
Looking at Lines 97 to 107 in 847492c
honggfuzz removed real files before pointing fuzz targets to them. It could be that I looked at the wrong part of the code though.
|
It's a shared mem created here - Line 496 in 847492c
But the effect is the same, it doesn't have presence on the FS. |
Well, if you change the 4th param of this call to true, you'll probably get what you want. If you'd like to surround it with some flag, I'll be happy to review w PR. |
Trying to figure out why some binaries didn't get past a certain point with
honggfuzz
but were fuzzed withAFL++
I noticed thathonggfuzz
passed/dev/fd/*
pointing to temporary files that had been removed before the binaries were run and it led to those files being rejected by the binaries.stat -L ___FILE___
shows that__FILE__
has no hard links:I wonder if it would be possible to remove those temporary files after binaries stop/crash?
The text was updated successfully, but these errors were encountered: