arch linux and mac os support for afl-system-config
MODIFY
afl-system-config
afl-system-config
@@ -22,7 +22,10 @@ if [ '!' "$EUID" = 0 ] && [ '!' `id -u` = 0 ] ; then
fi
if [ "$PLATFORM" = "Linux" ] ; then
{
- sysctl -w kernel.core_pattern=core
+ sysctl -w kernel.core_uses_pid=0
+ # Arch Linux requires core_pattern to be empty :(
+ test -e /etc/arch-release && sysctl -w kernel.core_pattern=
+ test -e /etc/arch-release || sysctl -w kernel.core_pattern=core
sysctl -w kernel.randomize_va_space=0
sysctl -w kernel.sched_child_runs_first=1
sysctl -w kernel.sched_autogroup_enabled=1
@@ -86,14 +89,15 @@ if [ "$PLATFORM" = "NetBSD" ] ; then
DONE=1
fi
if [ "$PLATFORM" = "Darwin" ] ; then
+ sysctl kern.sysv.shmmax=8388608
+ sysctl kern.sysv.shmseg=48
+ sysctl kern.sysv.shmall=98304
if [ $(launchctl list 2>/dev/null | grep -q '\.ReportCrash$') ] ; then
echo We unload the default crash reporter here
SL=/System/Library; PL=com.apple.ReportCrash
launchctl unload -w ${SL}/LaunchAgents/${PL}.plist
sudo launchctl unload -w ${SL}/LaunchDaemons/${PL}.Root.plist
echo Settings applied.
- else
- echo Nothing to do.
fi
DONE=1
fi

MODIFY
docs/Changelog.md
docs/Changelog.md
@@ -44,6 +44,8 @@ sending a mail to <afl-users+subscribe@googlegroups.com>.
- fix MIPS delay slot caching, thanks @JackGrence
- fixed aarch64 exit address
- execution no longer stops at address 0x0
+ - updated afl-system-config to support Arch Linux weirdness and increase
+ MacOS shared memory
- updated the grammar custom mutator to the newest version
- add -d (add dead fuzzer stats) to afl-whatsup

arch linux and mac os support for afl-system-config