Skip to content

Commit

Permalink
re-add memory.swap.max for all fuzzers
Browse files Browse the repository at this point in the history
  • Loading branch information
toralf committed Dec 7, 2024
1 parent 714dfb5 commit 9f77339
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fuzz-cgroup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ function CreateCgroup() {
local name=$cgdomain/${1?}
local pid=${2?}

# stdout of the fuzzer can become huge, e.g. for OpenSSL cmp fuzzer, and goes to a tmpfs

# put all fuzzers under 1 sub group
if [[ ! -d $cgdomain ]]; then
if mkdir $cgdomain 2>/dev/null; then
Expand All @@ -17,6 +15,7 @@ function CreateCgroup() {
echo "$((4 * 100))" >$cgdomain/cpu.weight
echo "$((4 * 100000))" >$cgdomain/cpu.max
echo "2G" >$cgdomain/memory.max
echo "20G" >$cgdomain/memory.swap.max # stdout of the fuzzer is counted b/c it goes to a tmpfs
fi
fi

Expand Down

0 comments on commit 9f77339

Please sign in to comment.