sslab-gatech / janus

Janus: a state-of-the-art file system fuzzer on Linux
MIT License
207 stars 27 forks source link

compression failed during “Create the input directory and the output directory for Janus” phase #8

Open limbo-wg opened 3 years ago

limbo-wg commented 3 years ago

when I run fuzzer after create seed programs, with the code: ./core/afl-image-syscall/afl-fuzz -b btrfs -s fs/btrfs/btrfs_wrapper.so -e ./samples/evaluation/btrfs-00.image -S btrfs -y prog -i input -o output -m none -u 2 -- ./lkl/tools/lkl/btrfs-combined -t btrfs -p @@

I got the outcome as follows: afl-fuzz 2.52b by lcamtuf@google.com [+] [fs-fuzz] shm name to store image buffer: btrfs [+] [fs-fuzz] target wrapper (.so) path: fs/btrfs/btrfs_wrapper.so [+] [fs-fuzz] seed image path: ./samples/evaluation/btrfs-00.image [+] [fs-fuzz] syscall input directory: prog [+] You have 48 CPU cores and 1 runnable tasks (utilization: 2%). [+] Try parallel jobs - see docs/parallel_fuzzing.txt. [+] Found a free CPU core, binding to #2. [] Checking core_pattern... [] Checking CPU scaling governor... [+] [+] Open shm btrfs success. [+] [+] Map shm btrfs at 0x7fdc3ac9b000 size: 0x8000000.

[-] image ./samples/evaluation/btrfs-00.image compression failed. Location: compress(), btrfs_fuzzer.cc:211

can anyone tell me why I got this error?

docfate111 commented 2 years ago

@limbo-wg I got the same email and also don't know why

docfate111 commented 2 years ago

at this place in the code here at the steps i took https://github.com/docfate111/badfsfuzzer/blob/main/janusdocker/Dockerfile

r00tus3r commented 2 years ago

I also came across this issue. I resolved it by increasing the shm size. (https://stackoverflow.com/questions/30210362/how-to-increase-the-size-of-the-dev-shm-in-docker-container)

By default it is 64 MB and the image file the program tries to read is 128 MB. So it is unable to read it fully.