aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2017-11-21 19:11:54 +0100
committerDmitry Vyukov <dvyukov@google.com>2017-11-21 19:11:54 +0100
commit6440d6940f4c6316037d005e408c3a7fac682b3e (patch)
treedc05a7cad4e9cbdc107a9bb9438fd46f750ec845
parentad0af9fff5f7ffbd9597e3ffb956fae3f4292b89 (diff)
syz-manager: send corrupted flag to dashboard
-rw-r--r--dashboard/dashapi/dashapi.go1
-rw-r--r--syz-manager/manager.go23
2 files changed, 14 insertions, 10 deletions
diff --git a/dashboard/dashapi/dashapi.go b/dashboard/dashapi/dashapi.go
index 7051e3f2e..10c6a9b60 100644
--- a/dashboard/dashapi/dashapi.go
+++ b/dashboard/dashapi/dashapi.go
@@ -125,6 +125,7 @@ func (dash *Dashboard) JobDone(req *JobDoneReq) error {
type Crash struct {
BuildID string // refers to Build.ID
Title string
+ Corrupted bool // report is corrupted (corrupted title, no stacks, etc)
Maintainers []string
Log []byte
Report []byte
diff --git a/syz-manager/manager.go b/syz-manager/manager.go
index 5f79b9a65..c9c7c96f0 100644
--- a/syz-manager/manager.go
+++ b/syz-manager/manager.go
@@ -107,11 +107,12 @@ type Fuzzer struct {
}
type Crash struct {
- vmIndex int
- hub bool // this crash was created based on a repro from hub
- title string
- report []byte
- log []byte
+ vmIndex int
+ hub bool // this crash was created based on a repro from hub
+ title string
+ report []byte
+ log []byte
+ corrupted bool
}
func main() {
@@ -551,11 +552,12 @@ func (mgr *Manager) runInstance(index int) (*Crash, error) {
return nil, nil
}
cash := &Crash{
- vmIndex: index,
- hub: false,
- title: rep.Title,
- report: rep.Report,
- log: output,
+ vmIndex: index,
+ hub: false,
+ title: rep.Title,
+ report: rep.Report,
+ corrupted: rep.Corrupted,
+ log: output,
}
return cash, nil
}
@@ -598,6 +600,7 @@ func (mgr *Manager) saveCrash(crash *Crash) bool {
dc := &dashapi.Crash{
BuildID: mgr.cfg.Tag,
Title: crash.title,
+ Corrupted: crash.corrupted,
Maintainers: maintainers,
Log: crash.log,
Report: crash.report,