From 316eb530e5b1c0c0dacd5e17f52fd315a48fd970 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Tue, 19 Apr 2022 12:21:48 +0000 Subject: dashboard: remember and display strace flag Receive the information, whether the crash log contains strace output, from the syz-manager. Adjust bug reporting email depending on that flag. --- dashboard/dashapi/dashapi.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'dashboard/dashapi/dashapi.go') diff --git a/dashboard/dashapi/dashapi.go b/dashboard/dashapi/dashapi.go index a78e25073..bcd964852 100644 --- a/dashboard/dashapi/dashapi.go +++ b/dashboard/dashapi/dashapi.go @@ -251,6 +251,12 @@ func (dash *Dashboard) UploadCommits(commits []Commit) error { return dash.Query("upload_commits", &CommitPollResultReq{commits}, nil) } +type CrashFlags int64 + +const ( + CrashUnderStrace CrashFlags = 1 << iota +) + // Crash describes a single kernel crash (potentially with repro). type Crash struct { BuildID string // refers to Build.ID @@ -261,6 +267,7 @@ type Crash struct { Maintainers []string // deprecated in favor of Recipients Recipients Recipients Log []byte + Flags CrashFlags Report []byte MachineInfo []byte // The following is optional and is filled only after repro. @@ -355,6 +362,7 @@ type BugReport struct { SyzkallerCommit string Log []byte LogLink string + LogHasStrace bool Report []byte ReportLink string ReproC []byte -- cgit mrf-deployment