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(ffffffff8291bae0,ffff800000b1fd00) at pfi_ifhead_RB_REMOVE+0x50 sys/net/pf_if.c:80 pfi_detach_ifgroup(ffff800000af6a80) at pfi_detach_ifgroup+0x11b pfi_kif_unref sys/net/pf_if.c:211 [inline] pfi_detach_ifgroup(ffff800000af6a80) at pfi_detach_ifgroup+0x11b sys/net/pf_if.c:304 if_delgroup(ffff800000b17000,ffff800000af6a80) at if_delgroup+0x193 sys/net/if.c:2700 if_detach(ffff800000b17000) at if_detach+0x1cb sys/net/if.c:1049 tun_clone_destroy(ffff800000b17000) at tun_clone_destroy+0x1e1 sys/net/if_tun.c:325 if_clone_destroy(ffff8000232cb300) 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(ffff8000232cb3d0) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd807a154868,7,fffffd807f7b7720,ffff800021280d20) at VOP_CLOSE+0xeb sys/kern/vfs_vops.c:177 vn_closefile(fffffd8068614ef8,ffff800021280d20) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd8068614ef8,ffff800021280d20) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd8068614ef8,ffff800021280d20) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd8068614ef8,ffff800021280d20) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff800021280d20) at fdfree+0xf4 sys/kern/kern_descrip.c:1195 exit1(ffff800021280d20,0,19,1) at exit1+0x335 sys/kern/kern_exit.c:200 postsig(ffff800021280d20,19) at postsig+0x59c sigexit sys/kern/kern_sig.c:1494 [inline] postsig(ffff800021280d20,19) at postsig+0x59c sys/kern/kern_sig.c:1423 userret(ffff800021280d20) at userret+0x189 sys/kern/kern_sig.c:1914 syscall(ffff8000232cb850) at syscall+0x55c mi_syscall_return sys/sys/syscall_mi.h:129 [inline] syscall(ffff8000232cb850) at syscall+0x55c sys/arch/amd64/amd64/trap.c:612 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd7ce0, count: -18 ddb{0}> show registers rdi 0xffffffff8291bae0 pfi_ifs rsi 0xffff800000b1fd00 rbp 0xffff8000232cb160 rbx 0xdeaf4152deaf4152 rdx 0 rcx 0xffff800000af6580 rax 0xffff800000b1fd10 r8 0xf8 r9 0x8080808080808080 r10 0x7b6a661b5fc9c037 r11 0xd71368d1499685c5 r12 0xdeaf4152deaf4152 r13 0xffff800000afb680 r14 0xffff800000b1fd00 r15 0xffffffff8291bae0 pfi_ifs rip 0xffffffff81a01100 pfi_ifhead_RB_REMOVE+0x50 cs 0x8 rflags 0x10282 __ALIGN_SIZE+0xf282 rsp 0xffff8000232cb100 ss 0x10 pfi_ifhead_RB_REMOVE+0x50: movq 0x10(%r12),%rbx ddb{0}> show proc PROC (syz-executor.1) pid=161661 stat=onproc flags process=a proc=2000 pri=32, usrpri=78, nice=20 forw=0xffffffffffffffff, list=0xffff800021281500,0xffff8000212802b0 process=0xffff800021235528 user=0xffff8000232c6000, vmspace=0xfffffd8008496730 estcpu=36, cpticks=3, pctcpu=0.45 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 30063 516676 0 0 3 0x14200 bored sosplice 91494 195590 1 0 3 0x100083 ttyin getty 98941 102158 72983 0 3 0x82 piperd syz-executor.0 72983 507848 54052 0 3 0x82 thrsleep syz-fuzzer 72983 80502 54052 0 3 0x4000082 thrsleep syz-fuzzer 72983 311489 54052 0 3 0x4000082 thrsleep syz-fuzzer 72983 409121 54052 0 3 0x4000082 thrsleep syz-fuzzer 72983 210581 54052 0 3 0x4000082 thrsleep syz-fuzzer 72983 265381 54052 0 3 0x4000082 thrsleep syz-fuzzer 72983 72031 54052 0 3 0x4000082 kqread syz-fuzzer 72983 274054 54052 0 3 0x4000082 thrsleep syz-fuzzer 54052 16338 27338 0 3 0x10008a sigsusp ksh 27338 416287 57240 0 3 0x92 select sshd 57240 192448 1 0 3 0x80 select sshd 38439 68796 61311 74 3 0x100092 bpf pflogd 61311 232421 1 0 3 0x80 netio pflogd 86082 496752 27041 73 3 0x100090 kqread syslogd 27041 467964 1 0 3 0x100082 netio syslogd 55505 18316 1 77 7 0x100090 dhclient 31910 54737 1 0 3 0x80 poll dhclient 31188 336514 0 0 3 0x14200 bored smr 2062 288807 0 0 2 0x14200 zerothread 20005 156845 0 0 3 0x14200 aiodoned aiodoned 35179 183724 0 0 3 0x14200 syncer update 93532 132051 0 0 3 0x14200 cleaner cleaner 99663 38973 0 0 3 0x14200 reaper reaper 58618 155632 0 0 3 0x14200 pgdaemon pagedaemon 677 352474 0 0 3 0x14200 bored crynlk 7429 379053 0 0 3 0x14200 bored crypto 56953 236214 0 0 3 0x14200 bored viomb 18769 410379 0 0 3 0x40014200 acpi0 acpi0 16607 52174 0 0 3 0x40014200 idle1 53977 303774 0 0 3 0x14200 bored softnet 1648 57944 0 0 2 0x14200 systqmp 19579 223792 0 0 3 0x14200 bored systq 63353 127750 0 0 3 0x40014200 bored softclock 69778 433985 0 0 3 0x40014200 idle0 1 144552 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 9501 6439K 6888K 78643K 12089 0 pcb 13 8K 8K 78643K 155 0 rtable 86 3K 4K 78643K 508 0 ifaddr 49 11K 12K 78643K 98 0 counters 44 34K 34K 78643K 64 0 ioctlops 0 0K 4K 78643K 1519 0 iov 0 0K 12K 78643K 72 0 mount 1 1K 1K 78643K 1 0 vnodes 1221 77K 77K 78643K 1807 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 1K 78643K 2 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 147 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12598 0 file desc 4 9K 25K 78643K 1672 0 proc 62 63K 95K 78643K 499 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 86 0 in_multi 22 1K 2K 78643K 78 0 ether_multi 1 0K 0K 78643K 20 0 mrt 0 0K 0K 78643K 162 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 37 175K 175K 78643K 37 0 exec 0 0K 2K 78643K 369 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 111 22K 23K 78643K 4579 0 UVM aobj 4 2K 2K 78643K 35 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 100 0 NDP 8 0K 0K 78643K 22 0 temp 82 3972K 4040K 78643K 15839 0 kqueue 3 4K 12K 78643K 108 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 6 0 2 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 120 47 0 45 1 0 1 1 0 8 0 rtentry 112 126 0 93 2 0 2 2 0 8 0 unpcb 120 424 0 414 1 0 1 1 0 8 0 syncache 296 4 0 4 1 1 0 1 0 8 0 tcpqe 32 93 0 93 1 1 0 1 0 8 0 tcpcb 736 267 0 258 7 5 2 5 0 8 1 inpcb 304 759 0 752 4 2 2 2 0 8 1 rttmr 72 81 0 81 2 2 0 1 0 8 0 nd6 48 6 0 3 1 0 1 1 0 8 0 pkpcb 40 5 0 5 1 1 0 1 0 8 0 kcovpl 48 2 0 1 1 0 1 1 0 8 0 ppxss 1128 10 0 10 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 pfstitem 24 17 0 11 1 0 1 1 0 8 0 pfstkey 112 17 0 11 1 0 1 1 0 8 0 pfstate 320 17 0 11 2 1 1 2 0 8 0 pfrule 1360 52 0 41 3 1 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 189 0 0 12 0 12 12 0 8 0 art_table 32 190 0 0 2 0 2 2 0 8 0 art_node 16 125 0 85 1 0 1 1 0 8 0 semapl 112 145 0 135 1 0 1 1 0 8 0 shmpl 112 32 0 31 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 3491 0 2088 89 1 88 89 0 8 0 ffsino 272 3491 0 2088 95 0 95 95 0 8 0 nchpl 144 5598 0 3994 60 0 60 60 0 8 0 uvmvnodes 72 3961 0 0 73 0 73 73 0 8 0 vnodes 224 3961 0 0 233 0 233 233 0 8 0 namei 1024 13326 0 13326 1 0 1 1 0 8 1 percpumem 16 43 0 10 1 0 1 1 0 8 0 scxspl 216 17270 0 17270 10 9 1 8 0 8 1 plimitpl 152 25 0 17 1 0 1 1 0 8 0 sigapl 424 1890 0 1858 4 0 4 4 0 8 0 futexpl 56 11854 0 11854 1 0 1 1 0 8 1 knotepl 112 200 0 182 1 0 1 1 0 8 0 kqueuepl 168 787 0 785 1 0 1 1 0 8 0 pipepl 336 105 0 95 4 2 2 2 0 8 1 fdescpl 496 1873 0 1858 3 0 3 3 0 8 0 filepl 152 6114 0 6023 5 0 5 5 0 8 0 lockfpl 104 268 0 267 1 0 1 1 0 8 0 lockfspl 48 86 0 85 1 0 1 1 0 8 0 sessionpl 144 19 0 8 1 0 1 1 0 8 0 pgrppl 48 19 0 8 1 0 1 1 0 8 0 ucredpl 96 450 0 441 1 0 1 1 0 8 0 zombiepl 144 1859 0 1858 1 0 1 1 0 8 0 processpl 1080 1890 0 1858 3 0 3 3 0 8 0 procpl 672 3946 0 3907 5 1 4 5 0 8 0 sosppl 168 4 0 4 1 1 0 1 0 8 0 sockpl 432 1240 0 1221 6 2 4 4 0 8 1 mcl64k 65536 5 0 0 1 0 1 1 0 8 0 mcl12k 12288 4 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 162 0 0 15 0 15 15 0 8 0 mtagpl 96 80 0 0 2 0 2 2 0 8 0 mbufpl 256 420 0 0 25 0 25 25 0 8 0 bufpl 280 5955 0 181 413 0 413 413 0 8 0 anonpl 24 158179 0 153007 80 46 34 78 0 186 1 amapchunkpl 152 6937 0 6785 9 1 8 8 0 158 0 amappl16 200 6760 0 6567 37 26 11 34 0 8 0 amappl15 192 1646 0 1644 1 0 1 1 0 8 0 amappl14 184 23 0 19 1 0 1 1 0 8 0 amappl13 176 32 0 31 1 0 1 1 0 8 0 amappl12 168 6 0 2 1 0 1 1 0 8 0 amappl11 160 54 0 37 1 0 1 1 0 8 0 amappl10 152 17 0 12 1 0 1 1 0 8 0 amappl9 144 17 0 16 1 0 1 1 0 8 0 amappl8 136 168 0 118 2 0 2 2 0 8 0 amappl7 128 246 0 237 1 0 1 1 0 8 0 amappl6 120 68 0 57 1 0 1 1 0 8 0 amappl5 112 2569 0 2549 1 0 1 1 0 8 0 amappl4 104 286 0 258 2 1 1 2 0 8 0 amappl3 96 131 0 124 1 0 1 1 0 8 0 amappl2 88 14105 0 14044 3 1 2 3 0 8 0 amappl1 80 61556 0 61102 28 17 11 21 0 8 0 amappl 88 4202 0 4157 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 34 0 31 1 0 1 1 0 8 0 uaddrrnd 24 1873 0 1858 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1873 0 1858 1 0 1 1 0 8 0 vmmpekpl 168 13525 0 13495 2 0 2 2 0 8 0 vmmpepl 168 238027 0 236735 101 33 68 86 0 357 0 vmsppl 368 1872 0 1858 2 0 2 2 0 8 0 rwobjpl 56 52214 0 51340 30 16 14 20 0 8 0 pdppl 4096 3753 0 3716 57 16 41 45 0 8 4 pvpl 32 704181 0 696014 146 57 89 134 0 265 18 pmappl 232 1872 0 1858 2 1 1 2 0 8 0 extentpl 40 58 0 40 1 0 1 1 0 8 0 phpool 112 320 0 27 9 0 9 9 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace pfi_ifhead_RB_REMOVE(ffffffff8291bae0,ffff800000b1fd00) at pfi_ifhead_RB_REMOVE+0x50 sys/net/pf_if.c:80 pfi_detach_ifgroup(ffff800000af6a80) at pfi_detach_ifgroup+0x11b pfi_kif_unref sys/net/pf_if.c:211 [inline] pfi_detach_ifgroup(ffff800000af6a80) at pfi_detach_ifgroup+0x11b sys/net/pf_if.c:304 if_delgroup(ffff800000b17000,ffff800000af6a80) at if_delgroup+0x193 sys/net/if.c:2700 if_detach(ffff800000b17000) at if_detach+0x1cb sys/net/if.c:1049 tun_clone_destroy(ffff800000b17000) at tun_clone_destroy+0x1e1 sys/net/if_tun.c:325 if_clone_destroy(ffff8000232cb300) 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(ffff8000232cb3d0) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd807a154868,7,fffffd807f7b7720,ffff800021280d20) at VOP_CLOSE+0xeb sys/kern/vfs_vops.c:177 vn_closefile(fffffd8068614ef8,ffff800021280d20) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd8068614ef8,ffff800021280d20) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd8068614ef8,ffff800021280d20) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd8068614ef8,ffff800021280d20) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff800021280d20) at fdfree+0xf4 sys/kern/kern_descrip.c:1195 exit1(ffff800021280d20,0,19,1) at exit1+0x335 sys/kern/kern_exit.c:200 postsig(ffff800021280d20,19) at postsig+0x59c sigexit sys/kern/kern_sig.c:1494 [inline] postsig(ffff800021280d20,19) at postsig+0x59c sys/kern/kern_sig.c:1423 userret(ffff800021280d20) at userret+0x189 sys/kern/kern_sig.c:1914 syscall(ffff8000232cb850) at syscall+0x55c mi_syscall_return sys/sys/syscall_mi.h:129 [inline] syscall(ffff8000232cb850) at syscall+0x55c sys/arch/amd64/amd64/trap.c:612 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd7ce0, 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(ffffffff828f25f0) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828f25f0) at __mp_lock+0x122 sys/kern/kern_lock.c:147 __mp_acquire_count(ffffffff828f25f0,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(ffff8000212000e8,1) at sleep_finish+0x111 sys/kern/kern_synch.c:427 sleep_finish_all(ffff8000212000e8,1) at sleep_finish_all+0x32 sleep_finish_timeout sys/kern/kern_synch.c:457 [inline] sleep_finish_all(ffff8000212000e8,1) at sleep_finish_all+0x32 sys/kern/kern_synch.c:402 tsleep(ffffffff828ffa70,118,ffffffff82420ef3,41c7d9) at tsleep+0x1f2 sys/kern/kern_synch.c:163 doppoll(ffff8000211c3a48,7f7ffffbe9f0,3,ffff800021200278,0,ffff800021200330) at doppoll+0x577 sys_poll(ffff8000211c3a48,ffff8000212002e0,ffff800021200330) at sys_poll+0xa7 syscall(ffff8000212003b0) at syscall+0x4a1 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000212003b0) at syscall+0x4a1 sys/arch/amd64/amd64/trap.c:590 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffbe9d0, count: -13