fuzzilli
fuzzilli copied to clipboard
Help needed with running fuzzilli
Hi, when I run fuzzilli according to the instructions here, I get:
$ swift run FuzzilliCli --profile=v8 --storagePath=/home/oren/Downloads/AAA --inspect=all ./input.js
[0/0] Build complete!
[REPRL] Script execution failed: Did not receive HELO message from child: Permission denied. Retrying in 1 second...
[REPRL] Script execution failed again: Did not receive HELO message from child: Permission denied. Giving up
[LibCoverage] Coverage bitmap size could not be determined, is the engine instrumentation working properly?
So I guess I'm missing something (?) any help would be very much appreciated, thanks !
Hi! You are missing /path/to/jsshell (from step 5). It should look something like this for fuzzing e.g. v8:
> swift run FuzzilliCli --profile=v8 --storagePath=/home/oren/Downloads/AAA --inspect=all /path/to/v8_checkout/out/fuzzbuild/d8
Hey I'm having the same issue with it for JSC.... I did pass in JSC (compiled with the patch) but have the exact same output. Any thoughts?
Running jsc with the --reprl flag outputs:
"write(REPRL_CWFD, helo, 4) == 4" failed
Which I assume is quite the issue lol.
I think running a "fuzzilli" build of JSC outside of Fuzzilli is not supported and is expected to crash (because certain file descriptors aren't setup properly). You can use this tool though to verify that REPRL support works properly in the target engine.
Thanks, I'll try that out!
Yeah so I tried it out, and it has verified that REPL support does not seem to be working as seen here. https://github.com/googleprojectzero/fuzzilli/blob/3f0d246a47f39e066ab560f3bb23e2fe47a25850/Sources/REPRLRun/main.swift#L98 I'm not sure where it's going wrong because iirc I applied the patch correctly, but maybe something has changed... ?
I'll close this issue since JSC support appears to be working fine for me. Feel free to reopen though if there are still problems.
$ swift run REPRLRun /tmp/jerryscript-8ba0d1b6ee/build/bin/jerry
Building for debugging...
Build complete! (0.20s)
Script execution failed, REPRL support does not appear to be working
I'm trying on JerryScript and get the same error, so maybe the support on JerryScript is still buggy?