panic: kernel diagnostic assertion "sc->sc_dev == 0" failed: file "/syzkaller/managers/multicore/kernel/sys/net/if_tun.c", line 314 Starting stack trace... panic(ffffffff830f5f8b) at panic+0x1d0 sys/kern/subr_prf.c:229 __assert(ffffffff830a8e49,ffffffff8307ee0a,13a,ffffffff83088583) at __assert+0x29 tun_clone_destroy(ffff800010fd9800) at tun_clone_destroy+0x38a sys/net/if_tun.c:314 if_clone_destroy(ffff80003729cb50) at if_clone_destroy+0x1d7 sys/net/if.c:1382 tun_dev_close(287e,f) at tun_dev_close+0x1ce sys/net/if_tun.c:520 spec_close(ffff80003729cc20) at spec_close+0x412 VOP_CLOSE(fffffd806a69e2c8,f,fffffd807f7d3478,ffff80003725dc10) at VOP_CLOSE+0x133 sys/kern/vfs_vops.c:156 vn_closefile(fffffd806bd2b0b8,ffff80003725dc10) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd806bd2b0b8,ffff80003725dc10) at vn_closefile+0x12b sys/kern/vfs_vnops.c:609 fdrop(fffffd806bd2b0b8,ffff80003725dc10) at fdrop+0x126 sys/kern/kern_descrip.c:1274 closef(fffffd806bd2b0b8,ffff80003725dc10) at closef+0x192 sys/kern/kern_descrip.c:1258 fdfree(ffff80003725dc10) at fdfree+0x116 sys/kern/kern_descrip.c:1190 exit1(ffff80003725dc10,0,0,1) at exit1+0x57f sys/kern/kern_exit.c:214 sys_exit(ffff80003725dc10,ffff80003729cf90,ffff80003729cee0) at sys_exit+0x1a syscall(ffff80003729cf90) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80003729cf90) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7728b4499b90, count: 242 End of stack trace.