diff options
Diffstat (limited to 'executor')
| -rw-r--r-- | executor/common_linux.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/executor/common_linux.h b/executor/common_linux.h index 21433c515..2f5692105 100644 --- a/executor/common_linux.h +++ b/executor/common_linux.h @@ -2067,6 +2067,10 @@ static void setup_test() if (symlink(cgroupdir, "./cgroup.net")) { debug("symlink(%s, ./cgroup.net) failed: %d\n", cgroupdir, errno); } + // Reset oom_score_adj since it's inherited from parent. + if (!write_file("/proc/self/oom_score_adj", "0")) { + debug("write(oom_score_adj) failed: %d\n", errno); + } #endif #if SYZ_EXECUTOR || SYZ_TUN_ENABLE // Read all remaining packets from tun to better |
