From f78ac52957d6ecf72abfb80047e95d1057a78fad Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Thu, 15 Dec 2022 23:43:42 +0100 Subject: pkg/subsystem: store paths for subsystems and cc for paths This will help route filesystem bugs to the right people. --- pkg/subsystem/extract.go | 2 +- pkg/subsystem/maintainers.go | 56 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 pkg/subsystem/maintainers.go (limited to 'pkg/subsystem') diff --git a/pkg/subsystem/extract.go b/pkg/subsystem/extract.go index e29fbab01..4d952011f 100644 --- a/pkg/subsystem/extract.go +++ b/pkg/subsystem/extract.go @@ -107,7 +107,7 @@ var linuxCallToSubsystemsMap = map[string]string{ "syz_mount_image$udf": "udf", "syz_mount_image$ufs": "ufs", "syz_mount_image$v7": "v7", - "syz_mount_image$vfat": "vfat", + "syz_mount_image$vfat": "fat", "syz_mount_image$vxfs": "vxfs", "syz_mount_image$xfs": "xfs", "syz_mount_image$zonefs": "zonefs", diff --git a/pkg/subsystem/maintainers.go b/pkg/subsystem/maintainers.go new file mode 100644 index 000000000..8ae388240 --- /dev/null +++ b/pkg/subsystem/maintainers.go @@ -0,0 +1,56 @@ +// Copyright 2022 syzkaller project authors. All rights reserved. +// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. + +package subsystem + +func LinuxGetMaintainers(subsystemName string) []string { + return linuxSubsystems[subsystemName].cc +} + +type linuxSubsystemInfo struct { + path string + cc []string +} + +// These are taken from Linux v6.1. There will be no need to store them here once we +// begin to automatically parse the MAINTAINERS file. + +// nolint:lll +var linuxSubsystems = map[string]linuxSubsystemInfo{ + "adfs": {path: "fs/adfs/", cc: []string{}}, + "affs": {path: "fs/affs/", cc: []string{"linux-fsdevel@vger.kernel.org", "dsterba@suse.com"}}, + "befs": {path: "fs/befs/", cc: []string{"luisbg@kernel.org", "salah.triki@gmail.com"}}, + "bfs": {path: "fs/bfs/", cc: []string{"aivazian.tigran@gmail.com"}}, + "btrfs": {path: "fs/btrfs/", cc: []string{"josef@toxicpanda.com", "dsterba@suse.com", "linux-btrfs@vger.kernel.org", "clm@fb.com"}}, + "cramfs": {path: "fs/cramfs/", cc: []string{"nico@fluxnic.net"}}, + "efs": {path: "fs/efs/", cc: []string{}}, + "erofs": {path: "fs/erofs/", cc: []string{"xiang@kernel.org", "chao@kernel.org", "linux-erofs@lists.ozlabs.org"}}, + "exfat": {path: "fs/exfat/", cc: []string{"linkinjeon@kernel.org", "sj1557.seo@samsung.com", "linux-fsdevel@vger.kernel.org"}}, + "ext4": {path: "fs/ext4/", cc: []string{"linux-ext4@vger.kernel.org", "tytso@mit.edu", "adilger.kernel@dilger.ca"}}, + "f2fs": {path: "fs/f2fs/", cc: []string{"linux-f2fs-devel@lists.sourceforge.net", "jaegeuk@kernel.org", "chao@kernel.org"}}, + "gfs2": {path: "fs/gfs2/", cc: []string{"cluster-devel@redhat.com", "rpeterso@redhat.com", "agruenba@redhat.com"}}, + "hfs": {path: "fs/hfs/", cc: []string{"linux-fsdevel@vger.kernel.org"}}, + "hfsplus": {path: "fs/hfsplus/", cc: []string{"linux-fsdevel@vger.kernel.org"}}, + "hpfs": {path: "fs/hpfs/", cc: []string{"mikulas@artax.karlin.mff.cuni.cz"}}, + "iso9660": {path: "fs/isofs/", cc: []string{}}, + "jffs2": {path: "fs/jffs2/", cc: []string{"linux-mtd@lists.infradead.org", "dwmw2@infradead.org", "richard@nod.at"}}, + "jfs": {path: "fs/jfs/", cc: []string{"jfs-discussion@lists.sourceforge.net", "shaggy@kernel.org"}}, + "minix": {path: "fs/minix/", cc: []string{}}, + "nilfs2": {path: "fs/nilfs2/", cc: []string{"linux-nilfs@vger.kernel.org", "konishi.ryusuke@gmail.com"}}, + "ntfs": {path: "fs/ntfs/", cc: []string{"linux-ntfs-dev@lists.sourceforge.net", "anton@tuxera.com"}}, + "ntfs3": {path: "fs/ntfs3/", cc: []string{"ntfs3@lists.linux.dev", "almaz.alexandrovich@paragon-software.com"}}, + "ocfs2": {path: "fs/ocfs2/", cc: []string{"ocfs2-devel@oss.oracle.com", "mark@fasheh.com", "jlbec@evilplan.org", "joseph.qi@linux.alibaba.com"}}, + "omfs": {path: "fs/omfs/", cc: []string{"linux-karma-devel@lists.sourceforge.net", "me@bobcopeland.com"}}, + "qnx4": {path: "fs/qnx4/", cc: []string{"al@alarsen.net"}}, + "qnx6": {path: "fs/qnx6/", cc: []string{}}, + "reiserfs": {path: "fs/reiserfs/", cc: []string{"reiserfs-devel@vger.kernel.org"}}, + "romfs": {path: "fs/romfs/", cc: []string{}}, + "squashfs": {path: "fs/squashfs/", cc: []string{"phillip@squashfs.org.uk", "squashfs-devel@lists.sourceforge.net"}}, + "sysv": {path: "fs/sysv/", cc: []string{"hch@infradead.org"}}, + "tmpfs": {path: "mm/shmem.c", cc: []string{"linux-mm@kvack.org", "akpm@linux-foundation.org", "hughd@google.com"}}, + "ubifs": {path: "fs/ubifs/", cc: []string{"linux-mtd@lists.infradead.org", "richard@nod.at"}}, + "udf": {path: "fs/udf/", cc: []string{"jack@suse.com"}}, + "ufs": {path: "fs/ufs/", cc: []string{"dushistov@mail.ru"}}, + "vxfs": {path: "fs/freevxfs/", cc: []string{"hch@infradead.org"}}, + "xfs": {path: "fs/xfs/", cc: []string{"linux-xfs@vger.kernel.org", "djwong@kernel.org"}}, + "zonefs": {path: "fs/zonefs/", cc: []string{"linux-fsdevel@vger.kernel.org", "damien.lemoal@opensource.wdc.com", "naohiro.aota@wdc.com"}}} -- cgit mrf-deployment