5353 'arguments' ,
5454 'additional_corpus_dirs' ,
5555 'extra_env' ,
56- 'use_dataflow_tracing' ,
5756 'is_mutations_run' ,
5857])
5958
6362CRASH_TESTCASE_REGEX = (r'.*Test unit written to\s*'
6463 r'(.*(crash|oom|timeout|leak)-.*)' )
6564
66- # Currently matches oss-fuzz/infra/base-images/base-runner/collect_dft#L34.
67- DATAFLOW_TRACE_DIR_SUFFIX = '_dft'
68-
6965# List of all strategies that affect LD_PRELOAD.
7066MUTATOR_STRATEGIES = [
7167 strategy .PEACH_GRAMMAR_MUTATION_STRATEGY .name ,
@@ -1154,7 +1150,6 @@ def get_runner(fuzzer_path, temp_dir=None, use_minijail=None):
11541150 temp_dir = fuzzer_utils .get_temp_dir ()
11551151
11561152 build_dir = environment .get_value ('BUILD_DIR' )
1157- dataflow_build_dir = environment .get_value ('DATAFLOW_BUILD_DIR' )
11581153 is_android = environment .is_android ()
11591154 is_fuchsia = environment .platform () == 'FUCHSIA'
11601155
@@ -1176,11 +1171,6 @@ def get_runner(fuzzer_path, temp_dir=None, use_minijail=None):
11761171 minijail_chroot .add_binding (
11771172 minijail .ChrootBinding (build_dir , build_dir , writeable = False ))
11781173
1179- if dataflow_build_dir :
1180- minijail_chroot .add_binding (
1181- minijail .ChrootBinding (
1182- dataflow_build_dir , dataflow_build_dir , writeable = False ))
1183-
11841174 # Also bind the build dir to /out to make it easier to hardcode references
11851175 # to data files.
11861176 minijail_chroot .add_binding (
@@ -1313,18 +1303,14 @@ def parse_log_stats(log_lines):
13131303 return log_stats
13141304
13151305
1316- def set_sanitizer_options (fuzzer_path , fuzz_options = None ):
1317- """Sets sanitizer options based on .options file overrides, FuzzOptions (if
1318- provided), and what this script requires."""
1306+ def set_sanitizer_options (fuzzer_path ):
1307+ """Sets sanitizer options based on .options file overrides and what this
1308+ script requires."""
13191309 engine_common .process_sanitizer_options_overrides (fuzzer_path )
13201310 sanitizer_options_var = environment .get_current_memory_tool_var ()
13211311 sanitizer_options = environment .get_memory_tool_options (
13221312 sanitizer_options_var , {})
13231313 sanitizer_options ['exitcode' ] = constants .TARGET_ERROR_EXITCODE
1324- if fuzz_options and fuzz_options .use_dataflow_tracing :
1325- # Focus function feature does not work without symbolization.
1326- sanitizer_options ['symbolize' ] = 1
1327- environment .update_symbolizer_options (sanitizer_options )
13281314 environment .set_memory_tool_options (sanitizer_options_var , sanitizer_options )
13291315
13301316
@@ -1424,7 +1410,6 @@ def pick_strategies(strategy_pool,
14241410 existing_arguments ,
14251411 grammar = None ):
14261412 """Pick strategies."""
1427- build_directory = environment .get_value ('BUILD_DIR' )
14281413 fuzzing_strategies = []
14291414 arguments = fuzzer_options .FuzzerArguments ({})
14301415 additional_corpus_dirs = []
@@ -1435,24 +1420,6 @@ def pick_strategies(strategy_pool,
14351420 is_mutations_run = (not environment .is_ephemeral () and
14361421 candidate_generator != engine_common .Generator .NONE )
14371422
1438- # Depends on the presense of DFSan instrumented build.
1439- dataflow_build_dir = environment .get_value ('DATAFLOW_BUILD_DIR' )
1440- use_dataflow_tracing = (
1441- dataflow_build_dir and
1442- strategy_pool .do_strategy (strategy .DATAFLOW_TRACING_STRATEGY ))
1443- if use_dataflow_tracing :
1444- dataflow_binary_path = os .path .join (
1445- dataflow_build_dir , os .path .relpath (fuzzer_path , build_directory ))
1446- dataflow_trace_dir = dataflow_binary_path + DATAFLOW_TRACE_DIR_SUFFIX
1447- if os .path .exists (dataflow_trace_dir ):
1448- arguments [constants .DATA_FLOW_TRACE_FLAGNAME ] = str (dataflow_trace_dir )
1449- arguments [constants .FOCUS_FUNCTION_FLAGNAME ] = 'auto'
1450- fuzzing_strategies .append (strategy .DATAFLOW_TRACING_STRATEGY .name )
1451- else :
1452- logs .log_warn (
1453- 'Dataflow trace is not found in dataflow build, skipping strategy.' )
1454- use_dataflow_tracing = False
1455-
14561423 # Generate new testcase mutations using radamsa, etc.
14571424 if is_mutations_run :
14581425 new_testcase_mutations_directory = create_corpus_directory ('mutations' )
@@ -1476,8 +1443,7 @@ def pick_strategies(strategy_pool,
14761443 arguments [constants .VALUE_PROFILE_FLAGNAME ] = 1
14771444 fuzzing_strategies .append (strategy .VALUE_PROFILE_STRATEGY .name )
14781445
1479- if not use_dataflow_tracing and should_set_fork_flag (existing_arguments ,
1480- strategy_pool ):
1446+ if should_set_fork_flag (existing_arguments , strategy_pool ):
14811447 max_fuzz_threads = environment .get_value ('MAX_FUZZ_THREADS' , 1 )
14821448 num_fuzz_processes = max (1 , utils .cpu_count () // max_fuzz_threads )
14831449 arguments [constants .FORK_FLAGNAME ] = num_fuzz_processes
@@ -1496,7 +1462,7 @@ def pick_strategies(strategy_pool,
14961462 fuzzing_strategies .append (strategy .USE_EXTRA_SANITIZERS_STRATEGY .name )
14971463
14981464 return StrategyInfo (fuzzing_strategies , arguments , additional_corpus_dirs ,
1499- extra_env , use_dataflow_tracing , is_mutations_run )
1465+ extra_env , is_mutations_run )
15001466
15011467
15021468def should_set_fork_flag (existing_arguments , strategy_pool ):
0 commit comments