aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common.h
diff options
context:
space:
mode:
authorMarco Elver <elver@google.com>2019-10-04 13:43:02 +0200
committerDmitry Vyukov <dvyukov@google.com>2019-10-04 13:44:09 +0200
commitb2f369e56e13dc135d57c53210ea7ab38b239e94 (patch)
treef740d97da76dbe3c9b1e2de6409e4e6f94c1e375 /executor/common.h
parentfc17ba4941e5e2cae9663b84e13627981c29d381 (diff)
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.
Diffstat (limited to 'executor/common.h')
-rw-r--r--executor/common.h3
1 files changed, 3 insertions, 0 deletions
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();