Skip to content

Commit 5ff6a4b

Browse files
committed
syz-cluster: define a separate fs config
When fuzzing fs-related series, enable fs syscalls and use the fs corpus.
1 parent fd2d17b commit 5ff6a4b

File tree

3 files changed

+75
-0
lines changed

3 files changed

+75
-0
lines changed

syz-cluster/pkg/api/api.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ const (
213213
netCorpusURL = `https://storage.googleapis.com/syzkaller/corpus/ci-upstream-net-kasan-gce-corpus.db`
214214
bpfCorpusURL = `https://storage.googleapis.com/syzkaller/corpus/ci-upstream-bpf-kasan-gce-corpus.db`
215215
allCorpusURL = `https://storage.googleapis.com/syzkaller/corpus/ci-upstream-kasan-gce-root-corpus.db`
216+
fsCorpusURL = `https://storage.googleapis.com/syzkaller/corpus/ci2-upstream-fs-corpus.db`
216217
)
217218

218219
// The list is ordered by decreasing importance.
@@ -253,6 +254,18 @@ var FuzzConfigs = []*TriageFuzzConfig{
253254
CorpusURL: netCorpusURL,
254255
},
255256
},
257+
{
258+
EmailLists: []string{
259+
`linux-fsdevel@vger.kernel.org`,
260+
`linux-unionfs@vger.kernel.org`,
261+
`linux-ext4@vger.kernel.org`,
262+
},
263+
KernelConfig: `upstream-apparmor-kasan.config`,
264+
FuzzConfig: FuzzConfig{
265+
Config: `fs`,
266+
CorpusURL: fsCorpusURL,
267+
},
268+
},
256269
{
257270
EmailLists: []string{`linux-mm@kvack.org`},
258271
KernelConfig: `upstream-apparmor-kasan.config`,
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"name": "base",
3+
"target": "linux/amd64",
4+
"kernel_obj": "/base/obj",
5+
"kernel_build_src": "/workdir",
6+
"image": "/base/image",
7+
"syzkaller": "/syzkaller",
8+
"workdir": "/workdir",
9+
"type": "qemu",
10+
"enable_syscalls": [
11+
"syz_mount_image", "open", "openat", "creat", "close", "read",
12+
"pread64", "readv", "preadv", "preadv2", "write", "pwrite64",
13+
"writev", "pwritev", "pwritev2", "lseek", "copy_file_range", "dup",
14+
"dup2", "dup3", "tee", "splice", "vmsplice", "sendfile", "stat",
15+
"lstat", "fstat", "newfstatat", "statx", "poll", "clock_gettime",
16+
"ppoll", "select", "pselect6", "epoll_create", "epoll_create1",
17+
"epoll_ctl", "epoll_wait", "epoll_pwait", "epoll_pwait2", "mmap",
18+
"munmap", "mremap", "msync", "readahead", "fcntl", "mknod", "mknodat",
19+
"chmod", "fchmod", "fchmodat", "chown", "lchown", "fchown",
20+
"fchownat", "fallocate", "faccessat", "faccessat2", "utime", "utimes",
21+
"futimesat", "utimensat", "link", "linkat", "symlinkat", "symlink",
22+
"unlink", "unlinkat", "readlink", "readlinkat", "rename", "renameat",
23+
"renameat2", "mkdir", "mkdirat", "rmdir", "truncate", "ftruncate",
24+
"flock", "fsync", "fdatasync", "sync", "syncfs", "sync_file_range",
25+
"getdents", "getdents64", "name_to_handle_at", "open_by_handle_at",
26+
"chroot", "getcwd", "chdir", "fchdir", "quotactl", "pivot_root",
27+
"statfs", "fstatfs", "syz_open_procfs", "syz_read_part_table",
28+
"mount", "fsopen", "fspick", "fsconfig", "fsmount", "move_mount",
29+
"open_tree", "mount_setattr", "ioctl$FS_*", "ioctl$BTRFS*",
30+
"ioctl$AUTOFS*", "ioctl$EXT4*", "ioctl$F2FS*", "ioctl$FAT*",
31+
"ioctl$VFAT*", "ioctl$FI*"
32+
],
33+
"no_mutate_syscalls": [
34+
"syz_mount_image$btrfs",
35+
"syz_mount_image$ext4",
36+
"syz_mount_image$f2fs",
37+
"syz_mount_image$ntfs",
38+
"syz_mount_image$ocfs2",
39+
"syz_mount_image$xfs"
40+
],
41+
"procs": 3,
42+
"sandbox": "none",
43+
"experimental": {"cover_edges": false},
44+
"vm": {
45+
"count": 4,
46+
"cmdline": "root=/dev/sda1",
47+
"kernel": "/base/kernel",
48+
"cpu": 2,
49+
"mem": 3072,
50+
"qemu_args": "-machine pc-q35-7.1 -enable-kvm -smp 2,sockets=2,cores=1"
51+
}
52+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"name": "patched",
3+
"target": "linux/amd64",
4+
"kernel_obj": "/patched/obj",
5+
"image": "/patched/image",
6+
"vm": {
7+
"count": 10,
8+
"kernel": "/patched/kernel"
9+
}
10+
}

0 commit comments

Comments
 (0)