From 0091ba33c91bb9785cfaba29c09aebaab2815f1b Mon Sep 17 00:00:00 2001 From: jonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com> Date: Wed, 8 May 2024 10:29:11 -0400 Subject: [PATCH] [cifuzz] Don't use jobs with MSAN. (#11922) It causes false positives. Related: https://github.com/google/oss-fuzz/issues/11915 --- infra/cifuzz/fuzz_target.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/infra/cifuzz/fuzz_target.py b/infra/cifuzz/fuzz_target.py index 2342c22bc..8c9789d8a 100644 --- a/infra/cifuzz/fuzz_target.py +++ b/infra/cifuzz/fuzz_target.py @@ -190,7 +190,12 @@ class FuzzTarget: # pylint: disable=too-many-instance-attributes options.arguments.extend(LIBFUZZER_OPTIONS_NO_REPORT_OOM) if self.config.parallel_fuzzing: - options.arguments.extend(get_libfuzzer_parallel_options()) + if self.config.sanitizer == 'memory': + # TODO(https://github.com/google/oss-fuzz/issues/11915): Don't gate + # this after jobs is fixed for MSAN. + logging.info('Not using jobs because it breaks MSAN.') + else: + options.arguments.extend(get_libfuzzer_parallel_options()) result = engine_impl.fuzz(self.target_path, options, artifacts_dir, self.duration)