aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/subsystem/lists
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/subsystem/lists')
-rw-r--r--pkg/subsystem/lists/linux_test.go34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkg/subsystem/lists/linux_test.go b/pkg/subsystem/lists/linux_test.go
index 6107ff68f..075a3d26d 100644
--- a/pkg/subsystem/lists/linux_test.go
+++ b/pkg/subsystem/lists/linux_test.go
@@ -97,6 +97,40 @@ syz_usb_connect(0x0, 0x24, &(0x7f0000000140)=ANY=[@ANYBLOB="12010000abbe6740e917
},
expect: []string{"dri"},
},
+ {
+ name: "ntfs bug with one ntfs guilty path",
+ crashes: []*subsystem.Crash{
+ {
+ GuiltyPath: `mm/folio-compat.c`,
+ },
+ {
+ GuiltyPath: `mm/folio-compat.c`,
+ },
+ {
+ GuiltyPath: `mm/folio-compat.c`,
+ },
+ {
+ // By chance just one was correct.
+ GuiltyPath: `fs/ntfs3/frecord.c`,
+ SyzRepro: []byte(`
+# https://syzkaller.appspot.com/bug?id=9a239048a7fff1d8d9b276b240522a2293468dba
+# See https://goo.gl/kgGztJ for information about syzkaller reproducers.
+#{"procs":1,"slowdown":1,"sandbox":"","sandbox_arg":0,"close_fds":false}
+syz_mount_image$ntfs3(&(0x7f000001f740), &(0x7f000001f780)='./file0\x00', 0x0, &(0x7f0000000200)=ANY=[@ANYBLOB="64697363==")
+`),
+ },
+ {
+ GuiltyPath: `mm/folio-compat.c`,
+ SyzRepro: []byte(`
+# https://syzkaller.appspot.com/bug?id=56e9aec9bc3b5378c9b231a3f4b3329cf9f80990
+# See https://goo.gl/kgGztJ for information about syzkaller reproducers.
+#{"procs":1,"slowdown":1,"sandbox":"none","sandbox_arg":0,"tun":true,"netdev":true,"close_fds":true}
+syz_mount_image$ntfs3(&(0x7f000001f740), &(0x7f000001f780)='./file0\x00', 0x0, &(0x7f0000000200)=ANY=[@ANYBLOB="64697363==")
+`),
+ },
+ },
+ expect: []string{"ntfs3"},
+ },
}
for _, test := range tests {
t.Run(test.name, func(t *testing.T) {