kernel: protection fault trap, code=0 Stopped at pfi_ifhead_RB_REMOVE+0x50: movq 0x10(%r12),%rbx ddb{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic the kernel did not panic ddb{0}> trace pfi_ifhead_RB_REMOVE(ffffffff828f3580,ffff800000b73d00) at pfi_ifhead_RB_REMOVE+0x50 sys/net/pf_if.c:80 pfi_detach_ifgroup(ffff800000b18e00) at pfi_detach_ifgroup+0x11b pfi_kif_unref sys/net/pf_if.c:211 [inline] pfi_detach_ifgroup(ffff800000b18e00) at pfi_detach_ifgroup+0x11b sys/net/pf_if.c:304 if_delgroup(ffff800000ae5000,ffff800000b18e00) at if_delgroup+0x193 sys/net/if.c:2711 if_detach(ffff800000ae5000) at if_detach+0x1cb sys/net/if.c:1049 tun_clone_destroy(ffff800000ae5000) at tun_clone_destroy+0x1e1 sys/net/if_tun.c:325 if_clone_destroy(ffff8000212ad2e0) at if_clone_destroy+0x136 sys/net/if.c:1212 tun_dev_close(5d00,7) at tun_dev_close+0x140 sys/net/if_tun.c:479 spec_close(ffff8000212ad3b0) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd806e284088,7,fffffd807f7b7840,ffff80002123d500) at VOP_CLOSE+0xeb sys/kern/vfs_vops.c:177 vn_closefile(fffffd8069ff4608,ffff80002123d500) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd8069ff4608,ffff80002123d500) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd8069ff4608,ffff80002123d500) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd8069ff4608,ffff80002123d500) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff80002123d500) at fdfree+0xf4 sys/kern/kern_descrip.c:1195 exit1(ffff80002123d500,0,19,1) at exit1+0x335 sys/kern/kern_exit.c:200 postsig(ffff80002123d500,19) at postsig+0x59c sigexit sys/kern/kern_sig.c:1494 [inline] postsig(ffff80002123d500,19) at postsig+0x59c sys/kern/kern_sig.c:1423 userret(ffff80002123d500) at userret+0x189 sys/kern/kern_sig.c:1914 syscall(ffff8000212ad830) at syscall+0x55c mi_syscall_return sys/sys/syscall_mi.h:129 [inline] syscall(ffff8000212ad830) at syscall+0x55c sys/arch/amd64/amd64/trap.c:612 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd5160, count: -18 ddb{0}> show registers rdi 0xffffffff828f3580 pfi_ifs rsi 0xffff800000b73d00 rbp 0xffff8000212ad140 rbx 0xdeaf4152deaf4152 rdx 0 rcx 0xffff800000b18e80 rax 0xffff800000b73d10 r8 0xf8 r9 0x8080808080808080 r10 0x2b43f902f62dbf5 r11 0x702f2b1cfc26ea67 r12 0xdeaf4152deaf4152 r13 0xffff800000afb180 r14 0xffff800000b73d00 r15 0xffffffff828f3580 pfi_ifs rip 0xffffffff81707720 pfi_ifhead_RB_REMOVE+0x50 cs 0x8 rflags 0x10282 __ALIGN_SIZE+0xf282 rsp 0xffff8000212ad0e0 ss 0x10 pfi_ifhead_RB_REMOVE+0x50: movq 0x10(%r12),%rbx ddb{0}> show proc PROC (syz-executor.0) pid=65351 stat=onproc flags process=a proc=2000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000211c2d28,0xffff80002123cd30 process=0xffff800021234880 user=0xffff8000212a8000, vmspace=0xfffffd807effaa10 estcpu=36, cpticks=10, pctcpu=0.46 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 66410 78395 54183 0 3 0x82 piperd syz-executor.1 54183 521927 47517 0 3 0x82 thrsleep syz-fuzzer 54183 313664 47517 0 3 0x4000082 thrsleep syz-fuzzer 54183 190070 47517 0 3 0x4000082 thrsleep syz-fuzzer 54183 3993 47517 0 3 0x4000082 kqread syz-fuzzer 54183 24839 47517 0 3 0x4000082 thrsleep syz-fuzzer 54183 149298 47517 0 3 0x4000082 thrsleep syz-fuzzer 54183 515137 47517 0 3 0x4000082 thrsleep syz-fuzzer 54183 215957 47517 0 3 0x4000082 thrsleep syz-fuzzer 47517 454893 7164 0 3 0x10008a sigsusp ksh 7164 136341 38640 0 3 0x92 select sshd 93413 35657 1 0 3 0x100083 ttyin getty 38640 33993 1 0 3 0x80 select sshd 91848 302671 82106 74 3 0x100092 bpf pflogd 82106 432029 1 0 3 0x80 netio pflogd 75816 366012 13540 73 3 0x100090 kqread syslogd 13540 111524 1 0 3 0x100082 netio syslogd 47302 160617 1 77 3 0x100090 poll dhclient 38907 361697 1 0 7 0x80 dhclient 31482 295548 0 0 3 0x14200 bored smr 71698 230598 0 0 3 0x14200 pgzero zerothread 20359 377230 0 0 3 0x14200 aiodoned aiodoned 71161 224439 0 0 3 0x14200 syncer update 48021 219406 0 0 3 0x14200 cleaner cleaner 22922 254594 0 0 3 0x14200 reaper reaper 6523 42559 0 0 3 0x14200 pgdaemon pagedaemon 39426 161065 0 0 3 0x14200 bored crynlk 83511 312984 0 0 3 0x14200 bored crypto 26375 327207 0 0 3 0x14200 bored viomb 15132 233635 0 0 3 0x40014200 acpi0 acpi0 9768 516621 0 0 3 0x40014200 idle1 65281 173943 0 0 3 0x14200 bored softnet 49429 150258 0 0 2 0x14200 systqmp 66115 345311 0 0 3 0x14200 bored systq 54932 504292 0 0 3 0x40014200 bored softclock 12637 93243 0 0 3 0x40014200 idle0 1 161586 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9504 6433K 7191K 78643K 12553 0 pcb 13 8K 8K 78643K 100 0 rtable 88 5K 6K 78643K 460 0 ifaddr 59 13K 14K 78643K 156 0 counters 46 34K 34K 78643K 80 0 ioctlops 0 0K 4K 78643K 1647 0 iov 0 0K 24K 78643K 48 0 mount 1 1K 1K 78643K 1 0 vnodes 1218 77K 77K 78643K 2000 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 28 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 161 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12598 0 file desc 4 9K 25K 78643K 1941 0 sigio 0 0K 0K 78643K 17 0 proc 62 63K 95K 78643K 613 0 subproc 23 1K 2K 78643K 51 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 241 0 in_multi 21 1K 2K 78643K 153 0 ether_multi 1 0K 0K 78643K 24 0 mrt 0 0K 0K 78643K 24 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 55 254K 254K 78643K 55 0 exec 0 0K 2K 78643K 435 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 7 26K 26K 78643K 7 0 UVM amap 145 235K 235K 78643K 5279 0 UVM aobj 63 2K 2K 78643K 91 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 155 0 NDP 9 0K 0K 78643K 42 0 temp 135 3991K 4055K 78643K 11826 0 kqueue 3 4K 8K 78643K 59 0 SYN cache 2 16K 16K 78643K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 8 0 6 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 120 80 0 78 1 0 1 1 0 8 0 rtentry 112 81 0 52 2 0 2 2 0 8 0 unpcb 120 514 0 504 1 0 1 1 0 8 0 syncache 296 34 0 34 4 3 1 1 0 8 1 tcpqe 32 9 0 9 1 1 0 1 0 8 0 tcpcb 736 439 0 435 11 9 2 5 0 8 1 inpcb 296 956 0 949 6 4 2 2 0 8 1 nd6 48 22 0 19 1 0 1 1 0 8 0 kcovpl 48 3 0 2 1 0 1 1 0 8 0 ppxss 1128 13 0 13 1 1 0 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfrktable 1344 6 0 2 1 0 1 1 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfstitem 24 54 0 42 1 0 1 1 0 8 0 pfstkey 112 54 0 42 2 0 2 2 0 8 0 pfstate 328 54 0 42 4 2 2 4 0 8 0 pfrule 1360 103 0 77 4 1 3 3 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 232 0 71 12 0 12 12 0 8 0 art_table 32 233 0 71 2 0 2 2 0 8 0 art_node 16 77 0 45 1 0 1 1 0 8 0 sysvmsgpl 40 96 0 76 1 0 1 1 0 8 0 semapl 112 159 0 149 1 0 1 1 0 8 0 shmpl 112 88 0 28 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 4106 0 2696 89 0 89 89 0 8 0 ffsino 272 4106 0 2696 96 1 95 95 0 8 0 nchpl 144 6620 0 5027 60 0 60 60 0 8 0 uvmvnodes 72 4622 0 0 85 0 85 85 0 8 0 vnodes 224 4622 0 0 272 0 272 272 0 8 0 namei 1024 17079 0 17079 1 0 1 1 0 8 1 percpumem 16 51 0 17 1 0 1 1 0 8 0 vcpupl 1984 14 0 0 2 0 2 2 0 8 0 vmpool 560 14 0 0 1 0 1 1 0 8 0 pfiaddrpl 120 25 0 20 1 0 1 1 0 8 0 scxspl 216 20800 0 20800 9 8 1 8 0 8 1 plimitpl 152 89 0 81 1 0 1 1 0 8 0 sigapl 424 2154 0 2123 4 0 4 4 0 8 0 futexpl 56 16050 0 16050 1 0 1 1 0 8 1 knotepl 112 151 0 133 1 0 1 1 0 8 0 kqueuepl 168 715 0 713 1 0 1 1 0 8 0 pipepl 336 186 0 176 2 0 2 2 0 8 0 fdescpl 496 2138 0 2123 3 0 3 3 0 8 0 filepl 152 8047 0 7956 5 0 5 5 0 8 1 lockfpl 104 455 0 454 1 0 1 1 0 8 0 lockfspl 48 141 0 140 1 0 1 1 0 8 0 sessionpl 144 19 0 8 1 0 1 1 0 8 0 pgrppl 48 33 0 22 1 0 1 1 0 8 0 ucredpl 96 1003 0 989 1 0 1 1 0 8 0 zombiepl 144 2124 0 2123 1 0 1 1 0 8 0 processpl 1080 2154 0 2123 3 0 3 3 0 8 0 procpl 672 4540 0 4502 5 1 4 5 0 8 0 sockpl 432 1561 0 1542 7 3 4 4 0 8 1 mcl64k 65536 12 0 0 2 0 2 2 0 8 0 mcl12k 12288 12 0 0 2 0 2 2 0 8 0 mcl9k 9216 6 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 11 0 0 2 0 2 2 0 8 0 mcl2k 2048 164 0 0 15 0 15 15 0 8 0 mtagpl 96 97 0 0 3 0 3 3 0 8 0 mbufpl 256 978 0 0 60 1 59 59 0 8 0 bufpl 280 6855 0 606 447 0 447 447 0 8 0 anonpl 24 222765 0 216384 84 43 41 74 0 186 0 amapchunkpl 152 8248 0 7991 13 2 11 11 0 158 0 amappl16 200 10451 0 10271 41 31 10 33 0 8 0 amappl15 192 884 0 882 1 0 1 1 0 8 0 amappl14 184 967 0 963 1 0 1 1 0 8 0 amappl13 176 33 0 31 1 0 1 1 0 8 0 amappl12 168 18 0 18 2 2 0 1 0 8 0 amappl11 160 64 0 47 1 0 1 1 0 8 0 amappl10 152 18 0 12 1 0 1 1 0 8 0 amappl9 144 287 0 284 1 0 1 1 0 8 0 amappl8 136 191 0 136 2 0 2 2 0 8 0 amappl7 128 255 0 248 1 0 1 1 0 8 0 amappl6 120 70 0 58 1 0 1 1 0 8 0 amappl5 112 1346 0 1327 1 0 1 1 0 8 0 amappl4 104 1231 0 1208 1 0 1 1 0 8 0 amappl3 96 174 0 164 1 0 1 1 0 8 0 amappl2 88 17144 0 17083 3 1 2 3 0 8 0 amappl1 80 69619 0 69166 26 14 12 21 0 8 0 amappl 88 4850 0 4785 2 0 2 2 0 92 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 64 90 0 28 2 1 1 2 0 8 0 uaddrrnd 24 2152 0 2123 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2152 0 2123 1 0 1 1 0 8 0 vmmpekpl 168 14142 0 14115 2 0 2 2 0 8 0 vmmpepl 168 275078 0 273773 96 26 70 84 0 357 2 vmsppl 368 2151 0 2123 3 0 3 3 0 8 0 rwobjpl 56 61991 0 61108 25 11 14 19 0 8 0 pdppl 4096 4311 0 4260 72 17 55 56 0 8 4 pvpl 32 834210 0 826105 146 63 83 132 0 265 10 pmappl 232 2151 0 2123 3 1 2 2 0 8 0 extentpl 40 58 0 40 1 0 1 1 0 8 0 phpool 112 377 0 31 10 0 10 10 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace pfi_ifhead_RB_REMOVE(ffffffff828f3580,ffff800000b73d00) at pfi_ifhead_RB_REMOVE+0x50 sys/net/pf_if.c:80 pfi_detach_ifgroup(ffff800000b18e00) at pfi_detach_ifgroup+0x11b pfi_kif_unref sys/net/pf_if.c:211 [inline] pfi_detach_ifgroup(ffff800000b18e00) at pfi_detach_ifgroup+0x11b sys/net/pf_if.c:304 if_delgroup(ffff800000ae5000,ffff800000b18e00) at if_delgroup+0x193 sys/net/if.c:2711 if_detach(ffff800000ae5000) at if_detach+0x1cb sys/net/if.c:1049 tun_clone_destroy(ffff800000ae5000) at tun_clone_destroy+0x1e1 sys/net/if_tun.c:325 if_clone_destroy(ffff8000212ad2e0) at if_clone_destroy+0x136 sys/net/if.c:1212 tun_dev_close(5d00,7) at tun_dev_close+0x140 sys/net/if_tun.c:479 spec_close(ffff8000212ad3b0) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd806e284088,7,fffffd807f7b7840,ffff80002123d500) at VOP_CLOSE+0xeb sys/kern/vfs_vops.c:177 vn_closefile(fffffd8069ff4608,ffff80002123d500) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd8069ff4608,ffff80002123d500) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd8069ff4608,ffff80002123d500) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd8069ff4608,ffff80002123d500) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff80002123d500) at fdfree+0xf4 sys/kern/kern_descrip.c:1195 exit1(ffff80002123d500,0,19,1) at exit1+0x335 sys/kern/kern_exit.c:200 postsig(ffff80002123d500,19) at postsig+0x59c sigexit sys/kern/kern_sig.c:1494 [inline] postsig(ffff80002123d500,19) at postsig+0x59c sys/kern/kern_sig.c:1423 userret(ffff80002123d500) at userret+0x189 sys/kern/kern_sig.c:1914 syscall(ffff8000212ad830) at syscall+0x55c mi_syscall_return sys/sys/syscall_mi.h:129 [inline] syscall(ffff8000212ad830) at syscall+0x55c sys/arch/amd64/amd64/trap.c:612 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd5160, count: -18 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp ddb{1}> trace x86_ipi_db(ffff800020d68ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff828c9c68) at __mp_lock+0x129 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828c9c68) at __mp_lock+0x129 sys/kern/kern_lock.c:147 __mp_acquire_count(ffffffff828c9c68,2) at __mp_acquire_count+0x4c sys/kern/kern_lock.c:227 mi_switch() at mi_switch+0x390 sys/kern/sched_bsd.c:433 sleep_finish(ffff800021206868,1) at sleep_finish+0x111 sys/kern/kern_synch.c:427 sleep_finish_all(ffff800021206868,1) at sleep_finish_all+0x32 sleep_finish_timeout sys/kern/kern_synch.c:457 [inline] sleep_finish_all(ffff800021206868,1) at sleep_finish_all+0x32 sys/kern/kern_synch.c:402 tsleep(ffffffff82907bc4,118,ffffffff82422ea9,2) at tsleep+0x1f2 sys/kern/kern_synch.c:163 doppoll(ffff8000211c3a48,7f7fffff1808,1,ffff8000212069f8,0,ffff800021206ab0) at doppoll+0x577 sys_poll(ffff8000211c3a48,ffff800021206a60,ffff800021206ab0) at sys_poll+0xa7 syscall(ffff800021206b30) at syscall+0x4a1 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021206b30) at syscall+0x4a1 sys/arch/amd64/amd64/trap.c:590 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff1540, count: -13