aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/report
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2026-01-12 12:37:14 +0100
committerDmitry Vyukov <dvyukov@google.com>2026-01-12 17:34:20 +0000
commitd7bccd30b388650dc50996a1f81efb9698d0781b (patch)
tree1d9f49a96f4b98a6d32ec7011bb068bf6ce50bb3 /pkg/report
parentebb1853093b2f5c87126f8d2c5a9e17a94049246 (diff)
pkg/aflow/flow/assessment: add UAF moderation workflow
Add workflow that can be used for moderation of UAF bugs (consistent/actionable reports), such UAF bugs can be upstreammed automatically, even if they happened only once and don't have a reproducer.
Diffstat (limited to 'pkg/report')
-rw-r--r--pkg/report/crash/types.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/report/crash/types.go b/pkg/report/crash/types.go
index 915f3b4ae..2a5717d95 100644
--- a/pkg/report/crash/types.go
+++ b/pkg/report/crash/types.go
@@ -79,6 +79,10 @@ func (t Type) IsKASAN() bool {
KASANUseAfterFreeRead, KASANUseAfterFreeWrite, KASANInvalidFree, KASANUnknown}, t)
}
+func (t Type) IsUAF() bool {
+ return slices.Contains([]Type{KASANUseAfterFreeRead, KASANUseAfterFreeWrite}, t)
+}
+
func (t Type) IsKMSAN() bool {
return slices.Contains([]Type{
KMSANUninitValue, KMSANInfoLeak, KMSANUseAfterFreeRead, KMSANUnknown}, t)