panic: trap type 4, code=0, pc=ffffffff81ea0350 Starting stack trace... panic(ffffffff823be5fc) at panic+0x14c sys/kern/subr_prf.c:218 kerntrap(ffff80002350f840) at kerntrap+0x1d7 sys/arch/amd64/amd64/trap.c:295 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b pfi_ifhead_RB_REMOVE(ffffffff828dce18,ffff800000b15700) at pfi_ifhead_RB_REMOVE+0x50 sys/net/pf_if.c:80 pfi_detach_ifgroup(ffff800000ab8b00) at pfi_detach_ifgroup+0x11b pfi_kif_unref sys/net/pf_if.c:211 [inline] pfi_detach_ifgroup(ffff800000ab8b00) at pfi_detach_ifgroup+0x11b sys/net/pf_if.c:304 if_delgroup(ffff800000abe800,ffff800000ab8b00) at if_delgroup+0x193 sys/net/if.c:2679 if_detach(ffff800000abe800) at if_detach+0x1ab sys/net/if.c:1042 tun_clone_destroy(ffff800000abe800) at tun_clone_destroy+0x1e1 sys/net/if_tun.c:325 if_clone_destroy(ffff80002350faf0) at if_clone_destroy+0x146 sys/net/if.c:1201 tun_dev_close(5d01,7) at tun_dev_close+0x140 sys/net/if_tun.c:476 spec_close(ffff80002350fbc0) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd806edc8008,7,fffffd807f7bf540,ffff8000212c2508) at VOP_CLOSE+0xeb sys/kern/vfs_vops.c:177 vn_closefile(fffffd8069190ef0,ffff8000212c2508) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd8069190ef0,ffff8000212c2508) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd8069190ef0,ffff8000212c2508) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd8069190ef0,ffff8000212c2508) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff8000212c2508) at fdfree+0xf4 sys/kern/kern_descrip.c:1195 exit1(ffff8000212c2508,0,19,1) at exit1+0x320 sys/kern/kern_exit.c:197 postsig(ffff8000212c2508,19) at postsig+0x4ea sigexit sys/kern/kern_sig.c:1486 [inline] postsig(ffff8000212c2508,19) at postsig+0x4ea sys/kern/kern_sig.c:1418 userret(ffff8000212c2508) at userret+0x189 sys/kern/kern_sig.c:1906 syscall(ffff800023510040) at syscall+0x55c mi_syscall_return sys/sys/syscall_mi.h:129 [inline] syscall(ffff800023510040) at syscall+0x55c sys/arch/amd64/amd64/trap.c:588 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff76c0, count: 236 End of stack trace. WARNING: SPL NOT LOWERED ON SYSCALL 3 4 EXIT 0 9 Stopped at savectx+0xb1: movl $0,%gs:0x530 TID PID UID PRFLAGS PFLAGS CPU COMMAND *181409 11184 74 0x100012 0 1 pflogd savectx() at savectx+0xb1 end of kernel end trace frame: 0x7f7ffffe5d10, count: 14 https://www.openbsd.org/ddb.html describes the minimum info required in bug reports. Insufficient info makes it difficult to find and fix bugs.