aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common_linux.h
diff options
context:
space:
mode:
Diffstat (limited to 'executor/common_linux.h')
-rw-r--r--executor/common_linux.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/executor/common_linux.h b/executor/common_linux.h
index 608dc964c..78d1e82a1 100644
--- a/executor/common_linux.h
+++ b/executor/common_linux.h
@@ -1791,7 +1791,12 @@ static void sandbox_common()
#endif
struct rlimit rlim;
- rlim.rlim_cur = rlim.rlim_max = 200 << 20;
+#if SYZ_EXECUTOR
+ rlim.rlim_cur = rlim.rlim_max = (200 << 20) +
+ (kMaxThreads * kCoverSize + kExtraCoverSize) * sizeof(void*);
+#else
+ rlim.rlim_cur = rlim.rlim_max = (200 << 20);
+#endif
setrlimit(RLIMIT_AS, &rlim);
rlim.rlim_cur = rlim.rlim_max = 32 << 20;
setrlimit(RLIMIT_MEMLOCK, &rlim);