diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2023-04-03 17:18:57 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <wp32pw@gmail.com> | 2023-04-03 17:43:12 +0200 |
| commit | 7db618d07585536ddb492f9d78f957f4947e74df (patch) | |
| tree | 956388f144d469da1dc08577a6592212d61a9f86 /pkg | |
| parent | c876af630ed88e5a43c68cf141624e3529aa6420 (diff) | |
pkg/subsystem: handle syz_usb_connect$hid
Also make the call point to the "input" subsystem.
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/subsystem/linux/rules.go | 1 | ||||
| -rw-r--r-- | pkg/subsystem/lists/linux.go | 7 |
2 files changed, 5 insertions, 3 deletions
diff --git a/pkg/subsystem/linux/rules.go b/pkg/subsystem/linux/rules.go index 13a1d0983..3f2149af2 100644 --- a/pkg/subsystem/linux/rules.go +++ b/pkg/subsystem/linux/rules.go @@ -37,6 +37,7 @@ var ( "gfs2": {"syz_mount_image$gfs2", "syz_mount_image$gfs2meta"}, "hfs": {"syz_mount_image$hfs", "syz_mount_image$hfsplus"}, "hpfs": {"syz_mount_image$hpfs"}, + "input": {"syz_usb_connect$hid"}, "io-uring": {"syz_io_uring_setup"}, "isofs": {"syz_mount_image$iso9660"}, "jffs2": {"syz_mount_image$jffs2"}, diff --git a/pkg/subsystem/lists/linux.go b/pkg/subsystem/lists/linux.go index 42bad954e..c097c16ca 100644 --- a/pkg/subsystem/lists/linux.go +++ b/pkg/subsystem/lists/linux.go @@ -1864,9 +1864,10 @@ func subsystems_linux() []*Subsystem { } input = Subsystem{ - Name: "input", - Lists: []string{"linux-input@vger.kernel.org"}, - Parents: []*Subsystem{&kernel}, + Name: "input", + Syscalls: []string{"syz_usb_connect$hid"}, + Lists: []string{"linux-input@vger.kernel.org"}, + Parents: []*Subsystem{&kernel}, PathRules: []PathRule{ {IncludeRegexp: "^drivers/hid/amd-sfh-hid/"}, {IncludeRegexp: "^drivers/hid/hid-creative-sb0540\\.c$"}, |
