From ea39e6d6e7b3329ff744e3a28b32b8862251d4cc Mon Sep 17 00:00:00 2001 From: vanhauser-thc Date: Wed, 28 Jul 2021 08:40:34 +0200 Subject: [PATCH] better macos sysctl settings --- afl-persistent-config | 3 ++- afl-system-config | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/afl-persistent-config b/afl-persistent-config index 5a9f5e31..fd453cbc 100755 --- a/afl-persistent-config +++ b/afl-persistent-config @@ -69,8 +69,9 @@ if [[ "$PLATFORM" = "Darwin" ]] ; then /usr/sbin/sysctl -w kern.sysv.shmmax=524288000 + kern.sysv.shmmin=1 kern.sysv.shmmni=128 - kern.sysv.shmseg=32 + kern.sysv.shmseg=48 kern.sysv.shmall=131072000 KeepAlive diff --git a/afl-system-config b/afl-system-config index a2ffa490..dbdbbf1f 100755 --- a/afl-system-config +++ b/afl-system-config @@ -101,9 +101,10 @@ if [ "$PLATFORM" = "NetBSD" ] ; then DONE=1 fi if [ "$PLATFORM" = "Darwin" ] ; then - sysctl kern.sysv.shmmax=8388608 + sysctl kern.sysv.shmmax=524288000 + sysctl kern.sysv.shmmin=1 sysctl kern.sysv.shmseg=48 - sysctl kern.sysv.shmall=98304 + sysctl kern.sysv.shmall=131072000 echo Settings applied. echo if [ $(launchctl list 2>/dev/null | grep -q '\.ReportCrash$') ] ; then