uvm_fault(0xfffff60070ad07b8, 0x6aa6827e, 0, 2) -> e kernel: page fault trap, code=2 Stopped at if_delgroup+0x159: movq %rax,0(%rcx) TID PID UID PRFLAGS PFLAGS CPU COMMAND if_delgroup(ffff80000164d000,ffff8000015a3900) at if_delgroup+0x159 sys/net/if.c:3142 if_detach(ffff80000164d000) at if_detach+0x34b sys/net/if.c:1317 tun_clone_destroy(ffff80000164d000) at tun_clone_destroy+0x2ce sys/net/if_tun.c:343 if_clone_destroy(ffff80003c405d30) at if_clone_destroy+0x205 sys/net/if.c:1479 tun_dev_close(5d03,7) at tun_dev_close+0x1d9 sys/net/if_tun.c:526 spec_close(ffff80003c405df0) at spec_close+0x417 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffff6006e31a028,7,fffff600097fd7b8,ffff80002a2fc7f8) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffff6006d6ddab8,ffff80002a2fc7f8) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffff6006d6ddab8,ffff80002a2fc7f8) at vn_closefile+0x12b sys/kern/vfs_vnops.c:621 fdrop(fffff6006d6ddab8,ffff80002a2fc7f8) at fdrop+0x121 sys/kern/kern_descrip.c:1281 closef(fffff6006d6ddab8,ffff80002a2fc7f8) at closef+0x192 sys/kern/kern_descrip.c:1265 fdfree(ffff80002a2fc7f8) at fdfree+0x116 sys/kern/kern_descrip.c:1196 exit1(ffff80002a2fc7f8,43,0,1) at exit1+0x595 sys/kern/kern_exit.c:215 sys_exit(ffff80002a2fc7f8,ffff80003c406160,ffff80003c4060b0) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80003c406160) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c406160) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:791 end trace frame: 0xffff80003c4061e0, count: 0 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}> set $maxwidth = 0 ddb{0}> show panic *cpu0: uvm_fault(0xfffff60070ad07b8, 0x6aa6827e, 0, 2) -> e ddb{0}> show kasan No such command ddb{0}> trace if_delgroup(ffff80000164d000,ffff8000015a3900) at if_delgroup+0x159 sys/net/if.c:3142 if_detach(ffff80000164d000) at if_detach+0x34b sys/net/if.c:1317 tun_clone_destroy(ffff80000164d000) at tun_clone_destroy+0x2ce sys/net/if_tun.c:343 if_clone_destroy(ffff80003c405d30) at if_clone_destroy+0x205 sys/net/if.c:1479 tun_dev_close(5d03,7) at tun_dev_close+0x1d9 sys/net/if_tun.c:526 spec_close(ffff80003c405df0) at spec_close+0x417 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffff6006e31a028,7,fffff600097fd7b8,ffff80002a2fc7f8) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffff6006d6ddab8,ffff80002a2fc7f8) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffff6006d6ddab8,ffff80002a2fc7f8) at vn_closefile+0x12b sys/kern/vfs_vnops.c:621 fdrop(fffff6006d6ddab8,ffff80002a2fc7f8) at fdrop+0x121 sys/kern/kern_descrip.c:1281 closef(fffff6006d6ddab8,ffff80002a2fc7f8) at closef+0x192 sys/kern/kern_descrip.c:1265 fdfree(ffff80002a2fc7f8) at fdfree+0x116 sys/kern/kern_descrip.c:1196 exit1(ffff80002a2fc7f8,43,0,1) at exit1+0x595 sys/kern/kern_exit.c:215 sys_exit(ffff80002a2fc7f8,ffff80003c406160,ffff80003c4060b0) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80003c406160) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c406160) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7ca73387bd30, count: -15 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff80003c405c20 rbx 0xffff8000015a3930 rdx 0xffff80000160ec88 rcx 0x6aa6827e rax 0xffff80000160ec80 r8 0x101010101010101 r9 0x8080808080808080 r10 0xb0e3a9acbdef18dc r11 0x730067c61a75eba1 r12 0xffff80000164d000 r13 0xffff800001613f00 r14 0xffff800001613a20 r15 0xffff8000015a3900 rip 0xffffffff832958e9 if_delgroup+0x159 cs 0x8 rflags 0x10282 __ALIGN_SIZE+0xf282 rsp 0xffff80003c405be0 ss 0x10 if_delgroup+0x159: movq %rax,0(%rcx) ddb{0}> show proc PROC (syz-executor) tid=498370 pid=72855 tcnt=0 stat=onproc flags process=18 proc=2000 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=1 forw=0xffffffffffffffff, list=0xffff800045fe9ca8,0xffff800038f9efc8 process=0xffff800045ff0010 user=0xffff80003c401000, vmspace=0xfffff60070ad07b8 estcpu=36, cpticks=8, pctcpu=0.2, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 87551 433150 97667 0 2 0 0 syz-executor 93010 153805 67976 32767 2 0x10 0 syz-executor 93010 161012 67976 32767 2 0x10 0x4000000 syz-executor 93010 84670 67976 32767 2 0x10 0x4000000 syz-executor 66410 421493 75616 0 2 0x2 0 syz-executor 9027 180340 87598 32767 2 0x10 0 syz-executor 9027 177907 87598 32767 3 0x10 0x4000080 fsleep syz-executor 97667 372259 75616 0 3 0x2 0x80 wait syz-executor 14136 55940 1 32767 2 0x10 0 syz-executor 14136 67767 1 32767 3 0x10 0x4000080 ttyin syz-executor 14136 205015 1 32767 3 0x10 0x4000080 fsleep syz-executor 71046 446542 60183 32767 2 0x10 0 syz-executor 71046 142195 60183 32767 3 0x10 0x4000080 fsleep syz-executor 67976 206900 71327 32767 3 0x10 0x80 nanoslp syz-executor 71327 145700 75616 0 3 0x2 0x80 wait syz-executor 4823 328516 75616 0 3 0x2 0x80 wait syz-executor 87598 444336 90208 32767 3 0x10 0x80 nanoslp syz-executor 90208 53477 75616 0 3 0x2 0x80 wait syz-executor 60183 138974 45522 32767 3 0x10 0x80 nanoslp syz-executor 45522 212197 75616 0 3 0x2 0x80 wait syz-executor 81161 312027 43110 32767 3 0x10 0x80 wait syz-executor 43110 407641 75616 0 3 0x2 0x80 wait syz-executor 75616 274705 55210 0 3 0x2 0x80 wait syz-executor 55210 425271 52294 0 3 0x100002 0x88 sigsusp ksh 52294 79900 32801 0 3 0x10 0x88 kqread sshd-session 32801 201790 24584 0 3 0x12 0x80 kqread sshd-session 93008 182540 1 0 3 0x100003 0x80 ttyin getty 24584 75987 1 0 3 0 0x88 kqread sshd 2029 151126 90022 73 3 0x1100010 0x80 kqread syslogd 90022 141440 1 0 3 0x100002 0x80 sbwait syslogd 18646 323212 1 0 3 0x100000 0x80 kqread resolvd 25704 97781 12537 77 3 0x100012 0x80 kqread dhcpleased 46994 35216 12537 77 3 0x100012 0x80 kqread dhcpleased 12537 333514 1 0 3 0 0x80 kqread dhcpleased 6602 353829 0 0 3 0x14000 0x200 bored smr 52869 345890 0 0 2 0x14000 0x200 zerothread 5784 330065 0 0 3 0x14000 0x200 aiodoned aiodoned 89471 41841 0 0 3 0x14000 0x200 syncer update 80636 362439 0 0 3 0x14000 0x200 cleaner cleaner 31774 359480 0 0 3 0x14000 0x200 reaper reaper 11159 192702 0 0 3 0x14000 0x200 pgdaemon pagedaemon 81731 406327 0 0 3 0x14000 0x200 bored viomb 7648 48924 0 0 3 0x14000 0x40000200 acpi0 acpi0 8253 385942 0 0 3 0x14000 0x40000200 idle1 37447 486447 0 0 3 0x14000 0x200 bored softnet1 13559 401896 0 0 2 0x14000 0x200 softnet0 68433 145170 0 0 2 0x14000 0x200 systqmp 27719 451936 0 0 3 0x14000 0x200 bored systq 13177 313224 0 0 3 0x14000 0x200 tmoslp softclockmp 86606 4385 0 0 3 0x14000 0x40000200 tmoslp softclock 85875 410803 0 0 3 0x14000 0x40000200 idle0 1 63887 0 0 3 0x2 0x80 wait init 0 0 -1 0 3 0x10000 0x200 scheduler swapper ddb{0}> show all locks ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11045 12014K 12034K 166960K 12209 0 pcb 17 12K 12K 166960K 17 0 rtable 173 5K 7K 166960K 1035 0 pf 25 16K 16K 166960K 75 0 ifaddr 32 5K 7K 166960K 136 0 ifgroup 40 1K 2K 166960K 138 0 sysctl 4 1K 9K 166960K 9 0 counters 66 36K 37K 166960K 114 0 ioctlops 0 0K 4K 166960K 65 0 iov 0 0K 12K 166960K 80 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1293 81K 81K 166960K 1838 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 10 0 VM map 2 1K 1K 166960K 2 0 sem 27 1K 2K 166960K 95 0 dirhash 12 2K 3K 166960K 18 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 20 73K 121K 166960K 868 0 sigio 0 0K 0K 166960K 9 0 proc 58 99K 147K 166960K 1173 0 subproc 68 4K 4K 166960K 401 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 75 0 in_multi 66 4K 6K 166960K 349 0 ether_multi 1 0K 0K 166960K 2 0 mrt 0 0K 0K 166960K 18 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 73 334K 334K 166960K 73 0 exec 0 0K 1K 166960K 704 0 fusefs mount 1 32K 32K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 230 168K 199K 166960K 8332 0 UVM aobj 131 4K 4K 166960K 132 0 pinsyscall 41 82K 117K 166960K 2610 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 8 0 NDP 9 0K 1K 166960K 93 0 temp 48 9121K 9185K 166960K 7972 0 kqueue 14 22K 36K 166960K 112 0 SYN cache 2 16K 16K 166960K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 28 0 0 1 0 1 1 0 8 0 rtpcb 120 143 0 140 2 0 2 2 0 8 1 rtentry 176 357 0 279 6 0 6 6 0 8 1 unpcb 144 337 0 322 3 0 3 3 0 8 2 syncache 336 13 0 13 1 0 1 1 0 8 1 tcpqe 32 5 0 5 1 0 1 1 0 8 1 tcpcb 736 215 0 207 7 0 7 7 0 8 6 arp 136 62 0 50 1 0 1 1 0 8 0 ipq 40 2 0 1 1 0 1 1 0 8 0 ipqe 40 5 0 4 1 0 1 1 0 8 0 inpcb 328 599 0 588 7 0 7 7 0 8 5 ip6q 80 2 0 0 1 0 1 1 0 8 0 ip6af 40 3 0 1 1 0 1 1 0 8 0 nd6 152 94 0 79 2 0 2 2 0 8 1 kcovpl 48 44 0 37 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1457 0 1086 33 1 32 33 0 8 3 art_table 40 1458 0 1086 6 0 6 6 0 8 1 art_node 32 357 0 277 1 0 1 1 0 8 0 sysvmsgpl 40 39 0 39 1 0 1 1 0 8 1 semapl 72 88 0 63 1 0 1 1 0 8 0 shmpl 112 129 0 1 4 0 4 4 0 8 0 dirhash 1024 21 0 4 3 0 3 3 0 8 0 dino2pl 256 2198 0 656 97 0 97 97 0 8 0 ffsino 296 2198 0 656 119 0 119 119 0 8 0 nchpl 144 2845 0 1062 67 0 67 67 0 8 0 vnodes 216 2608 0 0 145 0 145 145 0 8 0 namei 1024 13246 0 13246 4 3 1 3 0 8 1 percpumem 16 73 0 24 1 0 1 1 0 8 0 kstatmem 264 69 0 48 2 0 2 2 0 8 0 scxspl 216 9481 0 9481 11 3 8 8 1 8 8 plimitpl 152 226 0 203 2 0 2 2 0 8 0 sigapl 424 1107 0 1058 7 0 7 7 0 8 0 knotepl 120 549 0 0 17 0 17 17 0 8 0 kqueuepl 224 141 0 130 2 0 2 2 0 8 1 pipepl 344 263 0 235 4 0 4 4 0 8 0 fdescpl 528 1091 0 1059 3 0 3 3 0 8 0 filepl 160 5314 0 5110 12 0 12 12 0 8 1 lockfpl 104 144 0 142 1 0 1 1 0 8 0 lockfspl 48 50 0 48 1 0 1 1 0 8 0 sessionpl 144 118 0 104 1 0 1 1 0 8 0 pgrppl 48 167 0 145 1 0 1 1 0 8 0 ucredpl 104 1100 0 1083 1 0 1 1 0 8 0 zombiepl 144 1061 0 1058 1 0 1 1 0 8 0 processpl 1232 1107 0 1058 5 0 5 5 0 8 0 procpl 664 1666 0 1611 7 0 7 7 0 8 0 sosppl 176 4 0 4 1 0 1 1 0 8 1 sockpl 752 1081 0 1052 11 0 11 11 0 8 7 mcl64k 65536 4 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 130 0 0 17 0 17 17 0 8 0 mcl2k 2048 50 0 0 7 0 7 7 0 8 0 mextrefs 64 48 0 0 1 0 1 1 0 8 0 mtagpl 96 1 0 0 1 0 1 1 0 8 0 mbufpl 256 446 0 0 28 0 28 28 0 8 0 bufpl 272 3006 0 104 194 0 194 194 0 8 0 anonpl 32 5192 0 0 42 0 42 42 0 247 0 amapchunkpl 152 24096 0 23617 35 3 32 34 0 158 10 amappl16 200 2147 0 2125 6 3 3 5 0 8 0 amappl15 192 7 0 7 1 1 0 1 0 8 0 amappl14 184 677 0 676 1 0 1 1 0 8 0 amappl13 176 216 0 206 1 0 1 1 0 8 0 amappl12 168 1423 0 1393 2 0 2 2 0 8 0 amappl11 160 30 0 30 2 2 0 1 0 8 0 amappl10 152 79 0 69 1 0 1 1 0 8 0 amappl9 144 267 0 267 1 1 0 1 0 8 0 amappl8 136 182 0 181 1 0 1 1 0 8 0 amappl7 128 207 0 195 1 0 1 1 0 8 0 amappl6 120 374 0 373 1 0 1 1 0 8 0 amappl5 112 121 0 113 1 0 1 1 0 8 0 amappl4 104 364 0 347 1 0 1 1 0 8 0 amappl3 96 4207 0 4114 4 1 3 3 0 8 0 amappl2 88 1222 0 1148 3 0 3 3 0 8 0 amappl1 80 17435 0 16881 19 0 19 19 0 8 3 amappl 88 7104 0 6939 5 0 5 5 0 92 0 uvmvnodes 80 112 0 0 3 0 3 3 0 8 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 253 0 253 1 1 0 1 0 8 0 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 131 0 1 3 0 3 3 0 8 0 uaddrrnd 24 1091 0 1059 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1091 0 1059 1 0 1 1 0 8 0 vmmpekpl 168 11197 0 11137 4 0 4 4 0 8 0 vmmpepl 168 81547 0 79709 115 0 115 115 0 357 23 vmsppl 488 1090 0 1058 7 1 6 6 0 8 0 rwobjpl 80 25801 0 24720 30 0 30 30 0 8 4 pdppl 4096 2189 0 2116 123 42 81 95 0 8 8 pvpl 32 14612 0 0 118 0 118 118 0 265 0 pmappl 256 1090 0 1058 4 1 3 3 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 524 0 49 14 0 14 14 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace if_delgroup(ffff80000164d000,ffff8000015a3900) at if_delgroup+0x159 sys/net/if.c:3142 if_detach(ffff80000164d000) at if_detach+0x34b sys/net/if.c:1317 tun_clone_destroy(ffff80000164d000) at tun_clone_destroy+0x2ce sys/net/if_tun.c:343 if_clone_destroy(ffff80003c405d30) at if_clone_destroy+0x205 sys/net/if.c:1479 tun_dev_close(5d03,7) at tun_dev_close+0x1d9 sys/net/if_tun.c:526 spec_close(ffff80003c405df0) at spec_close+0x417 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffff6006e31a028,7,fffff600097fd7b8,ffff80002a2fc7f8) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffff6006d6ddab8,ffff80002a2fc7f8) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffff6006d6ddab8,ffff80002a2fc7f8) at vn_closefile+0x12b sys/kern/vfs_vnops.c:621 fdrop(fffff6006d6ddab8,ffff80002a2fc7f8) at fdrop+0x121 sys/kern/kern_descrip.c:1281 closef(fffff6006d6ddab8,ffff80002a2fc7f8) at closef+0x192 sys/kern/kern_descrip.c:1265 fdfree(ffff80002a2fc7f8) at fdfree+0x116 sys/kern/kern_descrip.c:1196 exit1(ffff80002a2fc7f8,43,0,1) at exit1+0x595 sys/kern/kern_exit.c:215 sys_exit(ffff80002a2fc7f8,ffff80003c406160,ffff80003c4060b0) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80003c406160) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c406160) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7ca73387bd30, count: -15 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffff80002999dff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff83a4de40) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff83a4de40) at __mp_lock+0x192 sys/kern/kern_lock.c:173 exit1(ffff800038f9e7f0,43,0,1) at exit1+0x720 sys/kern/kern_exit.c:260 sys_exit(ffff800038f9e7f0,ffff80003c4243f0,ffff80003c424340) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80003c4243f0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c4243f0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f461a6b7b50, count: 7 ddb{1}> trace x86_ipi_db(ffff80002999dff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff83a4de40) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff83a4de40) at __mp_lock+0x192 sys/kern/kern_lock.c:173 exit1(ffff800038f9e7f0,43,0,1) at exit1+0x720 sys/kern/kern_exit.c:260 sys_exit(ffff800038f9e7f0,ffff80003c4243f0,ffff80003c424340) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80003c4243f0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c4243f0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f461a6b7b50, count: -8