kernel: protection fault trap, code=0 Stopped at pfi_ifhead_RB_REMOVE+0x50: movq 0x10(%r12),%rbx ddb{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic the kernel did not panic ddb{1}> trace pfi_ifhead_RB_REMOVE(ffffffff8293cea0,ffff800000b9a100) at pfi_ifhead_RB_REMOVE+0x50 sys/net/pf_if.c:80 pfi_detach_ifgroup(ffff800000af6200) at pfi_detach_ifgroup+0x11b pfi_kif_unref sys/net/pf_if.c:211 [inline] pfi_detach_ifgroup(ffff800000af6200) at pfi_detach_ifgroup+0x11b sys/net/pf_if.c:304 if_delgroup(ffff800000ae5000,ffff800000af6200) 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(ffff8000212ad8e0) 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(ffff8000212ad9b0) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd806e27c5c8,7,fffffd807f7b77e0,ffff80002123dce0) at VOP_CLOSE+0xeb sys/kern/vfs_vops.c:177 vn_closefile(fffffd806a7efdc0,ffff80002123dce0) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd806a7efdc0,ffff80002123dce0) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd806a7efdc0,ffff80002123dce0) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd806a7efdc0,ffff80002123dce0) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff80002123dce0) at fdfree+0xf4 sys/kern/kern_descrip.c:1195 exit1(ffff80002123dce0,0,19,1) at exit1+0x335 sys/kern/kern_exit.c:200 postsig(ffff80002123dce0,19) at postsig+0x59c sigexit sys/kern/kern_sig.c:1494 [inline] postsig(ffff80002123dce0,19) at postsig+0x59c sys/kern/kern_sig.c:1423 userret(ffff80002123dce0) at userret+0x189 sys/kern/kern_sig.c:1914 syscall(ffff8000212ade30) at syscall+0x55c mi_syscall_return sys/sys/syscall_mi.h:129 [inline] syscall(ffff8000212ade30) at syscall+0x55c sys/arch/amd64/amd64/trap.c:612 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffef7a0, count: -18 ddb{1}> show registers rdi 0xffffffff8293cea0 pfi_ifs rsi 0xffff800000b9a100 rbp 0xffff8000212ad740 rbx 0xdead4110dead4110 rdx 0 rcx 0xffff800000af6980 rax 0xffff800000b9a110 r8 0xf8 r9 0x8080808080808080 r10 0x70d6f4945bd8e356 r11 0xed1c108b2d5882ec r12 0xdead4110dead4110 r13 0xffff800000b9b360 r14 0xffff800000b9a100 r15 0xffffffff8293cea0 pfi_ifs rip 0xffffffff8215f870 pfi_ifhead_RB_REMOVE+0x50 cs 0x8 rflags 0x10282 __ALIGN_SIZE+0xf282 rsp 0xffff8000212ad6e0 ss 0x10 pfi_ifhead_RB_REMOVE+0x50: movq 0x10(%r12),%rbx ddb{1}> show proc PROC (syz-executor.0) pid=79986 stat=onproc flags process=a proc=2000 pri=32, usrpri=77, nice=20 forw=0xffffffffffffffff, list=0xffff8000211c3268,0xffff80002123d7b0 process=0xffff800021235960 user=0xffff8000212a8000, vmspace=0xfffffd807effacf0 estcpu=36, cpticks=1, pctcpu=0.51 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 65439 381939 0 0 3 0x14200 bored sosplice 9051 499710 49677 0 3 0x82 nanoslp syz-executor.1 49677 288760 58158 0 3 0x82 thrsleep syz-fuzzer 49677 410390 58158 0 3 0x4000082 thrsleep syz-fuzzer 49677 511669 58158 0 3 0x4000082 thrsleep syz-fuzzer 49677 194057 58158 0 3 0x4000082 thrsleep syz-fuzzer 49677 198355 58158 0 3 0x4000082 thrsleep syz-fuzzer 49677 330562 58158 0 3 0x4000082 thrsleep syz-fuzzer 49677 265382 58158 0 3 0x4000082 kqread syz-fuzzer 49677 487596 58158 0 3 0x4000082 thrsleep syz-fuzzer 58158 457279 65094 0 3 0x10008a sigsusp ksh 65094 491025 4976 0 3 0x92 select sshd 62955 366253 1 0 3 0x100083 ttyin getty 4976 305107 1 0 3 0x80 select sshd 98440 457573 97540 74 3 0x100092 bpf pflogd 97540 19397 1 0 3 0x80 netio pflogd 51331 379031 8788 73 3 0x100090 kqread syslogd 8788 211736 1 0 3 0x100082 netio syslogd 82735 405052 1 77 7 0x100090 dhclient 74616 151207 1 0 3 0x80 poll dhclient 56979 498719 0 0 3 0x14200 bored smr 5195 374711 0 0 3 0x14200 pgzero zerothread 92308 252761 0 0 3 0x14200 aiodoned aiodoned 10569 505434 0 0 3 0x14200 syncer update 36922 351976 0 0 3 0x14200 cleaner cleaner 90256 144495 0 0 3 0x14200 reaper reaper 48386 477018 0 0 3 0x14200 pgdaemon pagedaemon 19 292433 0 0 3 0x14200 bored crynlk 64967 275796 0 0 3 0x14200 bored crypto 33352 62148 0 0 3 0x14200 bored viomb 69414 213714 0 0 3 0x40014200 acpi0 acpi0 70012 142 0 0 3 0x40014200 idle1 8304 345200 0 0 3 0x14200 bored softnet 51745 281094 0 0 2 0x14200 systqmp 78278 235531 0 0 3 0x14200 bored systq 31738 1560 0 0 3 0x40014200 bored softclock 30629 461342 0 0 3 0x40014200 idle0 1 356337 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9544 6451K 7074K 78643K 13163 0 pcb 13 8K 8K 78643K 122 0 rtable 71 3K 4K 78643K 353 0 ifaddr 75 14K 15K 78643K 100 0 sysctl 2 0K 0K 78643K 2 0 counters 44 34K 34K 78643K 52 0 ioctlops 0 0K 4K 78643K 1594 0 iov 0 0K 16K 78643K 82 0 mount 1 1K 1K 78643K 1 0 vnodes 1223 77K 77K 78643K 2060 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 15 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 98 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12598 0 file desc 4 9K 25K 78643K 2674 0 sigio 0 0K 0K 78643K 20 0 proc 62 63K 95K 78643K 533 0 subproc 23 1K 2K 78643K 34 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 153 0 in_multi 19 1K 2K 78643K 86 0 ether_multi 1 0K 0K 78643K 26 0 mrt 0 0K 0K 78643K 12 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 49 228K 228K 78643K 49 0 exec 0 0K 2K 78643K 395 0 pfkey data 0 0K 0K 78643K 5 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 137 154K 163K 78643K 6923 0 UVM aobj 18 2K 2K 78643K 28 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 86 0 NDP 14 0K 0K 78643K 22 0 temp 143 3983K 4093K 78643K 28068 0 kqueue 3 4K 12K 78643K 109 0 SYN cache 2 16K 16K 78643K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 6 0 2 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 120 101 0 99 1 0 1 1 0 8 0 rtentry 112 45 0 21 2 0 2 2 0 8 0 unpcb 120 445 0 435 1 0 1 1 0 8 0 syncache 296 43 0 43 3 3 0 1 0 8 0 tcpqe 32 12 0 12 2 2 0 1 0 8 0 tcpcb 736 435 0 428 9 6 3 5 0 8 1 inpcb 304 1057 0 1047 4 2 2 2 0 8 1 nd6 48 6 0 3 1 0 1 1 0 8 0 pkpcb 40 10 0 10 1 0 1 1 0 8 1 kcovpl 48 2 0 1 1 0 1 1 0 8 0 ppxss 1128 4 0 4 1 1 0 1 0 8 0 pffrag 232 1 0 1 1 1 0 1 0 482 0 pffrnode 88 1 0 1 1 1 0 1 0 8 0 pffrent 40 2 0 2 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 2 0 0 1 0 1 1 0 8 0 pftag 88 2 0 0 1 0 1 1 0 8 0 pfqueue 264 11 0 11 1 1 0 1 0 8 0 pfstitem 24 46 0 20 1 0 1 1 0 8 0 pfstkey 112 46 0 20 1 0 1 1 0 8 0 pfstate 328 46 0 20 5 2 3 3 0 8 0 pfrule 1360 108 0 80 4 1 3 3 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 188 0 43 12 1 11 12 0 8 0 art_table 32 189 0 43 2 0 2 2 0 8 0 art_node 16 44 0 18 1 0 1 1 0 8 0 sysvmsgpl 40 22 0 7 1 0 1 1 0 8 0 semupl 112 10 0 10 1 1 0 1 0 8 0 semapl 112 96 0 86 1 0 1 1 0 8 0 shmpl 112 25 0 10 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 4576 0 3173 89 1 88 89 0 8 0 ffsino 272 4576 0 3173 94 0 94 94 0 8 0 nchpl 144 7821 0 6217 60 0 60 60 0 8 0 uvmvnodes 72 5293 0 0 97 0 97 97 0 8 0 vnodes 224 5293 0 0 312 0 312 312 0 8 0 namei 1024 19520 0 19520 1 0 1 1 0 8 1 percpumem 16 37 0 4 1 0 1 1 0 8 0 vcpupl 1984 10 0 0 2 0 2 2 0 8 0 vmpool 560 10 0 0 1 0 1 1 0 8 0 scxspl 216 22565 0 22565 9 8 1 8 0 8 1 plimitpl 152 125 0 117 1 0 1 1 0 8 0 sigapl 424 2891 0 2859 4 0 4 4 0 8 0 futexpl 56 17961 0 17961 1 0 1 1 0 8 1 knotepl 112 170 0 152 1 0 1 1 0 8 0 kqueuepl 168 1260 0 1258 1 0 1 1 0 8 0 pipepl 336 173 0 163 4 2 2 2 0 8 1 fdescpl 496 2874 0 2859 3 0 3 3 0 8 0 filepl 152 9470 0 9379 5 0 5 5 0 8 1 lockfpl 104 341 0 340 1 0 1 1 0 8 0 lockfspl 48 113 0 112 1 0 1 1 0 8 0 sessionpl 144 18 0 7 1 0 1 1 0 8 0 pgrppl 48 26 0 15 1 0 1 1 0 8 0 ucredpl 96 1270 0 1261 1 0 1 1 0 8 0 zombiepl 144 2860 0 2858 1 0 1 1 0 8 0 processpl 1080 2891 0 2858 3 0 3 3 0 8 0 procpl 672 6148 0 6108 4 0 4 4 0 8 0 srpgc 96 2 0 2 1 1 0 1 0 8 0 sosppl 168 44 0 44 2 2 0 1 0 8 0 sockpl 432 1614 0 1592 7 3 4 4 0 8 1 mcl64k 65536 11 0 0 2 0 2 2 0 8 0 mcl12k 12288 10 0 0 1 0 1 1 0 8 0 mcl9k 9216 5 0 0 1 0 1 1 0 8 0 mcl8k 8192 11 0 0 2 0 2 2 0 8 0 mcl4k 4096 14 0 0 2 0 2 2 0 8 0 mcl2k 2048 226 0 0 16 0 16 16 0 8 0 mtagpl 96 212 0 0 6 0 6 6 0 8 0 mbufpl 256 659 0 0 38 0 38 38 0 8 0 bufpl 280 6450 0 201 447 0 447 447 0 8 0 anonpl 24 198544 0 193047 40 6 34 35 0 186 0 amapchunkpl 152 11627 0 11462 13 5 8 12 0 158 0 amappl16 200 8454 0 8260 14 3 11 12 0 8 0 amappl15 192 1 0 0 1 0 1 1 0 8 0 amappl14 184 1352 0 1349 1 0 1 1 0 8 0 amappl13 176 37 0 35 1 0 1 1 0 8 0 amappl12 168 12 0 11 2 1 1 1 0 8 0 amappl11 160 1376 0 1358 1 0 1 1 0 8 0 amappl10 152 20 0 15 1 0 1 1 0 8 0 amappl9 144 286 0 284 1 0 1 1 0 8 0 amappl8 136 190 0 131 3 0 3 3 0 8 0 amappl7 128 246 0 237 1 0 1 1 0 8 0 amappl6 120 66 0 55 1 0 1 1 0 8 0 amappl5 112 3027 0 3010 1 0 1 1 0 8 0 amappl4 104 1586 0 1562 1 0 1 1 0 8 0 amappl3 96 166 0 157 1 0 1 1 0 8 0 amappl2 88 23445 0 23386 3 1 2 3 0 8 0 amappl1 80 90053 0 89603 27 15 12 21 0 8 0 amappl 88 6441 0 6385 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 27 0 10 1 0 1 1 0 8 0 uaddrrnd 24 2884 0 2859 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2884 0 2859 1 0 1 1 0 8 0 vmmpekpl 168 16665 0 16634 2 0 2 2 0 8 0 vmmpepl 168 364539 0 363231 92 23 69 77 0 357 1 vmsppl 368 2883 0 2859 3 0 3 3 0 8 0 rwobjpl 56 76203 0 75319 25 11 14 19 0 8 0 pdppl 4096 5775 0 5728 64 13 51 52 0 8 4 pvpl 32 1126016 0 1117515 146 67 79 117 0 265 5 pmappl 232 2883 0 2859 2 0 2 2 0 8 0 extentpl 40 58 0 40 1 0 1 1 0 8 0 phpool 112 347 0 26 10 0 10 10 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff8271fff0) 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 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x37 kd_curproc sys/dev/kcov.c:570 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x37 sys/dev/kcov.c:143 __mp_lock(ffffffff82911b50) at __mp_lock+0x133 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82911b50) at __mp_lock+0x133 sys/kern/kern_lock.c:147 __mp_acquire_count(ffffffff82911b50,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(ffff8000211ffcf8,1) at sleep_finish+0x111 sys/kern/kern_synch.c:427 sleep_finish_all(ffff8000211ffcf8,1) at sleep_finish_all+0x32 sleep_finish_timeout sys/kern/kern_synch.c:457 [inline] sleep_finish_all(ffff8000211ffcf8,1) at sleep_finish_all+0x32 sys/kern/kern_synch.c:402 tsleep(ffffffff8291f564,118,ffffffff82421271,41a1f5) at tsleep+0x1f2 sys/kern/kern_synch.c:163 doppoll(ffff8000211c3ce8,7f7ffffdd070,3,ffff8000211ffe88,0,ffff8000211fff40) at doppoll+0x577 sys_poll(ffff8000211c3ce8,ffff8000211ffef0,ffff8000211fff40) at sys_poll+0xa7 syscall(ffff8000211fffc0) at syscall+0x4a1 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000211fffc0) at syscall+0x4a1 sys/arch/amd64/amd64/trap.c:590 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdd050, count: -14 ddb{0}> machine ddbcpu 1 Stopped at pfi_ifhead_RB_REMOVE+0x50: movq 0x10(%r12),%rbx ddb{1}> trace pfi_ifhead_RB_REMOVE(ffffffff8293cea0,ffff800000b9a100) at pfi_ifhead_RB_REMOVE+0x50 sys/net/pf_if.c:80 pfi_detach_ifgroup(ffff800000af6200) at pfi_detach_ifgroup+0x11b pfi_kif_unref sys/net/pf_if.c:211 [inline] pfi_detach_ifgroup(ffff800000af6200) at pfi_detach_ifgroup+0x11b sys/net/pf_if.c:304 if_delgroup(ffff800000ae5000,ffff800000af6200) 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(ffff8000212ad8e0) 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(ffff8000212ad9b0) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd806e27c5c8,7,fffffd807f7b77e0,ffff80002123dce0) at VOP_CLOSE+0xeb sys/kern/vfs_vops.c:177 vn_closefile(fffffd806a7efdc0,ffff80002123dce0) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd806a7efdc0,ffff80002123dce0) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd806a7efdc0,ffff80002123dce0) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd806a7efdc0,ffff80002123dce0) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff80002123dce0) at fdfree+0xf4 sys/kern/kern_descrip.c:1195 exit1(ffff80002123dce0,0,19,1) at exit1+0x335 sys/kern/kern_exit.c:200 postsig(ffff80002123dce0,19) at postsig+0x59c sigexit sys/kern/kern_sig.c:1494 [inline] postsig(ffff80002123dce0,19) at postsig+0x59c sys/kern/kern_sig.c:1423 userret(ffff80002123dce0) at userret+0x189 sys/kern/kern_sig.c:1914 syscall(ffff8000212ade30) at syscall+0x55c mi_syscall_return sys/sys/syscall_mi.h:129 [inline] syscall(ffff8000212ade30) at syscall+0x55c sys/arch/amd64/amd64/trap.c:612 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffef7a0, count: -18