diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2024-05-14 16:52:34 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2024-05-16 15:38:27 +0000 |
| commit | 086ab166bbbf17d3f0a16c8b27f1995a70908b35 (patch) | |
| tree | 1062586c30bfc16aa5a7629cd4314cf7345da197 /pkg/vminfo | |
| parent | 1cf9be9327cbff5ed11e2106e362039f09aaed7c (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/vminfo')
| -rw-r--r-- | pkg/vminfo/syscalls.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/vminfo/syscalls.go b/pkg/vminfo/syscalls.go index 863c995bd..54678291f 100644 --- a/pkg/vminfo/syscalls.go +++ b/pkg/vminfo/syscalls.go @@ -252,7 +252,6 @@ func (ctx *checkContext) execRaw(calls []string, mode prog.DeserializeMode, root if err != nil { panic(fmt.Sprintf("failed to deserialize: %v\n%v", err, progStr)) } - // TODO: request that the program must be re-executed on the first failure. req := &queue.Request{ Prog: p, ExecOpts: &ipc.ExecOpts{ @@ -260,6 +259,7 @@ func (ctx *checkContext) execRaw(calls []string, mode prog.DeserializeMode, root ExecFlags: 0, SandboxArg: ctx.cfg.SandboxArg, }, + Important: true, } ctx.executor.Submit(req) res := req.Wait(ctx.ctx) |
