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/common.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'executor/common.h') diff --git a/executor/common.h b/executor/common.h index e054cf434..0a943a88f 100644 --- a/executor/common.h +++ b/executor/common.h @@ -740,6 +740,9 @@ int main(void) /*{{{MMAP_DATA}}}*/ #endif +#if SYZ_SYSCTL + setup_sysctl(); +#endif #if SYZ_BINFMT_MISC setup_binfmt_misc(); #endif -- cgit mrf-deployment