aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2021-05-10 10:38:31 +0200
committervanhauser-thc <vh@thc.org>2021-05-10 10:38:31 +0200
commit84e55e7a1bc684b2f3b52db4d6e789135af95d13 (patch)
tree7c3c02b5fba187a7398d2a13253447e08d0a9b25
parentceb138cefe46e4412f54f31a812c125cebbb5b65 (diff)
downloadafl++-84e55e7a1bc684b2f3b52db4d6e789135af95d13.tar.gz
arch linux and mac os support for afl-system-config
-rwxr-xr-xafl-system-config10
-rw-r--r--docs/Changelog.md2
2 files changed, 9 insertions, 3 deletions
diff --git a/afl-system-config b/afl-system-config
index 5ad9d937..e08871ac 100755
--- a/afl-system-config
+++ b/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
diff --git a/docs/Changelog.md b/docs/Changelog.md
index 31351a58..ceb02bb9 100644
--- a/docs/Changelog.md
+++ b/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