From c83ca2c9525c3d8309b3c10dc34a416b0b21017f Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Mon, 6 Feb 2023 17:57:07 +0100 Subject: pkg/subsystem/linux: add a list of non-subsystem emails Despite the automatic logic we already have, there are still a few emails that slip the check. For now let's keep them in a separate array, maybe later we'll figure out a pattern. --- pkg/subsystem/linux/rules.go | 8 ++++++++ pkg/subsystem/linux/subsystems.go | 7 +++++++ 2 files changed, 15 insertions(+) (limited to 'pkg/subsystem/linux') diff --git a/pkg/subsystem/linux/rules.go b/pkg/subsystem/linux/rules.go index 946191263..2dabf48fb 100644 --- a/pkg/subsystem/linux/rules.go +++ b/pkg/subsystem/linux/rules.go @@ -6,6 +6,9 @@ package linux type customRules struct { // The mapping between a Linux subsystem name and its system calls. subsystemCalls map[string][]string + // These emails do not represent separate subsystems, even though they seem to + // per all criteria we have. + notSubsystemEmails map[string]struct{} } var ( @@ -50,5 +53,10 @@ var ( "xfs": {"syz_mount_image$xfs"}, "zonefs": {"syz_mount_image$zonefs"}, }, + notSubsystemEmails: map[string]struct{}{ + "linaro-mm-sig@lists.linaro.org": {}, + "samba-technical@lists.samba.org": {}, + "storagedev@microchip.com": {}, + }, } ) diff --git a/pkg/subsystem/linux/subsystems.go b/pkg/subsystem/linux/subsystems.go index 49266a4a5..5653028ca 100644 --- a/pkg/subsystem/linux/subsystems.go +++ b/pkg/subsystem/linux/subsystems.go @@ -83,8 +83,15 @@ func (ctx *linuxCtx) groupByList() []*subsystemCandidate { perList[list] = append(perList[list], record) } } + var exclude map[string]struct{} + if ctx.extraRules != nil { + exclude = ctx.extraRules.notSubsystemEmails + } ret := []*subsystemCandidate{} for email, list := range perList { + if _, skip := exclude[email]; skip { + continue + } ret = append(ret, &subsystemCandidate{ commonEmail: email, records: list, -- cgit mrf-deployment