From b2f369e56e13dc135d57c53210ea7ab38b239e94 Mon Sep 17 00:00:00 2001 From: Marco Elver Date: Fri, 4 Oct 2019 13:43:02 +0200 Subject: executor, host, csource: Add support to enable KCSAN By default, the current KCSAN .config does not enable KCSAN during boot, since we encounter races during boot which would prevent syzkaller from ever executing. This adds support to detect if KCSAN is available, and enables it on the fuzzer host. --- 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 1d0616d70..2671db7d7 100644 --- a/executor/common.h +++ b/executor/common.h @@ -704,6 +704,9 @@ int main(void) #if SYZ_FAULT_INJECTION setup_fault(); #endif +#if SYZ_ENABLE_KCSAN + setup_kcsan(); +#endif #if SYZ_HANDLE_SEGV install_segv_handler(); -- cgit mrf-deployment