From 2adcb3ca85ba4ba337ef50f53dd376d5020f6e77 Mon Sep 17 00:00:00 2001 From: Taras Madan Date: Wed, 4 Jun 2025 19:36:44 +0200 Subject: dashboard/app: sort bugs by impact The impact score is deducted from the title. Impact is max(known_titles). --- dashboard/app/main.go | 3 +++ dashboard/app/templates/templates.html | 5 +++++ 2 files changed, 8 insertions(+) (limited to 'dashboard') 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 Kernel {{end}} Title + + Rank + {{template "info_link" "https://github.com/google/syzkaller/blob/master/pkg/report/README.md"}} + Repro Cause bisect Fix bisect @@ -202,6 +206,7 @@ Use of this source code is governed by Apache 2 LICENSE that can be found in the {{link .Link .Name}} {{- end}} + {{$b.ImpactScore}} {{formatReproLevel $b.ReproLevel}} {{print $b.BisectCause}} {{print $b.BisectFix}} -- cgit mrf-deployment