aboutsummaryrefslogtreecommitdiffstats
path: root/dashboard
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2025-06-04 19:36:44 +0200
committerTaras Madan <tarasmadan@google.com>2025-07-08 16:30:25 +0000
commit2adcb3ca85ba4ba337ef50f53dd376d5020f6e77 (patch)
treed751a1750a8978b6e32524fba954ebd7852e491a /dashboard
parentabade7941e7b8a888e052cda1a92805ab785c77e (diff)
dashboard/app: sort bugs by impact
The impact score is deducted from the title. Impact is max(known_titles).
Diffstat (limited to 'dashboard')
-rw-r--r--dashboard/app/main.go3
-rw-r--r--dashboard/app/templates/templates.html5
2 files changed, 8 insertions, 0 deletions
diff --git a/dashboard/app/main.go b/dashboard/app/main.go
index 583aed704..78aed619f 100644
--- a/dashboard/app/main.go
+++ b/dashboard/app/main.go
@@ -26,6 +26,7 @@ import (
"github.com/google/syzkaller/pkg/hash"
"github.com/google/syzkaller/pkg/html"
"github.com/google/syzkaller/pkg/html/urlutil"
+ "github.com/google/syzkaller/pkg/report"
"github.com/google/syzkaller/pkg/subsystem"
"github.com/google/syzkaller/pkg/vcs"
"golang.org/x/sync/errgroup"
@@ -365,6 +366,7 @@ type uiCommit struct {
type uiBug struct {
Namespace string
Title string
+ ImpactScore int
NumCrashes int64
NumCrashesBad bool
BisectCause BisectStatus
@@ -1938,6 +1940,7 @@ func createUIBug(c context.Context, bug *Bug, state *ReportingState, managers []
uiBug := &uiBug{
Namespace: bug.Namespace,
Title: bug.displayTitle(),
+ ImpactScore: report.TitlesToImpact(bug.Title, bug.AltTitles...),
BisectCause: bug.BisectCause,
BisectFix: bug.BisectFix,
NumCrashes: bug.NumCrashes,
diff --git a/dashboard/app/templates/templates.html b/dashboard/app/templates/templates.html
index 66db3a4e6..f675a0251 100644
--- a/dashboard/app/templates/templates.html
+++ b/dashboard/app/templates/templates.html
@@ -168,6 +168,10 @@ Use of this source code is governed by Apache 2 LICENSE that can be found in the
<th><a onclick="return sortTable(this, 'Kernel', textSort)" href="#">Kernel</a></th>
{{end}}
<th><a onclick="return sortTable(this, 'Title', textSort)" href="#">Title</a></th>
+ <th>
+ <a onclick="return sortTable(this, 'Rank 🛈', numSort)" href="#">Rank</a>
+ {{template "info_link" "https://github.com/google/syzkaller/blob/master/pkg/report/README.md"}}
+ </th>
<th><a onclick="return sortTable(this, 'Repro', reproSort)" href="#">Repro</a></th>
<th><a onclick="return sortTable(this, 'Cause bisect', textSort)" href="#">Cause bisect</a></th>
<th><a onclick="return sortTable(this, 'Fix bisect', textSort)" href="#">Fix bisect</a></th>
@@ -202,6 +206,7 @@ Use of this source code is governed by Apache 2 LICENSE that can be found in the
<span class="bug-label">{{link .Link .Name}}</span>
{{- end}}
</td>
+ <td class="stat">{{$b.ImpactScore}}</td>
<td class="stat">{{formatReproLevel $b.ReproLevel}}</td>
<td class="bisect_status">{{print $b.BisectCause}}</td>
<td class="bisect_status">{{print $b.BisectFix}}</td>