diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2022-10-04 15:34:21 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2022-10-07 21:49:35 +0200 |
| commit | 4e18b11d70c76c0b15e2567e0f1ac1b442cae8aa (patch) | |
| tree | 4dec134694761b8c4896450225a3939e8ee79983 /executor/common_linux.h | |
| parent | 0de35f24a4d2da07a3436f9d227c30d15f508beb (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/common_linux.h')
| -rw-r--r-- | executor/common_linux.h | 3 |
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); |
