diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2025-07-15 14:57:59 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2025-07-18 10:09:54 +0000 |
| commit | 765e80d7d623021cdc963eeea44721a28f9386d0 (patch) | |
| tree | 05895524c8a90c4a0f7cd7117cbeda04719ce904 /syz-cluster/workflow | |
| parent | 88248e14c8cbf1fbd42c1a1a91b709987b4be842 (diff) | |
pkg/manager: abort fuzzing if no patched code is reached
Don't waste time doing focused fuzzing if no modified code has
been reached in 30 minutes after corpus triage.
Diffstat (limited to 'syz-cluster/workflow')
| -rw-r--r-- | syz-cluster/workflow/fuzz-step/main.go | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/syz-cluster/workflow/fuzz-step/main.go b/syz-cluster/workflow/fuzz-step/main.go index 6eee33bfa..6996ae8a0 100644 --- a/syz-cluster/workflow/fuzz-step/main.go +++ b/syz-cluster/workflow/fuzz-step/main.go @@ -10,12 +10,6 @@ import ( "errors" "flag" "fmt" - "io" - "net/http" - "os" - "path/filepath" - "time" - "github.com/google/syzkaller/pkg/config" "github.com/google/syzkaller/pkg/log" "github.com/google/syzkaller/pkg/manager" @@ -25,6 +19,11 @@ import ( "github.com/google/syzkaller/syz-cluster/pkg/api" "github.com/google/syzkaller/syz-cluster/pkg/app" "golang.org/x/sync/errgroup" + "io" + "net/http" + "os" + "path/filepath" + "time" ) var ( @@ -133,6 +132,8 @@ func run(baseCtx context.Context, client *api.Client, timeout time.Duration, PatchedOnly: bugs, Store: store, MaxTriageTime: timeout / 2, + // Allow up to 30 minutes after the corpus triage to reach the patched code. + FuzzToReachPatched: time.Minute * 30, }) }) const ( @@ -159,7 +160,12 @@ func run(baseCtx context.Context, client *api.Client, timeout time.Duration, } } }) - return eg.Wait() + err = eg.Wait() + if errors.Is(err, manager.ErrPatchedAreaNotReached) { + // We did not reach the modified parts of the kernel, but that's fine. + return nil + } + return err } func downloadCorpus(ctx context.Context, workdir, url string) error { |
