assert failed: error Mon Jul 4 15:32[ 6.4964163] panic: kernel diagnostic assertion "error" failed: file "/syzkaller/jobs/netbsd/kernel/sys/kern/tty.c", line 2281 :22 UTC 2022 [ 6.5149991] cpu0: Begin traceback... [ 6.5173325] vpanic() at netbsd:vpanic+0x282 sys/kern/subr_prf.c:293 [ 6.5363851] _sub_D_65535_0() at netbsd:_sub_D_65535_0+-0x23de8 [ 6.5563869] ttwrite() at netbsd:ttwrite+0x9ea sys/kern/tty.c:2282 [ 6.5763884] comwrite() at netbsd:comwrite+0xc0 sys/dev/ic/com.c:1260 [ 6.6063897] cdev_write() at netbsd:cdev_write+0x1bd sys/kern/subr_devsw.c:1207 [ 6.6263854] cnwrite() at netbsd:cnwrite+0x8d sys/dev/cons.c:191 [ 6.6463867] cdev_write() at netbsd:cdev_write+0x1bd sys/kern/subr_devsw.c:1207 [ 6.6663860] spec_write() at netbsd:spec_write+0x26d sys/miscfs/specfs/spec_vnops.c:1189 [ 6.6863875] VOP_WRITE() at netbsd:VOP_WRITE+0x20b sys/kern/vnode_if.c:824 [ 6.7063895] vn_write() at netbsd:vn_write+0x25d sys/kern/vfs_vnops.c:693 [ 6.7363871] dofilewrite() at netbsd:dofilewrite+0x1cf sys/kern/sys_generic.c:351 [ 6.7563881] sys_write() at netbsd:sys_write+0x9c sys/kern/sys_generic.c:319 [ 6.7763861] syscall() at netbsd:syscall+0x25a sy_call sys/sys/syscallvar.h:65 [inline] [ 6.7763861] syscall() at netbsd:syscall+0x25a sy_invoke sys/sys/syscallvar.h:94 [inline] [ 6.7763861] syscall() at netbsd:syscall+0x25a sys/arch/x86/x86/syscall.c:138 [ 6.7863865] --- syscall (number 4) --- [ 6.7863865] netbsd:syscall+0x25a: [ 6.7863865] cpu0: End traceback... [ 6.7863865] fatal breakpoint trap in supervisor mode [ 6.7966742] trap type 1 code 0 rip 0xffffffff80220a4d cs 0x8 rflags 0x282 cr2 0x7a379081e496 ilevel 0 rsp 0xffffd5819d7e8610 [ 6.7966742] curlwp 0xffffd58012a40780 pid 202.202 lowest kstack 0xffffd5819d7e12c0 Stopped in pid 202.202 (sh) at netbsd:breakpoint+0x5: leave breakpoint() at netbsd:breakpoint+0x5 db_panic() at netbsd:db_panic+0x105 sys/ddb/db_panic.c:69 vpanic() at netbsd:vpanic+0x282 sys/kern/subr_prf.c:293 _sub_D_65535_0() at netbsd:_sub_D_65535_0+-0x23de8 ttwrite() at netbsd:ttwrite+0x9ea sys/kern/tty.c:2282 comwrite() at netbsd:comwrite+0xc0 sys/dev/ic/com.c:1260 cdev_write() at netbsd:cdev_write+0x1bd sys/kern/subr_devsw.c:1207 cnwrite() at netbsd:cnwrite+0x8d sys/dev/cons.c:191 cdev_write() at netbsd:cdev_write+0x1bd sys/kern/subr_devsw.c:1207 spec_write() at netbsd:spec_write+0x26d sys/miscfs/specfs/spec_vnops.c:1189 VOP_WRITE() at netbsd:VOP_WRITE+0x20b sys/kern/vnode_if.c:824 vn_write() at netbsd:vn_write+0x25d sys/kern/vfs_vnops.c:693 dofilewrite() at netbsd:dofilewrite+0x1cf sys/kern/sys_generic.c:351 sys_write() at netbsd:sys_write+0x9c sys/kern/sys_generic.c:319 syscall() at netbsd:syscall+0x25a sy_call sys/sys/syscallvar.h:65 [inline] syscall() at netbsd:syscall+0x25a sy_invoke sys/sys/syscallvar.h:94 [inline] syscall() at netbsd:syscall+0x25a sys/arch/x86/x86/syscall.c:138 --- syscall (number 4) --- netbsd:syscall+0x25a: ds 0 es 0 fs 85d0 gs eb06 rdi 5 --db_more-- failed to run ["ssh" "-p" "22" "-F" "/dev/null" "-o" "UserKnownHostsFile=/dev/null" "-o" "BatchMode=yes" "-o" "IdentitiesOnly=yes" "-o" "StrictHostKeyChecking=no" "-o" "ConnectTimeout=10" "-i" "/syzkaller/jobs/netbsd/workdir/image/key" "root@10.128.0.2" "pwd"]: exit status 255 ssh: connect to host 10.128.0.2 port 22: Connection timed out Pseudo-terminal will not be allocated because stdin is not a terminal. Warning: Permanently added '[ssh-serialport.googleapis.com]:9600,[216.239.38.127]:9600' (RSA) to the list of known hosts. serialport: Connected to syzkaller.us-central1-c.ci2-netbsd-test-job-test-job-0 port 1 (session ID: c20fd9023ae5defdd12cac89836aece360756c2a62745aa5b7caacb2070bd3ad, active connections: 1). SeaBIOS (version 1.8.2-google) Total RAM Size = 0x0000000200000000 = 8192 MiB CPUs found: 2 Max CPUs supported: 2 SeaBIOS (version 1.8.2-google) Machine UUID 4c8100fb-4dab-0e41-a0cc-5e91db003a95 found virtio-scsi at 0:3 virtio-scsi vendor='Google' product='PersistentDisk' rev='1' type=0 removable=0 virtio-scsi blksize=512 sectors=4194304 = 2048 MiB drive 0x000f2700: PCHS=0/0/0 translation=lba LCHS=520/128/63 s=4194304 Sending Seabios boot VM event. Booting from Hard Disk 0... >> NetBSD/x86 BIOS Boot, Revision 5.11 (Thu Jun 11 19:20:47 UTC 2020) (from NetBSD 9.99.65) >> Memory: 639/3144640 k 1. Boot normally 2. Boot single user 3. Drop to boot prompt Choose an option; RETURN for default; SPACE to stop countdown. Option 1 will be chosen in 5 seconds. 4 seconds. 3 seconds. 2 seconds. 1 seconds. 0 seconds. 0 seconds. command(s): rndseed /var/db/entropy-file;boot default boot twice, skipping... |/-\|/-\53005376|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/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\|/-\|/-\|/-\|/-\|/-\|/-\|]=0x3665890 /-\|/-\|/-\|/-\|/-\|/-\|Loading /var/db/entropy-file [ 1.0000000] cpu_rng: rdrand/rdseed [ 1.0000000] entropy: ready [ 1.0000000] entropy: entering seed from bootloader with 256 bits of entropy [ 1.0000000] ksyms: checking .text [ 1.0000000] ksyms: checking .rodata.hotpatch [ 1.0000000] ksyms: checking .rodata [ 1.0000000] ksyms: checking .eh_frame [ 1.0000000] ksyms: checking link_set_x86_hotpatch_descriptors [ 1.0000000] ksyms: checking link_set_sdt_argtypes_set [ 1.0000000] ksyms: checking link_set_sdt_probes_set [ 1.0000000] ksyms: checking link_set_sdt_providers_set [ 1.0000000] ksyms: checking link_set_modules [ 1.0000000] ksyms: checking link_set_sysctl_funcs [ 1.0000000] ksyms: checking link_set_acpi_device_calls [ 1.0000000] ksyms: checking link_set_evcnts [ 1.0000000] ksyms: checking link_set_linux_module_param_desc [ 1.0000000] ksyms: checking link_set_linux_module_param_info [ 1.0000000] ksyms: checking link_set_domains [ 1.0000000] ksyms: checking link_set_ieee80211_funcs [ 1.0000000] ksyms: checking link_set_ah_chips [ 1.0000000] ksyms: checking link_set_ah_rfs [ 1.0000000] ksyms: checking link_set_dkwedge_methods [ 1.0000000] ksyms: checking link_set_prop_linkpools [ 1.0000000] ksyms: checking .data [ 1.0000000] ksyms: checking .dtors [ 1.0000000] ksyms: checking .data.cacheline_aligned [ 1.0000000] ksyms: checking .data.read_mostly [ 1.0000000] ksyms: checking .bss [ 1.0000000] ksyms: checking .note.netbsd.ident [ 1.0000000] ksyms: checking .note.Xen [ 1.0000000] ksyms: checking .ident [ 1.0000000] ksyms: checking .comment [ 1.0000000] ksyms: checking .gnu_debuglink [ 1.0000000] ksyms: checking .symtab [ 1.0000000] ksyms: checking .strtab [ 1.0000000] ksyms: checking .shstrtab [ 1.0000000] Loaded initial symtab at 0xffffffff83600af8, strtab at 0xffffffff837737c0, # entries 63283 [ 1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, [ 1.0000000] 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, [ 1.0000000] 2018, 2019, 2020, 2021, 2022 [ 1.0000000] The NetBSD Foundation, Inc. All rights reserved. [ 1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993 [ 1.0000000] The Regents of the University of California. All rights reserved. [ 1.0000000] NetBSD 9.99.98 (GENERIC_SYZKALLER) #0: Mon Jul 4 15:28:49 UTC 2022 [ 1.0000000] root@ci2:/syzkaller/jobs/netbsd/kernel/sys/arch/amd64/compile/obj/GENERIC_SYZKALLER [ 1.0000000] total memory = 8191 MB [ 1.0000000] avail memory = 7088 MB [ 1.0000030] mainbus0 (root) [ 1.0000030] ACPI: RSDP 0x00000000000F2740 000014 (v00 Google) [ 1.0000030] ACPI: RSDT 0x00000000BFFFFF90 000038 (v01 Google GOOGRSDT 00000001 GOOG 00000001) [ 1.0000030] ACPI: FACP 0x00000000BFFFF330 0000F4 (v02 Google GOOGFACP 00000001 GOOG 00000001) [ 1.0000030] ACPI: DSDT 0x00000000BFFFD8C0 001A64 (v01 Google GOOGDSDT 00000001 GOOG 00000001) [ 1.0000030] ACPI: FACS 0x00000000BFFFD880 000040 [ 1.0000030] ACPI: SRAT 0x00000000BFFFFE60 0000C8 (v03 Google GOOGSRAT 00000001 GOOG 00000001) [ 1.0000030] ACPI: APIC 0x00000000BFFFFDB0 000076 (v05 Google GOOGAPIC 00000001 GOOG 00000001) [ 1.0000030] ACPI: SSDT 0x00000000BFFFF430 000980 (v01 Google GOOGSSDT 00000001 GOOG 00000001) [ 1.0000030] ACPI: WAET 0x00000000BFFFFE30 000028 (v01 Google GOOGWAET 00000001 GOOG 00000001) [ 1.0000030] ACPI: 2 ACPI AML tables successfully acquired and loaded [ 1.0000030] ioapic0 at mainbus0 apid 0 [ 1.0000030] cpu0 at mainbus0 apid 0 [ 1.0000030] cpu0: Intel(R) Xeon(R) CPU @ 2.20GHz, id 0x406f0 [ 1.0000030] cpu0: node 0, package 0, core 0, smt 0 [ 1.0000030] cpu1 at mainbus0 apid 1 [ 1.0000030] cpu1: Intel(R) Xeon(R) CPU @ 2.20GHz, id 0x406f0 [ 1.0000030] cpu1: node 0, package 0, core 0, smt 1 [ 1.0000030] acpi0 at mainbus0: Intel ACPICA 20211217 [ 1.0000030] acpi0: fixed power button present [ 1.0000030] acpi0: fixed sleep button present [ 1.0049302] pckbc1 at acpi0 (KBD, PNP0303) (kbd port): io 0x60,0x64 irq 1 [ 1.0049302] pckbc2 at acpi0 (MOU, PNP0F13) (aux port): irq 12 [ 1.0049302] com0 at acpi0 (COM1, PNP0501-1): io 0x3f8-0x3ff irq 4 [ 1.0049302] com0: ns16550a, 16-byte FIFO [ 1.0049302] com0: console [ 1.0049302] com1 at acpi0 (COM2, PNP0501-2): io 0x2f8-0x2ff irq 3 [ 1.0049302] com1: ns16550a, 16-byte FIFO [ 1.0049302] com2 at acpi0 (COM3, PNP0501-3): io 0x3e8-0x3ef irq 6 [ 1.0049302] com2: ns16550a, 16-byte FIFO [ 1.0049302] com3 at acpi0 (COM4, PNP0501-4): io 0x2e8-0x2ef irq 7 [ 1.0049302] com3: ns16550a, 16-byte FIFO [ 1.0049302] PEVT (QEMU0001) at acpi0 not configured [ 1.0049302] ACPI: Enabled 16 GPEs in block 00 to 0F [ 1.0049302] pckbd0 at pckbc1 (kbd slot) [ 1.0049302] pckbc1: using irq 1 for kbd slot [ 1.0049302] wskbd0 at pckbd0 mux 1 [ 1.0049302] pms0 at pckbc1 (aux slot) [ 1.0049302] pckbc1: using irq 12 for aux slot [ 1.0049302] wsmouse0 at pms0 mux 0 [ 1.0049302] pci0 at mainbus0 bus 0: configuration mode 1 [ 1.0049302] pchb0 at pci0 dev 0 function 0: Intel 82441FX (PMC) PCI and Memory Controller (rev. 0x02) [ 1.0049302] pcib0 at pci0 dev 1 function 0: Intel 82371AB (PIIX4) PCI-ISA Bridge (rev. 0x03) [ 1.0049302] piixpm0 at pci0 dev 1 function 3: Intel 82371AB (PIIX4) Power Management Controller (rev. 0x03) [ 1.0049302] piixpm0: SMBus disabled [ 1.0049302] virtio0 at pci0 dev 3 function 0 [ 1.0049302] virtio0: SCSI device (rev. 0x00) [ 1.0049302] vioscsi0 at virtio0: features: 0 [ 1.0049302] vioscsi0: cmd_per_lun 256 qsize 8192 seg_max 64 max_target 253 max_lun 1 [ 1.0049302] virtio0: config interrupting at msix0 vec 0 [ 1.0049302] virtio0: queues interrupting at msix0 vec 1 [ 1.0049302] scsibus0 at vioscsi0: 254 targets, 2 luns per target [ 1.0049302] virtio1 at pci0 dev 4 function 0 [ 1.0049302] virtio1: network device (rev. 0x00) [ 1.0049302] vioif0 at virtio1: features: 0x20030020 [ 1.0049302] vioif0: Ethernet address 42:01:0a:80:00:02 [ 1.0049302] virtio1: config interrupting at msix1 vec 0 [ 1.0049302] virtio1: queues interrupting at msix1 vec 1 [ 1.0049302] genfb0 at pci0 dev 5 function 0: vendor 1ae0 product a002 (rev. 0x01) [ 1.0049302] virtio2 at pci0 dev 6 function 0 [ 1.0049302] virtio2: memory balloon device (rev. 0x00) [ 1.0049302] viomb0 at virtio2: features: 0x1 [ 1.0049302] virtio2: interrupting at ioapic0 pin 10 [ 1.0049302] virtio3 at pci0 dev 7 function 0 [ 1.0049302] virtio3: entropy device (rev. 0x00) [ 1.0049302] viornd0 at virtio3: features: 0 [ 1.0049302] virtio3: interrupting at ioapic0 pin 11 [ 1.0049302] isa0 at pcib0 [ 1.0049302] attimer0 at isa0 port 0x40-0x43 [ 1.0049302] pcppi0 at isa0 port 0x61 [ 1.0049302] spkr0 at pcppi0: PC Speaker [ 1.0049302] wsbell at spkr0 not configured [ 1.0049302] midi0 at pcppi0: PC speaker [ 1.0049302] sysbeep0 at pcppi0 [ 1.0049302] attimer0: attached to pcppi0 [ 1.0049302] acpicpu0 at cpu0: ACPI CPU [ 1.0049302] acpicpu1 at cpu1: ACPI CPU [ 1.8108781] cpu0 has 2 core siblings: cpu1 cpu0 [ 1.8231872] cpu0 has 2 pkg siblings: cpu1 cpu0 [ 1.8231872] cpu0 has 1 1st siblings: cpu0 [ 1.8335274] cpu0 first in package: cpu0 [ 1.8335274] cpu1 has 2 core siblings: cpu0 cpu1 [ 1.8421056] cpu1 has 2 pkg siblings: cpu0 cpu1 [ 1.8421056] cpu1 has 1 1st siblings: cpu0 [ 1.8515805] cpu1 first in package: cpu0 [ 2.0079266] sd0 at scsibus0 target 1 lun 0: disk fixed [ 2.0263741] sd0: fabricating a geometry [ 2.0263741] sd0: 2048 MB, 2048 cyl, 64 head, 32 sec, 512 bytes/sect x 4194304 sectors [ 2.0463767] sd0: fabricating a geometry [ 2.0563746] dk0 at sd0: "49b813d1-8009-4c4f-b3e1-2cc288366ecc", 2097085 blocks at 64, type: ffs [ 2.0696080] dk1 at sd0: "2a5f9479-33b7-499d-8cc4-f8d9ae0937b7", 2097119 blocks at 2097152, type: swap [ 2.0795348] sd0: async, 8-bit transfers, tagged queueing [ 2.5563684] usb0 at vhci0: USB revision 2.0 [ 2.5764142] uhub0 at usb0: NetBSD (0x0000) VHCI root hub (0x0000), class 9/0, rev 2.00/1.00, addr 1 [ 2.9463845] usb1 at vhci1: USB revision 2.0 [ 2.9764060] uhub1 at usb1: NetBSD (0x0000) VHCI root hub (0x0000), class 9/0, rev 2.00/1.00, addr 1 [ 3.3463758] usb2 at vhci2: USB revision 2.0 [ 3.3764451] uhub2 at usb2: NetBSD (0x0000) VHCI root hub (0x0000), class 9/0, rev 2.00/1.00, addr 1 [ 3.7463759] usb3 at vhci3: USB revision 2.0 [ 3.7664136] uhub3 at usb3: NetBSD (0x0000) VHCI root hub (0x0000), class 9/0, rev 2.00/1.00, addr 1 [ 4.1363780] usb4 at vhci4: USB revision 2.0 [ 4.1564044] uhub4 at usb4: NetBSD (0x0000) VHCI root hub (0x0000), class 9/0, rev 2.00/1.00, addr 1 [ 4.5263788] usb5 at vhci5: USB revision 2.0 [ 4.5464106] uhub5 at usb5: NetBSD (0x0000) VHCI root hub (0x0000), class 9/0, rev 2.00/1.00, addr 1 [ 4.9163797] usb6 at vhci6: USB revision 2.0 [ 4.9364072] uhub6 at usb6: NetBSD (0x0000) VHCI root hub (0x0000), class 9/0, rev 2.00/1.00, addr 1 [ 5.3063858] usb7 at vhci7: USB revision 2.0 [ 5.3364145] uhub7 at usb7: NetBSD (0x0000) VHCI root hub (0x0000), class 9/0, rev 2.00/1.00, addr 1 [ 5.3964080] boot device: sd0 [ 5.3964080] root on dk0 dumps on dk1 [ 5.4063800] dump_misc_init: max_paddr = 0x240000000 [ 5.4201757] mountroot: trying lfs... [ 5.4291911] mountroot: trying ffs... [ 5.4864188] root file system type: ffs [ 5.4864188] kern.module.path=/stand/amd64/9.99.98/modules [ 5.5008695] clock: unknown CMOS layout [ 5.5664217] init: copying out path `/sbin/init' 11 Mon Jul 4 15:32[ 6.4964163] panic: kernel diagnostic assertion "error" failed: file "/syzkaller/jobs/netbsd/kernel/sys/kern/tty.c", line 2281 :22 UTC 2022 [ 6.5149991] cpu0: Begin traceback... [ 6.5173325] vpanic() at netbsd:vpanic+0x282 [ 6.5363851] _sub_D_65535_0() at netbsd:_sub_D_65535_0+-0x23de8 [ 6.5563869] ttwrite() at netbsd:ttwrite+0x9ea [ 6.5763884] comwrite() at netbsd:comwrite+0xc0 [ 6.6063897] cdev_write() at netbsd:cdev_write+0x1bd [ 6.6263854] cnwrite() at netbsd:cnwrite+0x8d [ 6.6463867] cdev_write() at netbsd:cdev_write+0x1bd [ 6.6663860] spec_write() at netbsd:spec_write+0x26d [ 6.6863875] VOP_WRITE() at netbsd:VOP_WRITE+0x20b [ 6.7063895] vn_write() at netbsd:vn_write+0x25d [ 6.7363871] dofilewrite() at netbsd:dofilewrite+0x1cf [ 6.7563881] sys_write() at netbsd:sys_write+0x9c [ 6.7763861] syscall() at netbsd:syscall+0x25a [ 6.7863865] --- syscall (number 4) --- [ 6.7863865] netbsd:syscall+0x25a: [ 6.7863865] cpu0: End traceback... [ 6.7863865] fatal breakpoint trap in supervisor mode [ 6.7966742] trap type 1 code 0 rip 0xffffffff80220a4d cs 0x8 rflags 0x282 cr2 0x7a379081e496 ilevel 0 rsp 0xffffd5819d7e8610 [ 6.7966742] curlwp 0xffffd58012a40780 pid 202.202 lowest kstack 0xffffd5819d7e12c0 Stopped in pid 202.202 (sh) at netbsd:breakpoint+0x5: leave breakpoint() at netbsd:breakpoint+0x5 db_panic() at netbsd:db_panic+0x105 vpanic() at netbsd:vpanic+0x282 _sub_D_65535_0() at netbsd:_sub_D_65535_0+-0x23de8 ttwrite() at netbsd:ttwrite+0x9ea comwrite() at netbsd:comwrite+0xc0 cdev_write() at netbsd:cdev_write+0x1bd cnwrite() at netbsd:cnwrite+0x8d cdev_write() at netbsd:cdev_write+0x1bd spec_write() at netbsd:spec_write+0x26d VOP_WRITE() at netbsd:VOP_WRITE+0x20b vn_write() at netbsd:vn_write+0x25d dofilewrite() at netbsd:dofilewrite+0x1cf sys_write() at netbsd:sys_write+0x9c syscall() at netbsd:syscall+0x25a --- syscall (number 4) --- netbsd:syscall+0x25a: ds 0 es 0 fs 85d0 gs eb06 rdi 5 --db_more-- syzkaller build log: go env (err=) GO111MODULE="auto" GOARCH="amd64" GOBIN="" GOCACHE="/syzkaller/.cache/go-build" GOENV="/syzkaller/.config/go/env" GOEXE="" GOEXPERIMENT="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOINSECURE="" GOMODCACHE="/syzkaller/jobs/netbsd/gopath/pkg/mod" GONOPROXY="" GONOSUMDB="" GOOS="linux" GOPATH="/syzkaller/jobs/netbsd/gopath" GOPRIVATE="" GOPROXY="https://proxy.golang.org,direct" GOROOT="/usr/local/go" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64" GOVCS="" GOVERSION="go1.17" GCCGO="gccgo" AR="ar" CC="gcc" CXX="g++" CGO_ENABLED="1" GOMOD="/syzkaller/jobs/netbsd/gopath/src/github.com/google/syzkaller/go.mod" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build2139974712=/tmp/go-build -gno-record-gcc-switches" git status (err=) HEAD detached at a7dab6385 nothing to commit, working tree clean go list -f '{{.Stale}}' ./sys/syz-sysgen | grep -q false || go install ./sys/syz-sysgen make .descriptions bin/syz-sysgen touch .descriptions GOOS=netbsd GOARCH=amd64 go build "-ldflags=-s -w -X github.com/google/syzkaller/prog.GitRevision=a7dab6385c1d95547a88e22577fb56fbcd5c37eb -X 'github.com/google/syzkaller/prog.gitRevisionDate=20220205-085958'" "-tags=syz_target syz_os_netbsd syz_arch_amd64 " -o ./bin/netbsd_amd64/syz-fuzzer github.com/google/syzkaller/syz-fuzzer GOOS=netbsd GOARCH=amd64 go build "-ldflags=-s -w -X github.com/google/syzkaller/prog.GitRevision=a7dab6385c1d95547a88e22577fb56fbcd5c37eb -X 'github.com/google/syzkaller/prog.gitRevisionDate=20220205-085958'" "-tags=syz_target syz_os_netbsd syz_arch_amd64 " -o ./bin/netbsd_amd64/syz-execprog github.com/google/syzkaller/tools/syz-execprog GOOS=netbsd GOARCH=amd64 go build "-ldflags=-s -w -X github.com/google/syzkaller/prog.GitRevision=a7dab6385c1d95547a88e22577fb56fbcd5c37eb -X 'github.com/google/syzkaller/prog.gitRevisionDate=20220205-085958'" "-tags=syz_target syz_os_netbsd syz_arch_amd64 " -o ./bin/netbsd_amd64/syz-stress github.com/google/syzkaller/tools/syz-stress mkdir -p ./bin/netbsd_amd64 /syzkaller/shared/netbsd/tools/bin/x86_64--netbsd-g++ -o ./bin/netbsd_amd64/syz-executor executor/executor.cc \ -m64 --sysroot /syzkaller/shared/netbsd/dest/ -O2 -pthread -Wall -Werror -Wparentheses -Wframe-larger-than=16384 -fpermissive -w -DGOOS_netbsd=1 -DGOARCH_amd64=1 \ -DHOSTGOOS_linux=1 -DGIT_REVISION=\"a7dab6385c1d95547a88e22577fb56fbcd5c37eb\"