From d3747c722655480e783b482c959331238997733f Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sun, 25 Oct 2020 12:12:10 +0100 Subject: pkg/csource: setup sysctl's in C reproducers Sysctl's are not captured as part of reproducers. This can result in failure to reproduce a bug on developer machine. Include sysctl setup as part of C reproducers. --- executor/executor.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'executor/executor.cc') diff --git a/executor/executor.cc b/executor/executor.cc index e759a7083..b221c2070 100644 --- a/executor/executor.cc +++ b/executor/executor.cc @@ -1465,8 +1465,7 @@ void setup_features(char** enable, int n) // This does any one-time setup for the requested features on the machine. // Note: this can be called multiple times and must be idempotent. #if SYZ_HAVE_FEATURES - // Note: this is not executed in C reproducers. - setup_machine(); + setup_sysctl(); #endif for (int i = 0; i < n; i++) { bool found = false; -- cgit mrf-deployment