aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2025-03-18 03:09:04 +0100
committerAleksandr Nogikh <nogikh@google.com>2025-03-20 04:18:16 +0000
commit623305521a130ee29d32df86af67c671c60f61af (patch)
tree6afc4548136d4bda57a3039720406d91d5efcb6a /pkg
parent9209bc22d7f180ccb6aa6e8d45aec4980dceffc7 (diff)
pkg/mgrconfig: add a sample syzkaller config
Add a sample syzkaller config with comments so that we could refer to it in the tutorials.
Diffstat (limited to 'pkg')
-rw-r--r--pkg/mgrconfig/testdata/qemu-example.cfg27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkg/mgrconfig/testdata/qemu-example.cfg b/pkg/mgrconfig/testdata/qemu-example.cfg
new file mode 100644
index 000000000..44d3a322d
--- /dev/null
+++ b/pkg/mgrconfig/testdata/qemu-example.cfg
@@ -0,0 +1,27 @@
+{
+ "target": "linux/amd64",
+ "http": "0.0.0.0:56741",
+ # !! Replace /syzkaller with the path to the syzkaller checkout.
+ # Workdir can be in whatever folder, keeping it in the checkout is just most convenient.
+ "workdir": "./testdata/syzkaller/workdir",
+ # !! Replace /linux with the path to the kernel checkout.
+ # !! The kernel must be already built.
+ # Here are the kernel config options that facilitate fuzzing: https://github.com/google/syzkaller/blob/master/docs/linux/kernel_configs.md
+ "kernel_obj": "/linux",
+ # !! Replace with the path to the disk image file.
+ # The Buildroot image used by syzbot can be downloaded here: https://storage.googleapis.com/syzkaller/images/buildroot_amd64_2024.09.gz
+ # (Don't forget to uncompress it!).
+ "image": "./testdata/wheezy.img",
+ # !! Replace with the path to the syzkaller checkout.
+ "syzkaller": "./testdata/syzkaller",
+ "procs": 4,
+ "type": "qemu",
+ "vm": {
+ "count": 4,
+ # !! Adjust this path accordingly.
+ "kernel": "/linux/arch/x86/boot/bzImage",
+ # Note that syzkaller will use `count` * `cpu` CPUs and `count` * `mem` RAM.
+ "cpu": 2,
+ "mem": 2048
+ }
+}