Scripts/info for running AFL on FreeBSD programs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
John-Mark Gurney 6e488ae4b6 use pre tag instead, avoid syntax highlighting hopefully.. 1 year ago
fsck_ffs just some notes on my fuzzing FreeBSD fsck.. 1 year ago
README.md use pre tag instead, avoid syntax highlighting hopefully.. 1 year ago
build.sh just some notes on my fuzzing FreeBSD fsck.. 1 year ago

README.md

Fuzzing FreeBSD w/ AFL

This project is used to store the various information and scripts that I have used in fuzzing FreeBSD.

This project started when someone reported that fsck_ffs couldn’t repair a file system they had, but as we all know, file systems are often large, and contain data the people don’t want to share, making getting test cases more difficult than most. I decided to see if fuzzing was able to reproduce their failure, and the very first failure was the reported, but it also managed to find some more.

Building

There is a script build.sh that will set the compiler correctly when building parts of the FreeBSD source tree. You do have to be careful when doing this as there are sometimes dependencies that need to be built as well, e.g. libufs for fsck_ffs.

License

All scripts/information are BSD 2-clause licensed unless specified otherwise:

Copyright 2023 John-Mark Gurney.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
   notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
   notice, this list of conditions and the following disclaimer in the
   documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.