Skip to content

Memory limit causing hang? #2

Description

@ackerleytng

I was hoping to try https://www.fastly.com/blog/how-fuzz-server-american-fuzzy-lop without having to modify the code.

With the following memory setting (512mb),

/home/user/afl/afl-fuzz -m 512 -i /home/user/testcases -o /home/user/outputs -D 1 -t 200+ -N udp://localhost:53 /home/user/knot-2.1.1/src/knotd -c /home/user/knot.conf

But on inspection with strace, it seems like there isn't enough memory

3398  mmap(NULL, 524288000, PROT_READ, MAP_SHARED, 5, 0) = -1 ENOMEM (Cannot allocate memory)
...
3398  write(2, "2016-04-14T08:35:43 critical: failed to open configuration database '' (not enough memor
y)\n", 91) = 91
...
3398  exit_group(1)                     = ?
3398  +++ exited with 1 +++

Running it with more memory (1024mb) results in

$ /home/user/afl/afl-fuzz -m 1024 -i /home/user/testcases -o /home/user/outputs -D 1 -t 200+ -N udp://localhost:53 /home/user/knot-2.1.1/src/knotd -c /home/user/knot.conf
afl-fuzz 1.95b by <lcamtuf@google.com>
[+] You have 1 CPU cores and 2 runnable tasks (utilization: 200%).
[*] Checking core_pattern...
[*] Setting up output directories...
[+] Output directory exists but deemed OK to reuse.
[*] Deleting old session data...
[+] Output dir cleanup successful.
[*] Scanning '/home/user/testcases'...
[+] No auto-generated dictionary tokens to reuse.
[*] Creating hard links for all input files...
[*] Validating target binary...
[*] Attempting dry run with 'id:000000,orig:dns-query-sample'...
[*] Spinning up the fork server...
[+] All right - fork server is up.
[!] WARNING: Test case results in a hang (skipping)

[-] PROGRAM ABORT : All test cases time out, giving up!
         Location : perform_dry_run(), afl-fuzz.c:3240

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions