aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/fuzzer/job.go
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2024-05-14 16:52:34 +0200
committerDmitry Vyukov <dvyukov@google.com>2024-05-16 15:38:27 +0000
commit086ab166bbbf17d3f0a16c8b27f1995a70908b35 (patch)
tree1062586c30bfc16aa5a7629cd4314cf7345da197 /pkg/fuzzer/job.go
parent1cf9be9327cbff5ed11e2106e362039f09aaed7c (diff)
pkg/fuzzer/queue: retry inputs from crashed VMs
Mark some requests as Important. The Retry() layer will give them one more chance even if they were not executed due to a VM crash. For now, the only important requests are related to triage, candidates and pkg/vminfo tests. Add tests for retry.go.
Diffstat (limited to 'pkg/fuzzer/job.go')
-rw-r--r--pkg/fuzzer/job.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/fuzzer/job.go b/pkg/fuzzer/job.go
index 9fd294ca0..d54e6bd48 100644
--- a/pkg/fuzzer/job.go
+++ b/pkg/fuzzer/job.go
@@ -70,6 +70,7 @@ func candidateRequest(fuzzer *Fuzzer, input Candidate) (*queue.Request, ProgType
Prog: input.Prog,
NeedSignal: queue.NewSignal,
Stat: fuzzer.statExecCandidate,
+ Important: true,
}, flags
}
@@ -88,6 +89,7 @@ type triageJob struct {
}
func (job *triageJob) execute(req *queue.Request, opts ...execOpt) *queue.Result {
+ req.Important = true // All triage executions are important.
return job.fuzzer.execute(job.queue, req, opts...)
}