mirror of
https://github.com/reactos/syzkaller.git
synced 2025-02-12 06:50:31 +00:00
![Dmitry Vyukov](/assets/img/avatar_default.png)
Currently all (linux-specific) suppressions are hardcoded in mgrconfig. This is very wrong. Move them to pkg/report and allow to specify per OS. Add gvisor-specific suppressions. This required a bit of refactoring. Introduce mgrconfig.KernelObj finally. Make report.NewReporter and vm.Create accept mgrconfig directly instead of passing it as multiple scattered args. Remove tools/syz-parse and it always did the same as tools/syz-symbolize. Simplify global vars in syz-manager/cover.go. Create reporter eagerly in manager. Use sort.Slice more. Overall -90 lines removed.
36 lines
736 B
Go
36 lines
736 B
Go
// Copyright 2017 syzkaller project authors. All rights reserved.
|
|
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
|
|
|
|
package report
|
|
|
|
import (
|
|
"regexp"
|
|
)
|
|
|
|
type stub struct {
|
|
kernelSrc string
|
|
kernelObj string
|
|
ignores []*regexp.Regexp
|
|
}
|
|
|
|
func ctorStub(kernelSrc, kernelObj string, ignores []*regexp.Regexp) (Reporter, []string, error) {
|
|
ctx := &stub{
|
|
kernelSrc: kernelSrc,
|
|
kernelObj: kernelObj,
|
|
ignores: ignores,
|
|
}
|
|
return ctx, nil, nil
|
|
}
|
|
|
|
func (ctx *stub) ContainsCrash(output []byte) bool {
|
|
panic("not implemented")
|
|
}
|
|
|
|
func (ctx *stub) Parse(output []byte) *Report {
|
|
panic("not implemented")
|
|
}
|
|
|
|
func (ctx *stub) Symbolize(rep *Report) error {
|
|
panic("not implemented")
|
|
}
|