Comments (12)
This happens as well when using radamsa as an external fuzzer.
The contents of wot.sh
are:
wot.sh
root@IPHONE9:/home/javier/Fuzzing/Sessions/hongg_resolv_conf# cat ../wot.sh
#!/bin/sh
echo "WOT" > $1
from honggfuzz.
With 810d2c9 I also implemented a fall-back mechanism for Linux.
If the glibc is safe-to-use (>=2.23), fork() is used. If not, clone() is used. clone() is not as good as safe-to-use fork(), but it's better than unsafe-fork().
In any case, using distro with glibc 2.24 or better is advised with honggfuzz.
from honggfuzz.
Hm... using "-f ." is tricky, as it will also pick up .honngfuzz files used for storing input files. Does it repeat with -f <some_external_file>
from honggfuzz.
Yes, still failed with.
./honggfuzz -f Testcases/resolvconf/ --covdir /tmp/testcoverage/ -s -n 1 -c /home/javier/Fuzzing/Sessions/wot.sh -- tee /tmp/tees
Errors again:
[2017-04-26T00:12:18+0100][E][32732] subproc_System():315 Command '/home/javier/Fuzzing/Sessions/wot.sh' terminated with signal: 11
[2017-04-26T00:12:18+0100][E][32732] fuzz_prepareFileExternally():146 Subprocess '/home/javier/Fuzzing/Sessions/wot.sh' returned abnormally
[2017-04-26T00:12:18+0100][F][32732] fuzz_fuzzLoop():537 fuzz_prepareFileExternally() failed
from honggfuzz.
Hm.. The command (wot.sh) files with SIGSEGV. It can be that it's actually our code after fork, but what do you have in wot.sh?
from honggfuzz.
I changed external file generation with some patches, could you try with the newest pull?
BTW: It's possible to use now both -f and -c. The external mutator will be used on files read from -f
from honggfuzz.
Still fails with freshly git pull'd and make'd build... I am starting to be suspicious that it can be something to do with my setup more than your (awesome) fuzzer.
The errors are still the same (exits with code SIGSEGV code 11).
Also when running with more than one thread it happens to have concurrency problems with the file [UNSET].
Shall I open a new issue for this or being that it is a problem of the same functionality (-c
) report it here as well?
from honggfuzz.
I have similar issue for versions > 0.7.
I'm calling radamsa
from within a custom bash script and it fails consistently. I'll provide more feedback once I gain access to my servers.
from honggfuzz.
I'm pretty certain it's this https://sourceware.org/bugzilla/show_bug.cgi?id=19431
Could you try running this with glibc-2.24 or newer (or glibc-2.23-ubuntu6 from Ubuntu) - Xenial should have it
from honggfuzz.
I can confirm it is not crashing anymore now! Thanks so much for the fix.
There is one little caveat now about cleanup: When stopping the fuzzer it will leave the following files:
-rw-r--r-- 1 javier javier 2316 Jun 3 10:04 honggfuzz.input.0.fuzz
-rw-r--r-- 1 javier javier 1320 Jun 3 10:04 honggfuzz.input.1.fuzz
-rw-r--r-- 1 javier javier 378 Jun 3 10:04 honggfuzz.input.2.fuzz
-rw-r--r-- 1 javier javier 31050 Jun 3 10:04 honggfuzz.input.3.fuzz
And since these files are there, the fuzzer won't run untill these are deleted.
Again, thanks for your time Robert, such an awesome job!
from honggfuzz.
Oh btw, for me it also works like a charm now. 👍
from honggfuzz.
And since these files are there, the fuzzer won't run untill these are deleted.
I've fixed the behavior in HEAD. The files should be generally deleted in fuzz_fuzzLoop() unless honggfuzz is killed with SIGKILL or so.
from honggfuzz.
Related Issues (20)
- Build Error on Linux with libbfd-2.38 HOT 2
- Some fuzz targets instrumented with honggfuzz seem to crash sometimes HOT 24
- honggfuzz seems to pass files with no hard links HOT 5
- issue with building honggfuzz on debian 10.7 -- error related to bfd? HOT 1
- Fuzzing targets that trigger and handle signals like SIGILL as part of normal operations HOT 1
- honggfuzz does not support file as input? HOT 2
- Current git doesn't compile HOT 2
- Does not support Apple Silicon HOT 10
- Undefined symbols for architecture arm64: "_OBJC_CLASS_$_CrashReport" HOT 6
- arch_prepareParentAfterFork():204 Couldn't attach to p id=XXXX
- _HF_DISASM_4_ARGS not reliable HOT 2
- Compile error on WSL2 Ubuntu HOT 12
- ubuntu18和ubuntu22都无法编译honggfuzz HOT 2
- Linker-related error: error adding symbols: file format not recognized
- Hongfuzz returns error when executed through ssh HOT 1
- How to restart fuzz without losing progress? HOT 1
- strlcat and strlcpy break Samba configure HOT 3
- Unable to compile due to bfd.c HOT 1
- Build errors on 32-bit architectures [-Werror=format=] HOT 2
- Coverage never reaches 100% HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from honggfuzz.