Invalid argument error while creating hard links on bash on ubuntu

165 views
Skip to first unread message

Hakan Kurtoğlu

unread,
Dec 22, 2017, 2:57:55 PM12/22/17
to afl-users
Hello everyone,

As part of a project, I'm trying fuzz a simple program getting inputs from stdin. I'm constantly getting this error:

afl-fuzz 1.96b by <lcamtuf@google.com>
[+] You have 4 CPU cores and 1 runnable tasks (utilization: 25%).
[+] Try parallel jobs - see /usr/share/doc/afl/parallel_fuzzing.txt.
[*] Setting up output directories...
[+] Output directory exists but deemed OK to reuse.
[*] Deleting old session data...
[+] Output dir cleanup successful.
[*] Scanning 'in/'...
[+] No auto-generated dictionary tokens to reuse.
[*] Creating hard links for all input files...

[-]  SYSTEM ERROR : Unable to create 'out/queue/id:000000,orig:in'
   
Stop location : link_or_copy(), afl-fuzz.c:2733
       OS message
: Invalid argument


I couldn't find any solution on what is causing the error. I'm trying to run it on Linux subsystem on my Windows 10.
I would appreciate any ideas.

Hakan.

Michal Zalewski

unread,
Dec 22, 2017, 3:29:28 PM12/22/17
to afl-users
> I couldn't find any solution on what is causing the error. I'm trying to run
> it on Linux subsystem on my Windows 10.

This environment is not supported and will probably not work; but you
might want to try editing config.h and uncommenting this line:

// #define SIMPLE_FILES

/mz

Jakub Wilk

unread,
Dec 22, 2017, 3:48:58 PM12/22/17
to afl-...@googlegroups.com
* Hakan Kurtoğlu <havo...@gmail.com>, 2017-12-22, 11:57:
>> [-] SYSTEM ERROR : Unable to create 'out/queue/id:000000,orig:in'
>> Stop location : link_or_copy(), afl-fuzz.c:2733
>> OS message : Invalid argument

This is most likely because Windows doesn't like colons in filenames.
https://github.com/Microsoft/WSL/issues/1514 suggests that putting the
output directory somewhere in /home may help.

--
Jakub Wilk

Hakan Kurtoğlu

unread,
Dec 23, 2017, 6:18:23 AM12/23/17
to afl-users
I've changed my output directory to "/home/out" and now works like a charm. Thanks a lot!
Reply all
Reply to author
Forward
0 new messages