diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2024-07-12 12:22:55 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2024-07-15 12:35:21 +0000 |
| commit | 220488044db8a4fc57f46b801779dd60d7c01979 (patch) | |
| tree | 5fb579611ae8d8891f8f3bb6f6b06c4f56c5c10f /syz-manager | |
| parent | f3af87f58e552092404c65e428d82a1a8146c622 (diff) | |
syz-manager: restore bug reproduction for Experimental.ResetAccState
In addCandidates(), we advance the instance phase. Let's do it before
checking for Experimental.ResetAccState.
Diffstat (limited to 'syz-manager')
| -rw-r--r-- | syz-manager/manager.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/syz-manager/manager.go b/syz-manager/manager.go index 91c5d9669..faaf19965 100644 --- a/syz-manager/manager.go +++ b/syz-manager/manager.go @@ -1191,17 +1191,17 @@ func (mgr *Manager) getMinimizedCorpus() (corpus []*corpus.Item, repros [][]byte } func (mgr *Manager) addNewCandidates(candidates []fuzzer.Candidate) { + mgr.mu.Lock() + if mgr.phase == phaseTriagedCorpus { + mgr.phase = phaseQueriedHub + } + mgr.mu.Unlock() if mgr.cfg.Experimental.ResetAccState { // Don't accept new candidates -- the execution is already very slow, // syz-hub will just overwhelm us. return } mgr.fuzzer.Load().AddCandidates(candidates) - mgr.mu.Lock() - defer mgr.mu.Unlock() - if mgr.phase == phaseTriagedCorpus { - mgr.phase = phaseQueriedHub - } } func (mgr *Manager) minimizeCorpusLocked() { |
