aboutsummaryrefslogtreecommitdiffstats
path: root/executor
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2022-10-04 15:34:21 +0200
committerDmitry Vyukov <dvyukov@google.com>2022-10-07 21:49:35 +0200
commit4e18b11d70c76c0b15e2567e0f1ac1b442cae8aa (patch)
tree4dec134694761b8c4896450225a3939e8ee79983 /executor
parent0de35f24a4d2da07a3436f9d227c30d15f508beb (diff)
executor: enable core dumps
Core dumping known to have bugs. Just few recent kernel commits: [brown paperbag] fix coredump breakage [coredump] don't use __kernel_write() on kmap_local_page() We also also found some info leaks in core dumps before. No reason to not test them.
Diffstat (limited to 'executor')
-rw-r--r--executor/common_linux.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/executor/common_linux.h b/executor/common_linux.h
index e5587d1c7..39a687e36 100644
--- a/executor/common_linux.h
+++ b/executor/common_linux.h
@@ -3842,7 +3842,8 @@ static void sandbox_common()
setrlimit(RLIMIT_FSIZE, &rlim);
rlim.rlim_cur = rlim.rlim_max = 1 << 20;
setrlimit(RLIMIT_STACK, &rlim);
- rlim.rlim_cur = rlim.rlim_max = 0;
+ // Note: core size is also restricted by RLIMIT_FSIZE.
+ rlim.rlim_cur = rlim.rlim_max = 128 << 20;
setrlimit(RLIMIT_CORE, &rlim);
rlim.rlim_cur = rlim.rlim_max = 256; // see kMaxFd
setrlimit(RLIMIT_NOFILE, &rlim);