aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/subsystem/linux
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2023-02-06 17:57:07 +0100
committerAleksandr Nogikh <wp32pw@gmail.com>2023-02-10 14:34:44 +0100
commitc83ca2c9525c3d8309b3c10dc34a416b0b21017f (patch)
tree027add41010a33646d2af6c58858679ed7402a4a /pkg/subsystem/linux
parent2c11641f1503869bc85a9560d94f8187f9665c92 (diff)
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.
Diffstat (limited to 'pkg/subsystem/linux')
-rw-r--r--pkg/subsystem/linux/rules.go8
-rw-r--r--pkg/subsystem/linux/subsystems.go7
2 files changed, 15 insertions, 0 deletions
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,