Skip to content

Instantly share code, notes, and snippets.

func createVMPool(targetArch, outputDir string) (*vm.Pool, *mgrconfig.Config, error) {
configData := fmt.Sprintf(`
{
"target": "netbsd/%[1]v",
"workdir": "%[2]v",
"image": "%[2]v/image",
"sshkey": "%[2]v/key",
"ssh_user": "root",
"type": "qemu",
"vm": {
// autogenerated by syzkaller (https://github.com/google/syzkaller)
#define _GNU_SOURCE
#include <arpa/inet.h>
#include <dirent.h>
#include <endian.h>
#include <errno.h>
#include <fcntl.h>
#include <net/if.h>
// autogenerated by syzkaller (https://github.com/google/syzkaller)
#define _GNU_SOURCE
#include <arpa/inet.h>
#include <dirent.h>
#include <endian.h>
#include <errno.h>
#include <fcntl.h>
#include <net/if.h>
[ 0.000000][ T0] Booting Linux on physical CPU 0x0000000000 [0x411fd070]
[ 0.000000][ T0] Linux version 5.11.0-rc5-00037-g2ab38c17aac1 ([email protected]) (aarch64-linux-gnu-gcc (Debian 10.2.0-9) 10.2.0, GNU ld (GNU Binutils for Debian) 2.35.1) #38 SMP PREEMPT Wed Jan 27 16:09:56 CET 2021
[ 0.000000][ T0] Machine model: linux,dummy-virt
[ 0.000000][ T0] efi: UEFI not found.
[ 0.000000][ T0] earlycon: pl11 at MMIO 0x0000000009000000 (options '')
[ 0.000000][ T0] printk: bootconsole [pl11] enabled
[ 0.000000][ T0] NUMA: No NUMA configuration found
[ 0.000000][ T0] NUMA: Faking a node at [mem 0x0000000040000000-0x00000000bfffffff]
[ 0.000000][ T0] NUMA: NODE_DATA [mem 0xbfbff280-0xbfc01fff]
[ 0.000000][ T0] Zone ranges:
# Automatically generated by syz-kconf; DO NOT EDIT.
# Kernel: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git v5.11-rc4
#
# Automatically generated file; DO NOT EDIT.
# Linux/riscv 5.11.0-rc4 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="riscv64-linux-gnu-gcc (Debian 10.2.1-6) 10.2.1 20210110"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=100201
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 5.11.0-rc5 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (Debian 10.2.1-3) 10.2.1 20201224"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=100201
CONFIG_LD_VERSION=235010000
CONFIG_CLANG_VERSION=0
CONFIG_LLD_VERSION=0
#define _GNU_SOURCE
#include <bcc/libbpf.h>
#include <errno.h>
#include <fcntl.h>
#include <linux/bpf.h>
#include <linux/bpf_perf_event.h>
#include <linux/hw_breakpoint.h>
#include <linux/perf_event.h>
#include <pthread.h>
#include <signal.h>
# Automatically generated by syz-kconf; DO NOT EDIT.
# Kernel: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git v5.11-rc4
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm 5.11.0-rc4 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="arm-linux-gnueabi-gcc (Debian 10.2.0-9) 10.2.0"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=100200
------------[ cut here ]------------
WARNING: CPU: 0 PID: 1 at kernel/kthread.c:83 to_kthread kernel/kthread.c:83 [inline]
WARNING: CPU: 0 PID: 1 at kernel/kthread.c:83 kthread_probe_data+0xac/0xb4 kernel/kthread.c:202
Modules linked in:
CPU: 0 PID: 1 Comm: <�E Not tainted 5.10.0-rc1+ #19
Hardware name: ARM-Versatile Express
------------[ cut here ]------------
WARNING: CPU: 0 PID: 1 at kernel/kthread.c:83 to_kthread kernel/kthread.c:83 [inline]
WARNING: CPU: 0 PID: 1 at kernel/kthread.c:83 kthread_probe_data+0xac/0xb4 kernel/kthread.c:202
Modules linked in:
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm 5.11.0-rc4 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="arm-linux-gnueabihf-gcc (Debian 10.2.0-9) 10.2.0"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=100200
CONFIG_LD_VERSION=235010000
CONFIG_CLANG_VERSION=0
CONFIG_LLD_VERSION=0