aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common_linux.h
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-04-19 16:59:49 +0200
committerDmitry Vyukov <dvyukov@google.com>2018-04-19 16:59:49 +0200
commite5453dd396fe0c59fcc58fa888910285c91be7db (patch)
treed835f5d750faa6630d30e9aa113d248bf872fbec /executor/common_linux.h
parent81daaca9803a50d7396e0dbfd7ecdebac7b48f7f (diff)
executor: increase max image size to 128MB
Images of some filesystems need to be that large (xfs, btrfs, f2fs).
Diffstat (limited to 'executor/common_linux.h')
-rw-r--r--executor/common_linux.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/executor/common_linux.h b/executor/common_linux.h
index 2fa6621d8..a3db677ad 100644
--- a/executor/common_linux.h
+++ b/executor/common_linux.h
@@ -838,7 +838,7 @@ struct fs_image_segment {
};
#define IMAGE_MAX_SEGMENTS 4096
-#define IMAGE_MAX_SIZE (32 << 20)
+#define IMAGE_MAX_SIZE (129 << 20)
#if defined(__i386__)
#define SYZ_memfd_create 356
@@ -1143,11 +1143,11 @@ static void sandbox_common()
#endif
struct rlimit rlim;
- rlim.rlim_cur = rlim.rlim_max = 128 << 20;
+ rlim.rlim_cur = rlim.rlim_max = 160 << 20;
setrlimit(RLIMIT_AS, &rlim);
rlim.rlim_cur = rlim.rlim_max = 8 << 20;
setrlimit(RLIMIT_MEMLOCK, &rlim);
- rlim.rlim_cur = rlim.rlim_max = 32 << 20;
+ rlim.rlim_cur = rlim.rlim_max = 136 << 20;
setrlimit(RLIMIT_FSIZE, &rlim);
rlim.rlim_cur = rlim.rlim_max = 1 << 20;
setrlimit(RLIMIT_STACK, &rlim);