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(ffffffff8293cea0,ffff800000b4e700) at pfi_ifhead_RB_REMOVE+0x50 sys/net/pf_if.c:80 pfi_detach_ifgroup(ffff800000b25a80) at pfi_detach_ifgroup+0x11b pfi_kif_unref sys/net/pf_if.c:211 [inline] pfi_detach_ifgroup(ffff800000b25a80) at pfi_detach_ifgroup+0x11b sys/net/pf_if.c:304 if_delgroup(ffff800000b12800,ffff800000b25a80) at if_delgroup+0x193 sys/net/if.c:2711 if_detach(ffff800000b12800) at if_detach+0x1cb sys/net/if.c:1049 tun_clone_destroy(ffff800000b12800) at tun_clone_destroy+0x1e1 sys/net/if_tun.c:325 if_clone_destroy(ffff8000222c8cc0) at if_clone_destroy+0x136 sys/net/if.c:1212 tun_dev_close(5d01,7) at tun_dev_close+0x140 sys/net/if_tun.c:479 spec_close(ffff8000222c8d90) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd806ed9e6a8,7,fffffd807f7b79c0,ffff80002123c000) at VOP_CLOSE+0xeb sys/kern/vfs_vops.c:177 vn_closefile(fffffd807bbe2a38,ffff80002123c000) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd807bbe2a38,ffff80002123c000) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd807bbe2a38,ffff80002123c000) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd807bbe2a38,ffff80002123c000) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff80002123c000) at fdfree+0xf4 sys/kern/kern_descrip.c:1195 exit1(ffff80002123c000,0,0,1) at exit1+0x335 sys/kern/kern_exit.c:200 sys_exit(ffff80002123c000,ffff8000222c9020,ffff8000222c9070) at sys_exit+0x16 sys/kern/kern_exit.c:96 syscall(ffff8000222c90f0) at syscall+0x4a1 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000222c90f0) at syscall+0x4a1 sys/arch/amd64/amd64/trap.c:590 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff8a40, count: -17 ddb{0}> show registers rdi 0xffffffff8293cea0 pfi_ifs rsi 0xffff800000b4e700 rbp 0xffff8000222c8b20 rbx 0xdead4110dead4110 rdx 0 rcx 0xffff800000b25d80 rax 0xffff800000b4e710 r8 0xf8 r9 0x8080808080808080 r10 0xf061237495e9bb1e r11 0x1c93c4459ff695ce r12 0xdead4110dead4110 r13 0xffff800000b3bde0 r14 0xffff800000b4e700 r15 0xffffffff8293cea0 pfi_ifs rip 0xffffffff8215f870 pfi_ifhead_RB_REMOVE+0x50 cs 0x8 rflags 0x10282 __ALIGN_SIZE+0xf282 rsp 0xffff8000222c8ac0 ss 0x10 pfi_ifhead_RB_REMOVE+0x50: movq 0x10(%r12),%rbx ddb{0}> show proc PROC (syz-executor.1) pid=135068 stat=onproc flags process=1008 proc=2000 pri=32, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff80002123cfc0,0xffff80002123c2b0 process=0xffff8000212350f0 user=0xffff8000222c4000, vmspace=0xfffffd8065908b90 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 11520 209168 87386 0 3 0x80 nanoslp syz-executor.0 11520 31876 87386 0 3 0x4000080 kqread syz-executor.0 99022 134423 0 0 3 0x14200 acct acct 18151 391284 0 0 3 0x14200 bored sosplice 87386 370081 65251 0 3 0x82 nanoslp syz-executor.0 65251 238317 26287 0 3 0x82 thrsleep syz-fuzzer 65251 317872 26287 0 3 0x4000082 thrsleep syz-fuzzer 65251 268114 26287 0 3 0x4000082 thrsleep syz-fuzzer 65251 261502 26287 0 3 0x4000082 thrsleep syz-fuzzer 65251 14364 26287 0 3 0x4000082 thrsleep syz-fuzzer 65251 79637 26287 0 3 0x4000082 thrsleep syz-fuzzer 65251 61077 26287 0 3 0x4000082 thrsleep syz-fuzzer 65251 44255 26287 0 3 0x4000082 kqread syz-fuzzer 26287 309148 93640 0 3 0x10008a sigsusp ksh 93640 210666 69137 0 3 0x92 select sshd 71665 56833 1 0 3 0x100083 ttyin getty 69137 294357 1 0 3 0x80 select sshd 24329 83482 35628 74 3 0x100092 bpf pflogd 35628 421803 1 0 3 0x80 netio pflogd 39738 76147 70812 73 3 0x100090 kqread syslogd 70812 99345 1 0 3 0x100082 netio syslogd 60000 424340 1 77 7 0x100090 dhclient 12538 313332 1 0 3 0x80 poll dhclient 64836 381744 0 0 3 0x14200 bored smr 6828 217467 0 0 3 0x14200 pgzero zerothread 24974 514653 0 0 3 0x14200 aiodoned aiodoned 53761 89877 0 0 3 0x14200 syncer update 31626 306660 0 0 3 0x14200 cleaner cleaner 60693 341906 0 0 3 0x14200 reaper reaper 65485 283256 0 0 3 0x14200 pgdaemon pagedaemon 46327 279516 0 0 3 0x14200 bored crynlk 23981 341814 0 0 3 0x14200 bored crypto 36233 60495 0 0 3 0x14200 bored viomb 96667 151996 0 0 3 0x40014200 acpi0 acpi0 64721 230570 0 0 3 0x40014200 idle1 87636 333411 0 0 3 0x14200 bored softnet 87200 218797 0 0 2 0x14200 systqmp 69889 352461 0 0 3 0x14200 bored systq 90473 32834 0 0 3 0x40014200 bored softclock 92347 359907 0 0 3 0x40014200 idle0 1 248572 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 9553 6448K 7353K 78643K 15601 0 pcb 13 8K 8K 78643K 265 0 rtable 89 11K 12K 78643K 699 0 ifaddr 78 14K 16K 78643K 234 0 counters 44 34K 34K 78643K 108 0 ioctlops 0 0K 4K 78643K 1567 0 iov 0 0K 16K 78643K 118 0 mount 1 1K 1K 78643K 1 0 vnodes 1233 78K 78K 78643K 3007 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 18 0 VM map 2 1K 1K 78643K 2 0 sem 10 0K 1K 78643K 12 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12598 0 file desc 5 13K 25K 78643K 5133 0 sigio 0 0K 0K 78643K 24 0 proc 63 63K 83K 78643K 755 0 subproc 23 1K 3K 78643K 119 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 176 0 in_multi 22 1K 2K 78643K 221 0 ether_multi 1 0K 0K 78643K 115 0 mrt 0 0K 0K 78643K 95 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 532 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 169 93K 93K 78643K 12652 0 UVM aobj 56 2K 2K 78643K 56 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 177 0 NDP 15 0K 0K 78643K 53 0 temp 146 3983K 4047K 78643K 43885 0 kqueue 12 22K 24K 78643K 209 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 4 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 120 168 0 166 1 0 1 1 0 8 0 rtentry 112 87 0 54 2 0 2 2 0 8 0 unpcb 120 997 0 987 2 1 1 2 0 8 0 syncache 296 31 0 31 5 4 1 1 0 8 1 tcpqe 32 37 0 37 5 4 1 1 0 8 1 tcpcb 736 566 0 562 14 11 3 4 0 8 2 inpcb 304 1650 0 1643 5 3 2 2 0 8 1 rttmr 72 31 0 31 4 4 0 1 0 8 0 nd6 48 9 0 6 1 0 1 1 0 8 0 pkpcb 40 5 0 5 1 1 0 1 0 8 0 kcovpl 48 7 0 6 1 0 1 1 0 8 0 swfcl 56 8 0 0 1 0 1 1 0 8 0 ppxss 1128 16 0 16 3 3 0 1 0 8 0 pffrag 232 6 0 6 2 2 0 1 0 482 0 pffrnode 88 6 0 6 2 2 0 1 0 8 0 pffrent 40 22 0 22 2 2 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 pftag 88 1 0 0 1 0 1 1 0 8 0 pfqueue 264 5 0 0 1 0 1 1 0 8 0 pfstitem 24 42 0 24 1 0 1 1 0 8 0 pfstkey 112 42 0 24 1 0 1 1 0 8 0 pfstate 328 42 0 24 2 0 2 2 0 8 0 pfrule 1360 31 0 21 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 232 0 46 12 0 12 12 0 8 0 art_table 32 233 0 46 2 0 2 2 0 8 0 art_node 16 86 0 49 1 0 1 1 0 8 0 sysvmsgpl 40 32 0 13 1 0 1 1 0 8 0 semupl 112 6 0 6 2 2 0 1 0 8 0 semapl 112 8 0 0 1 0 1 1 0 8 0 shmpl 112 53 0 0 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 7686 0 6284 89 0 89 89 0 8 0 ffsino 272 7686 0 6284 95 0 95 95 0 8 0 nchpl 144 13617 0 12044 60 0 60 60 0 8 0 uvmvnodes 72 5926 0 0 108 0 108 108 0 8 0 vnodes 224 5926 0 0 349 0 349 349 0 8 0 namei 1024 33031 0 33031 1 0 1 1 0 8 1 percpumem 16 65 0 32 1 0 1 1 0 8 0 vcpupl 1984 8 0 0 1 0 1 1 0 8 0 vmpool 560 8 0 0 1 0 1 1 0 8 0 scxspl 216 40254 0 40254 11 10 1 8 0 8 1 plimitpl 152 201 0 193 1 0 1 1 0 8 0 sigapl 424 5336 0 5302 4 0 4 4 0 8 0 futexpl 56 31743 0 31743 1 0 1 1 0 8 1 knotepl 112 347 0 333 1 0 1 1 0 8 0 kqueuepl 168 2297 0 2285 1 0 1 1 0 8 0 pipepl 336 228 0 220 10 9 1 3 0 8 0 fdescpl 496 5318 0 5302 3 0 3 3 0 8 0 filepl 152 16223 0 16135 8 3 5 7 0 8 0 lockfpl 104 493 0 492 1 0 1 1 0 8 0 lockfspl 48 186 0 185 1 0 1 1 0 8 0 sessionpl 144 23 0 12 1 0 1 1 0 8 0 pgrppl 48 64 0 53 1 0 1 1 0 8 0 ucredpl 96 1807 0 1798 1 0 1 1 0 8 0 zombiepl 144 5303 0 5302 1 0 1 1 0 8 0 processpl 1080 5336 0 5302 3 0 3 3 0 8 0 procpl 672 11580 0 11538 8 4 4 5 0 8 0 sosppl 168 62 0 62 5 5 0 1 0 8 0 sockpl 432 2825 0 2802 7 3 4 7 0 8 0 mcl64k 65536 17 0 0 3 0 3 3 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 3 0 0 1 0 1 1 0 8 0 mcl9k 9216 17 0 0 2 0 2 2 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k 2048 267 0 0 17 0 17 17 0 8 0 mtagpl 96 231 0 0 6 0 6 6 0 8 0 mbufpl 256 1253 0 0 69 0 69 69 0 8 0 bufpl 280 9964 0 3715 447 0 447 447 0 8 0 anonpl 24 399765 0 391763 127 51 76 76 0 186 12 amapchunkpl 152 20889 0 20705 16 8 8 12 0 158 0 amappl16 200 18289 0 17893 62 30 32 32 0 8 7 amappl15 192 106 0 105 1 0 1 1 0 8 0 amappl14 184 2575 0 2569 1 0 1 1 0 8 0 amappl13 176 44 0 41 1 0 1 1 0 8 0 amappl12 168 11 0 8 1 0 1 1 0 8 0 amappl11 160 2487 0 2469 1 0 1 1 0 8 0 amappl10 152 22 0 17 1 0 1 1 0 8 0 amappl9 144 18 0 17 1 0 1 1 0 8 0 amappl8 136 295 0 211 3 0 3 3 0 8 0 amappl7 128 265 0 257 1 0 1 1 0 8 0 amappl6 120 81 0 68 1 0 1 1 0 8 0 amappl5 112 3476 0 3458 1 0 1 1 0 8 0 amappl4 104 5271 0 5243 1 0 1 1 0 8 0 amappl3 96 215 0 207 1 0 1 1 0 8 0 amappl2 88 44671 0 44594 3 1 2 3 0 8 0 amappl1 80 157494 0 157003 34 23 11 21 0 8 0 amappl 88 11947 0 11889 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 55 0 0 1 0 1 1 0 8 0 uaddrrnd 24 5326 0 5302 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 5326 0 5302 1 0 1 1 0 8 0 vmmpekpl 168 31711 0 31684 2 0 2 2 0 8 0 vmmpepl 168 670478 0 668770 132 44 88 88 0 357 7 vmsppl 368 5325 0 5302 3 0 3 3 0 8 0 rwobjpl 56 139842 0 138679 39 19 20 20 0 8 1 pdppl 4096 10659 0 10612 69 20 49 49 0 8 2 pvpl 32 1973499 0 1964504 243 121 122 122 0 265 34 pmappl 232 5325 0 5302 4 2 2 2 0 8 0 extentpl 40 58 0 40 1 0 1 1 0 8 0 phpool 112 398 0 43 11 0 11 11 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace pfi_ifhead_RB_REMOVE(ffffffff8293cea0,ffff800000b4e700) at pfi_ifhead_RB_REMOVE+0x50 sys/net/pf_if.c:80 pfi_detach_ifgroup(ffff800000b25a80) at pfi_detach_ifgroup+0x11b pfi_kif_unref sys/net/pf_if.c:211 [inline] pfi_detach_ifgroup(ffff800000b25a80) at pfi_detach_ifgroup+0x11b sys/net/pf_if.c:304 if_delgroup(ffff800000b12800,ffff800000b25a80) at if_delgroup+0x193 sys/net/if.c:2711 if_detach(ffff800000b12800) at if_detach+0x1cb sys/net/if.c:1049 tun_clone_destroy(ffff800000b12800) at tun_clone_destroy+0x1e1 sys/net/if_tun.c:325 if_clone_destroy(ffff8000222c8cc0) at if_clone_destroy+0x136 sys/net/if.c:1212 tun_dev_close(5d01,7) at tun_dev_close+0x140 sys/net/if_tun.c:479 spec_close(ffff8000222c8d90) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd806ed9e6a8,7,fffffd807f7b79c0,ffff80002123c000) at VOP_CLOSE+0xeb sys/kern/vfs_vops.c:177 vn_closefile(fffffd807bbe2a38,ffff80002123c000) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd807bbe2a38,ffff80002123c000) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd807bbe2a38,ffff80002123c000) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd807bbe2a38,ffff80002123c000) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff80002123c000) at fdfree+0xf4 sys/kern/kern_descrip.c:1195 exit1(ffff80002123c000,0,0,1) at exit1+0x335 sys/kern/kern_exit.c:200 sys_exit(ffff80002123c000,ffff8000222c9020,ffff8000222c9070) at sys_exit+0x16 sys/kern/kern_exit.c:96 syscall(ffff8000222c90f0) at syscall+0x4a1 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000222c90f0) at syscall+0x4a1 sys/arch/amd64/amd64/trap.c:590 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff8a40, count: -17 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 __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(ffff800021200008,1) at sleep_finish+0x111 sys/kern/kern_synch.c:427 sleep_finish_all(ffff800021200008,1) at sleep_finish_all+0x32 sleep_finish_timeout sys/kern/kern_synch.c:457 [inline] sleep_finish_all(ffff800021200008,1) at sleep_finish_all+0x32 sys/kern/kern_synch.c:402 tsleep(ffffffff8291f564,118,ffffffff82421271,417f95) at tsleep+0x1f2 sys/kern/kern_synch.c:163 doppoll(ffff8000211c3508,7f7ffffc9bf0,3,ffff800021200198,0,ffff800021200250) at doppoll+0x577 sys_poll(ffff8000211c3508,ffff800021200200,ffff800021200250) at sys_poll+0xa7 syscall(ffff8000212002d0) at syscall+0x4a1 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000212002d0) at syscall+0x4a1 sys/arch/amd64/amd64/trap.c:590 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc9bd0, count: -14