panic: kernel diagnostic assertion "sc->sc_dev == 0" failed: file "/syzkaller/managers/multicore/kernel/sys/net/if_tun.c", line 319 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *157474 79585 0 0x2 0 0K ifconfig db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834f59ee) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff835340bc,ffffffff8357c38e,13f,ffffffff8346ffbc) at __assert+0x29 sys/kern/subr_prf.c:-1 tun_clone_destroy(ffff80000155e000) at tun_clone_destroy+0x38a if_clone_destroy(ffff80002a76b5a0) at if_clone_destroy+0x205 sys/net/if.c:1464 ifioctl(ffff800010fdcbd0,80206979,ffff80002a76b5a0,ffff80002a237770) at ifioctl+0x59d sys/net/if.c:2142 sys_ioctl(ffff80002a237770,ffff80002a76b780,ffff80002a76b6d0) at sys_ioctl+0x674 sys/kern/sys_generic.c:-1 syscall(ffff80002a76b780) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a76b780) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7273df9d9910, count: 6 https://www.openbsd.org/ddb.html describes the minimum info required in bug reports. Insufficient info makes it difficult to find and fix bugs. ddb{0}> ddb{0}> set $lines = 0 ddb{0}>