diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-11-15 13:03:33 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-11-21 14:22:40 +0100 |
| commit | 5de4ef6cb71a4a07492ab0f28b0bb35cb6ab2e21 (patch) | |
| tree | 0deebd8e9d1283d13b58644bd93cb979013a678e /executor | |
| parent | c7ec2d19f82830161738378f96761b57328eed7a (diff) | |
tools/create-gce-image.sh: move sysctl's to executor
Move the remaining sysctls from image creation scripts into executor.
We have the rest in executor now, and these are captured in reproducers
and are not duplicated.
It seems that ping_group_range was accidentially lost along the way,
re-add it.
Diffstat (limited to 'executor')
| -rw-r--r-- | executor/common_linux.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/executor/common_linux.h b/executor/common_linux.h index 16b78e99a..98489f12d 100644 --- a/executor/common_linux.h +++ b/executor/common_linux.h @@ -4587,6 +4587,8 @@ static void setup_usb() static void setup_sysctl() { + // TODO: consider moving all sysctl's into CMDLINE config later. + // Kernel has support for setting sysctl's via command line since 3db978d480e28 (v5.8). static struct { const char* name; const char* data; @@ -4612,6 +4614,10 @@ static void setup_sysctl() {"/proc/sys/fs/mount-max", "100"}, // Dumping all tasks to console can take too long. {"/proc/sys/vm/oom_dump_tasks", "0"}, + // Executor hits lots of SIGSEGVs, no point in logging them. + {"/proc/sys/debug/exception-trace", "0"}, + {"/proc/sys/kernel/printk", "7 4 1 3"}, + {"/proc/sys/net/ipv4/ping_group_range", "0 65535"}, }; for (size_t i = 0; i < sizeof(files) / sizeof(files[0]); i++) { if (!write_file(files[i].name, files[i].data)) |
