panic: kernel diagnostic assertion "sc->sc_dev == 0" failed: file "/syzkaller/managers/main/kernel/sys/net/if_tun.c", line 319 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *221680 24402 0 0x2 0 0 ifconfig db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834b1a0d) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff834ee761,ffffffff8342b4a2,13f,ffffffff83434eb3) at __assert+0x29 sys/kern/subr_prf.c:-1 tun_clone_destroy(ffff80000160b000) at tun_clone_destroy+0x32d if_clone_destroy(ffff80002a7edbc0) at if_clone_destroy+0x1d5 sys/net/if.c:1464 sys_ioctl(ffff80003c503a10,ffff80002a7edd90,ffff80002a7edce0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80002a7edd90) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a7edd90) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x727deadef7a0, count: 7 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic *cpu0: kernel diagnostic assertion "sc->sc_dev == 0" failed: file "/syzkaller/managers/main/kernel/sys/net/if_tun.c", line 319 ddb> show kasan No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834b1a0d) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff834ee761,ffffffff8342b4a2,13f,ffffffff83434eb3) at __assert+0x29 sys/kern/subr_prf.c:-1 tun_clone_destroy(ffff80000160b000) at tun_clone_destroy+0x32d if_clone_destroy(ffff80002a7edbc0) at if_clone_destroy+0x1d5 sys/net/if.c:1464 sys_ioctl(ffff80003c503a10,ffff80002a7edd90,ffff80002a7edce0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80002a7edd90) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a7edd90) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x727deadef7a0, count: -8 ddb>