From 5de4ef6cb71a4a07492ab0f28b0bb35cb6ab2e21 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sun, 15 Nov 2020 13:03:33 +0100 Subject: 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. --- executor/common_linux.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'executor') 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)) -- cgit mrf-deployment