diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2021-10-13 08:07:43 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2021-10-13 09:19:45 +0200 |
| commit | 9d56e7ddd67e5ec46588c6434db739d94a7d2aae (patch) | |
| tree | 5c8052aa93769d93995aede9e9ed18147bfc8521 /executor/common_linux.h | |
| parent | 76a21659aa2233bae7f7323704a3ca50f0a43df6 (diff) | |
executor: don't mount some cgroup controllers during setup
Leave some controllers unbound so that the fuzzer can mount them during fuzzing.
This is suboptimal because all controllers are global (so different test
processes will collide, state accumulate, etc), but this still should give
at least some new coverage.
Diffstat (limited to 'executor/common_linux.h')
| -rw-r--r-- | executor/common_linux.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/executor/common_linux.h b/executor/common_linux.h index 43fb6c2ce..b4303de1e 100644 --- a/executor/common_linux.h +++ b/executor/common_linux.h @@ -3493,9 +3493,9 @@ static void setup_cgroups() // Note: we need to enable controllers one-by-one for both cgroup and cgroup2. // If we enable all at the same time and one of them fails (b/c of older kernel // or not enabled configs), then all will fail. - const char* unified_controllers[] = {"+cpu", "+memory", "+io", "+pids", "+rdma"}; - const char* net_controllers[] = {"net", "net_cls", "net_prio", "devices", "blkio", "freezer"}; - const char* cpu_controllers[] = {"cpuset", "cpuacct", "perf_event", "hugetlb", "rlimit"}; + const char* unified_controllers[] = {"+cpu", "+memory", "+io", "+pids"}; + const char* net_controllers[] = {"net", "net_prio", "devices", "blkio", "freezer"}; + const char* cpu_controllers[] = {"cpuset", "cpuacct", "hugetlb", "rlimit"}; if (mkdir("/syzcgroup", 0777)) { debug("mkdir(/syzcgroup) failed: %d\n", errno); } |
