From 623305521a130ee29d32df86af67c671c60f61af Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Tue, 18 Mar 2025 03:09:04 +0100 Subject: pkg/mgrconfig: add a sample syzkaller config Add a sample syzkaller config with comments so that we could refer to it in the tutorials. --- pkg/mgrconfig/testdata/qemu-example.cfg | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 pkg/mgrconfig/testdata/qemu-example.cfg (limited to 'pkg') 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 + } +} -- cgit mrf-deployment