`GeneralizationStage` runs on every new corpus entry but no configured mutator consumes `GeneralizedInputMetadata`

Open Beginner friendly
#512 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
65/100
Issue type
Refactor
Clarity
Clearly specified
Activity status
Active
Tech stack
rust
Domain
testing

Research direction

Start at src/fuzzer/mod.rs around line 320 where stages is assembled and add GeneralizationStage::new(&edges_observer), then read the mutator chain at lines 483-485. Confirm nothing downstream reads GeneralizedInputMetadata by grepping the repo and checking the LibAFL mutators named in the issue. Done means GeneralizationStage is gone (or Grimoire mutators wired in) and the crate still builds and runs its tests; the issue notes it was found by reading, not reproduced under SIMICS, so no target run is needed to verify.

Written by the indexing model from the issue text.

Description

Where

Problem
stages includes GeneralizationStage::new(&edges_observer), which executes multiple target runs per new corpus entry to compute GeneralizedInputMetadata. None of the configured mutators (I2SRandReplace, havoc_mutations, tokens_mutations, StdMOptMutator, AFLppRedQueen) read GeneralizedInputMetadata (in LibAFL, only Grimoire mutators consume it).

Impact
Wastes dozens to hundreds of SIMICS snapshot/restore target executions per new corpus entry and bloats on-disk .metadata JSON files with unused metadata.

Suggested fix
Remove GeneralizationStage from stages (or wire in Grimoire mutators if generalization is intended).

Status
Found by reading the code at ed67e1c; not reproduced under SIMICS.

Dominant language
Rust
Stars
337
Forks
26
Avg merge
5h 33m
Merged PRs (30d)
30

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from intel/tsffs

All issues in intel/tsffs

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.