diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2024-06-18 11:17:59 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2024-06-18 09:35:33 +0000 |
| commit | 9cedaa08fdf79368c434b42c082a21cd09adf8b8 (patch) | |
| tree | 203516bb2e354afca953949712b865fe9379d798 /pkg/instance/instance.go | |
| parent | ce6011bc8a8b4c80efebdb433863e74aac83b9a7 (diff) | |
pkg/instance: don't require a syz reproducer
We currently panic if the syz reproducer was not provided, but it's
actually a valid situation - it happens if we perform patch testing for
build/boot/test errors.
Closes #4907.
Diffstat (limited to 'pkg/instance/instance.go')
| -rw-r--r-- | pkg/instance/instance.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/instance/instance.go b/pkg/instance/instance.go index cc4efb5a3..f8ce5cb05 100644 --- a/pkg/instance/instance.go +++ b/pkg/instance/instance.go @@ -418,10 +418,10 @@ func (inst *inst) testRepro() ([]byte, error) { func (inst *inst) csourceOptions() (csource.Options, error) { if len(inst.reproSyz) == 0 { - // This function is expected to be used only when we have a syz reproducer: - // either during syz reproducer testing, or during image testing - // for bisection or patch testing. - panic("no syz reproducer") + // If no syz repro is provided, the functionality is likely being used to test + // for the crashes that don't need a reproducer (e.g. kernel build/boot/test errors). + // Use the default options, that's the best we can do. + return csource.DefaultOpts(inst.cfg), nil } opts, err := csource.DeserializeOptions(inst.reproOpts) if err != nil { |
