[ 289.3452104] panic: kernel diagnostic assertion "dev->dv_detaching == curlwp" failed: file "/syzkaller/managers/ci2-netbsd-kubsan/kernel/sys/kern/subr_autoconf.c", line 2176 [ 289.3671633] cpu0: Begin traceback... [ 289.3843078] vpanic() at netbsd:vpanic+0x2f2 sys/kern/subr_prf.c:293 [ 289.4543071] kern_assert() at netbsd:kern_assert+0x65 sys/arch/amd64/amd64/db_disasm.c:1074 [ 289.5143101] config_detach_commit() at netbsd:config_detach_commit+0xcb sys/kern/subr_autoconf.c:2176 [ 289.5643070] cdev_detached() at netbsd:cdev_detached+0x15d sys/kern/subr_devsw.c:1384 [ 289.6143100] vdevgone() at netbsd:vdevgone+0x125 sys/kern/vfs_subr.c:524 [ 289.6643083] audiodetach() at netbsd:audiodetach+0xb8 sys/dev/audio/audio.c:1371 [ 289.7143101] config_detach() at netbsd:config_detach+0x495 sys/kern/subr_autoconf.c:2037 [ 289.7643081] config_detach_children() at netbsd:config_detach_children+0x83 sys/kern/subr_autoconf.c:2195 [ 289.8243078] pad_detach() at netbsd:pad_detach+0x87 sys/dev/pad/pad.c:251 [ 289.8743091] config_detach() at netbsd:config_detach+0x495 sys/kern/subr_autoconf.c:2037 [ 289.9243094] fops_pad_close() at netbsd:fops_pad_close+0xb7 pad_close sys/dev/pad/pad.c:423 [inline] [ 289.9243094] fops_pad_close() at netbsd:fops_pad_close+0xb7 sys/dev/pad/pad.c:433 [ 289.9743096] closef() at netbsd:closef+0x1cd sys/kern/kern_descrip.c:832 [ 290.0243081] fd_free() at netbsd:fd_free+0x4dc sys/kern/kern_descrip.c:1571 [ 290.0643089] exit1() at netbsd:exit1+0x3a7 sys/kern/kern_exit.c:301 [ 290.1143111] sys_exit() at netbsd:sys_exit+0xd4 sys/kern/kern_exit.c:180 [ 290.1643095] syscall() at netbsd:syscall+0x2da sy_call sys/sys/syscallvar.h:65 [inline] [ 290.1643095] syscall() at netbsd:syscall+0x2da sy_invoke sys/sys/syscallvar.h:94 [inline] [ 290.1643095] syscall() at netbsd:syscall+0x2da sys/arch/x86/x86/syscall.c:138 [ 290.1845977] --- syscall (number 1) --- [ 290.1943139] netbsd:syscall+0x2da: [ 290.1943139] cpu0: End traceback... [ 290.2075026] fatal breakpoint trap in supervisor mode [ 290.2075026] trap type 1 code 0 rip 0xffffffff80221ab5 cs 0x8 rflags 0x246 cr2 0x7c2271bc5460 ilevel 0 rsp 0xffffb880cd606980 [ 290.2236169] curlwp 0xfffff8ed44004900 pid 6023.6023 lowest kstack 0xffffb880cd6022c0 [ 290.2313254] Skipping crash dump on recursive panic [ 290.2313254] panic: UBSan: Undefined Behavior in /syzkaller/managers/ci2-netbsd-kubsan/kernel/sys/dev/wsfb/genfb.c:988:28, member access within null pointer of type 'struct genfb_private' [ 290.2313254] cpu0: Begin traceback... [ 290.2313254] vpanic() at netbsd:vpanic+0x2f2 sys/kern/subr_prf.c:293 [ 290.2313254] Report() at netbsd:Report+0x3b sys/../common/lib/libc/misc/ubsan.c:1352 [ 290.2313254] HandleTypeMismatch() at netbsd:HandleTypeMismatch+0x1fb sys/../common/lib/libc/misc/ubsan.c:429 [ 290.2313254] genfb_enable_polling() at netbsd:genfb_enable_polling+0x17e sys/dev/wsfb/genfb.c:988 [ 290.2313254] x86_genfb_ddb_trap_callback() at netbsd:x86_genfb_ddb_trap_callback+0x39 sys/arch/x86/x86/genfb_machdep.c:97 [ 290.2313254] db_trap() at netbsd:db_trap+0x68 sys/ddb/db_trap.c:73 [ 290.2313254] kdb_trap() at netbsd:kdb_trap+0x1aa sys/arch/amd64/amd64/db_interface.c:251 [ 290.2313254] trap() at netbsd:trap+0x5b2 sys/arch/amd64/amd64/trap.c:315 [ 290.2313254] --- trap (number 1) --- [ 290.2313254] breakpoint() at netbsd:breakpoint+0x5 [ 290.2313254] db_panic() at netbsd:db_panic+0xec sys/ddb/db_panic.c:69 [ 290.2313254] vpanic() at netbsd:vpanic+0x2f2 sys/kern/subr_prf.c:293 [ 290.2313254] kern_assert() at netbsd:kern_assert+0x65 sys/arch/amd64/amd64/db_disasm.c:1074 [ 290.2313254] config_detach_commit() at netbsd:config_detach_commit+0xcb sys/kern/subr_autoconf.c:2176 [ 290.2313254] cdev_detached() at netbsd:cdev_detached+0x15d sys/kern/subr_devsw.c:1384 [ 290.2313254] vdevgone() at netbsd:vdevgone+0x125 sys/kern/vfs_subr.c:524 [ 290.2313254] audiodetach() at netbsd:audiodetach+0xb8 sys/dev/audio/audio.c:1371 [ 290.2313254] config_detach() at netbsd:config_detach+0x495 sys/kern/subr_autoconf.c:2037 [ 290.2313254] config_detach_children() at netbsd:config_detach_children+0x83 sys/kern/subr_autoconf.c:2195 [ 290.2313254] pad_detach() at netbsd:pad_detach+0x87 sys/dev/pad/pad.c:251 [ 290.2313254] config_detach() at netbsd:config_detach+0x495 sys/kern/subr_autoconf.c:2037 [ 290.2313254] fops_pad_close() at netbsd:fops_pad_close+0xb7 pad_close sys/dev/pad/pad.c:423 [inline] [ 290.2313254] fops_pad_close() at netbsd:fops_pad_close+0xb7 sys/dev/pad/pad.c:433 [ 290.2313254] closef() at netbsd:closef+0x1cd sys/kern/kern_descrip.c:832 [ 290.2313254] fd_free() at netbsd:fd_free+0x4dc sys/kern/kern_descrip.c:1571 [ 290.2313254] exit1() at netbsd:exit1+0x3a7 sys/kern/kern_exit.c:301 [ 290.2313254] sys_exit() at netbsd:sys_exit+0xd4 sys/kern/kern_exit.c:180 [ 290.2313254] syscall() at netbsd:syscall+0x2da sy_call sys/sys/syscallvar.h:65 [inline] [ 290.2313254] syscall() at netbsd:syscall+0x2da sy_invoke sys/sys/syscallvar.h:94 [inline] [ 290.2313254] syscall() at netbsd:syscall+0x2da sys/arch/x86/x86/syscall.c:138 [ 290.2313254] --- syscall (number 1) --- [ 290.2313254] netbsd:syscall+0x2da: [ 290.2313254] cpu0: End traceback... [ 290.2313254] fatal breakpoint trap in supervisor mode [ 290.2313254] trap type 1 code 0 rip 0xffffffff80221ab5 cs 0x8 rflags 0x246 cr2 0x7c2271bc5460 ilevel 0x8 rsp 0xffffb880cd606050 [ 290.2313254] curlwp 0xfffff8ed44004900 pid 6023.6023 lowest kstack 0xffffb880cd6022c0 [ 290.2313254] uvm_fault(0xfffff8ed448961c8, 0x0, 1) -> e [ 290.2313254] fatal page fault in supervisor mode [ 290.2313254] trap type 6 code 0 rip 0xffffffff830b6b1b cs 0x8 rflags 0x10217 cr2 0x1e8 ilevel 0x8 rsp 0xffffb880cd605c80 [ 290.2313254] curlwp 0xfffff8ed44004900 pid 6023.6023 lowest kstack 0xffffb880cd6022c0 kernel: page fault trap, code=0 [ 290.2313254] uvm_fault(0xfffff8ed448961c8, 0x0, 1) -> e [ 290.2313254] fatal page fault in supervisor mode [ 290.2313254] trap type 6 code 0 rip 0xffffffff830b6b1b cs 0x8 rflags 0x10217 cr2 0x1e8 ilevel 0x8 rsp 0xffffb880cd6058b0 [ 290.2313254] curlwp 0xfffff8ed44004900 pid 6023.6023 lowest kstack 0xffffb880cd6022c0 kernel: page fault trap, code=0 [ 290.2313254] uvm_fault(0xfffff8ed448961c8, 0x0, 1) -> e [ 290.2313254] fatal page fault in supervisor mode [ 290.2313254] trap type 6 code 0 rip 0xffffffff830b6b1b cs 0x8 rflags 0x10217 cr2 0x1e8 ilevel 0x8 rsp 0xffffb880cd6054e0 [ 290.2313254] curlwp 0xfffff8ed44004900 pid 6023.6023 lowest kstack 0xffffb880cd6022c0 kernel: page fault trap, code=0 [ 290.2313254] uvm_fault(0xfffff8ed448961c8, 0x0, 1) -> e [ 290.2313254] fatal page fault in supervisor mode [ 290.2313254] trap type 6 code 0 rip 0xffffffff830b6b1b cs 0x8 rflags 0x10217 cr2 0x1e8 ilevel 0x8 rsp 0xffffb880cd605110 [ 290.2313254] curlwp 0xfffff8ed44004900 pid 6023.6023 lowest kstack 0xffffb880cd6022c0 kernel: page fault trap, code=0 [ 290.2313254] uvm_fault(0xfffff8ed448961c8, 0x0, 1) -> e [ 290.2313254] fatal page fault in supervisor mode [ 290.2313254] trap type 6 code 0 rip 0xffffffff830b6b1b cs 0x8 rflags 0x10217 cr2 0x1e8 ilevel 0x8 rsp 0xffffb880cd604d40 [ 290.2313254] curlwp 0xfffff8ed44004900 pid 6023.6023 lowest kstack 0xffffb880cd6022c0 kernel: page fault trap, code=0 [ 290.2313254] uvm_fault(0xfffff8ed448961c8, 0x0, 1) -> e [ 290.2313254] fatal page fault in supervisor mode [ 290.2313254] trap type 6 code 0 rip 0xffffffff830b6b1b cs 0x8 rflags 0x10217 cr2 0x1e8 ilevel 0x8 rsp 0xffffb880cd604970 [ 290.2313254] curlwp 0xfffff8ed44004900 pid 6023.6023 lowest kstack 0xffffb880cd6022c0 kernel: page fault trap, code=0