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(ffffffff82938338,ffff800000b2c100) at pfi_ifhead_RB_REMOVE+0x50 sys/net/pf_if.c:80 pfi_detach_ifgroup(ffff800000af6480) at pfi_detach_ifgroup+0x11b pfi_kif_unref sys/net/pf_if.c:211 [inline] pfi_detach_ifgroup(ffff800000af6480) at pfi_detach_ifgroup+0x11b sys/net/pf_if.c:304 if_delgroup(ffff800000ae5000,ffff800000af6480) 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(ffff8000242ed9c0) 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(ffff8000242eda90) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd806ee2b408,7,fffffd807f7b7720,ffff80002123dce0) at VOP_CLOSE+0xeb sys/kern/vfs_vops.c:177 vn_closefile(fffffd806cb6de50,ffff80002123dce0) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd806cb6de50,ffff80002123dce0) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd806cb6de50,ffff80002123dce0) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd806cb6de50,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(ffff8000242edf10) at syscall+0x55c mi_syscall_return sys/sys/syscall_mi.h:129 [inline] syscall(ffff8000242edf10) at syscall+0x55c sys/arch/amd64/amd64/trap.c:612 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdf010, count: -18 ddb{0}> show registers rdi 0xffffffff82938338 pfi_ifs rsi 0xffff800000b2c100 rbp 0xffff8000242ed820 rbx 0xdeadbeefdeadbeef rdx 0 rcx 0xffff8000006bbb80 rax 0xffff800000b2c110 r8 0xf8 r9 0x8080808080808080 r10 0xbfc7fba7df54edfc r11 0x27ad45b14d8a6c42 r12 0xdeadbeefdeadbeef r13 0xffff800000afbcc0 r14 0xffff800000b2c100 r15 0xffffffff82938338 pfi_ifs rip 0xffffffff81ffff20 pfi_ifhead_RB_REMOVE+0x50 cs 0x8 rflags 0x10282 __ALIGN_SIZE+0xf282 rsp 0xffff8000242ed7c0 ss 0x10 pfi_ifhead_RB_REMOVE+0x50: movq 0x10(%r12),%rbx ddb{0}> show proc PROC (syz-executor.0) pid=231076 stat=onproc flags process=a proc=2000 pri=32, usrpri=76, nice=20 forw=0xffffffffffffffff, list=0xffff80002123cfc0,0xffff80002123c2b0 process=0xffff800021235528 user=0xffff8000242e8000, vmspace=0xfffffd80084925c0 estcpu=26, cpticks=0, pctcpu=0.39 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 12737 455044 57056 0 2 0 syz-executor.1 12737 232075 57056 0 3 0x4000000 clonerlock syz-executor.1 12737 192215 57056 0 3 0x4000000 clonerlock syz-executor.1 59774 45993 0 0 3 0x14200 bored sosplice 57056 518940 21213 0 7 0x2 syz-executor.1 21213 489766 85224 0 3 0x82 thrsleep syz-fuzzer 21213 260714 85224 0 3 0x4000082 thrsleep syz-fuzzer 21213 248046 85224 0 3 0x4000082 thrsleep syz-fuzzer 21213 17695 85224 0 3 0x4000082 thrsleep syz-fuzzer 21213 284795 85224 0 3 0x4000082 thrsleep syz-fuzzer 21213 201015 85224 0 3 0x4000082 thrsleep syz-fuzzer 21213 468879 85224 0 3 0x4000082 thrsleep syz-fuzzer 21213 507131 85224 0 3 0x4000082 kqread syz-fuzzer 85224 178109 16986 0 3 0x10008a sigsusp ksh 16986 141665 66790 0 3 0x92 select sshd 68948 126461 1 0 3 0x100083 ttyin getty 66790 191536 1 0 3 0x80 select sshd 95777 327077 14800 74 3 0x100092 bpf pflogd 14800 353035 1 0 3 0x80 netio pflogd 67606 78653 93631 73 3 0x100090 kqread syslogd 93631 406249 1 0 3 0x100082 netio syslogd 29793 273398 1 77 2 0x100090 dhclient 76198 54970 1 0 3 0x80 poll dhclient 3613 203138 0 0 3 0x14200 bored smr 80939 446589 0 0 3 0x14200 pgzero zerothread 87402 407848 0 0 3 0x14200 aiodoned aiodoned 39648 394212 0 0 3 0x14200 syncer update 51362 430470 0 0 3 0x14200 cleaner cleaner 29283 100390 0 0 3 0x14200 reaper reaper 72912 115220 0 0 3 0x14200 pgdaemon pagedaemon 98511 297495 0 0 3 0x14200 bored crynlk 44399 213154 0 0 3 0x14200 bored crypto 27017 43170 0 0 3 0x14200 bored viomb 92044 37583 0 0 3 0x40014200 acpi0 acpi0 81777 77490 0 0 3 0x40014200 idle1 94911 183992 0 0 3 0x14200 bored softnet 75797 21540 0 0 2 0x14200 systqmp 12769 357345 0 0 3 0x14200 bored systq 80359 261000 0 0 3 0x40014200 bored softclock 70879 501892 0 0 3 0x40014200 idle0 1 514428 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 9515 6429K 7385K 78643K 12372 0 pcb 13 8K 8K 78643K 99 0 rtable 83 2K 3K 78643K 340 0 ifaddr 57 11K 14K 78643K 92 0 counters 44 34K 34K 78643K 54 0 ioctlops 0 0K 4K 78643K 1500 0 iov 0 0K 12K 78643K 30 0 mount 1 1K 1K 78643K 1 0 vnodes 1222 77K 77K 78643K 1739 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 1K 78643K 89 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12598 0 file desc 5 13K 25K 78643K 1601 0 proc 62 63K 95K 78643K 585 0 subproc 23 1K 2K 78643K 68 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 123 0 in_multi 22 1K 2K 78643K 117 0 ether_multi 1 0K 0K 78643K 24 0 mrt 0 0K 0K 78643K 8 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 43 201K 201K 78643K 43 0 exec 0 0K 2K 78643K 439 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 189 159K 168K 78643K 4506 0 UVM aobj 3 2K 2K 78643K 3 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 126 0 NDP 10 0K 0K 78643K 23 0 temp 126 3982K 4110K 78643K 18269 0 kqueue 3 4K 8K 78643K 25 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 10 0 6 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 120 57 0 55 1 0 1 1 0 8 0 rtentry 112 67 0 34 2 0 2 2 0 8 0 unpcb 120 218 0 208 1 0 1 1 0 8 0 syncache 296 13 0 13 3 3 0 1 0 8 0 tcpqe 32 242 0 242 2 2 0 1 0 8 0 tcpcb 736 237 0 233 5 3 2 4 0 8 1 inpcb 296 667 0 660 3 2 1 2 0 8 0 nd6 48 12 0 9 1 0 1 1 0 8 0 kcovpl 48 4 0 3 1 0 1 1 0 8 0 pffrent 40 10 0 10 2 1 1 1 0 8 1 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 56 0 10 1 0 1 1 0 8 0 pfstkey 112 56 0 10 2 0 2 2 0 8 0 pfstate 328 56 0 10 4 0 4 4 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 276 0 88 12 0 12 12 0 8 0 art_table 32 277 0 88 2 0 2 2 0 8 0 art_node 16 66 0 26 1 0 1 1 0 8 0 sysvmsgpl 40 71 0 54 1 0 1 1 0 8 0 semupl 112 4 0 4 1 1 0 1 0 8 0 semapl 112 82 0 72 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 3303 0 1898 91 2 89 89 0 8 0 ffsino 272 3303 0 1898 96 1 95 95 0 8 0 nchpl 144 5258 0 3660 60 0 60 60 0 8 0 uvmvnodes 72 3786 0 0 69 0 69 69 0 8 0 vnodes 224 3786 0 0 223 0 223 223 0 8 0 namei 1024 13323 0 13323 1 0 1 1 0 8 1 percpumem 16 38 0 5 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 16055 0 16055 11 10 1 8 0 8 1 plimitpl 152 72 0 64 1 0 1 1 0 8 0 sigapl 424 1812 0 1779 4 0 4 4 0 8 0 futexpl 56 10340 0 10340 1 0 1 1 0 8 1 knotepl 112 122 0 104 1 0 1 1 0 8 0 kqueuepl 168 613 0 611 1 0 1 1 0 8 0 pipepl 336 139 0 129 2 0 2 2 0 8 0 fdescpl 496 1795 0 1779 3 0 3 3 0 8 0 filepl 152 5683 0 5590 5 0 5 5 0 8 1 lockfpl 104 127 0 126 1 0 1 1 0 8 0 lockfspl 48 57 0 56 1 0 1 1 0 8 0 sessionpl 144 20 0 9 1 0 1 1 0 8 0 pgrppl 48 45 0 34 1 0 1 1 0 8 0 ucredpl 96 490 0 481 1 0 1 1 0 8 0 zombiepl 144 1780 0 1779 1 0 1 1 0 8 0 processpl 1080 1812 0 1779 3 0 3 3 0 8 0 procpl 672 3736 0 3694 4 0 4 4 0 8 0 sosppl 168 14 0 14 2 1 1 1 0 8 1 sockpl 432 943 0 924 4 1 3 4 0 8 0 mcl64k 65536 3 0 0 1 0 1 1 0 8 0 mcl9k 9216 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 9 0 0 2 0 2 2 0 8 0 mcl2k2 2112 6 0 0 1 0 1 1 0 8 0 mcl2k 2048 225 0 0 28 0 28 28 0 8 0 mtagpl 96 143 0 0 4 0 4 4 0 8 0 mbufpl 256 459 0 0 27 0 27 27 0 8 0 bufpl 280 5713 0 181 396 0 396 396 0 8 0 anonpl 24 145337 0 130140 109 4 105 105 0 186 12 amapchunkpl 152 7656 0 7285 22 2 20 20 0 158 5 amappl16 200 6032 0 5432 33 1 32 33 0 8 0 amappl15 192 2 0 0 1 0 1 1 0 8 0 amappl14 184 681 0 677 1 0 1 1 0 8 0 amappl13 176 160 0 158 1 0 1 1 0 8 0 amappl12 168 16 0 12 1 0 1 1 0 8 0 amappl11 160 103 0 86 1 0 1 1 0 8 0 amappl10 152 17 0 12 1 0 1 1 0 8 0 amappl9 144 285 0 284 2 1 1 1 0 8 0 amappl8 136 220 0 153 3 0 3 3 0 8 0 amappl7 128 269 0 261 1 0 1 1 0 8 0 amappl6 120 78 0 63 1 0 1 1 0 8 0 amappl5 112 1181 0 1162 1 0 1 1 0 8 0 amappl4 104 966 0 937 1 0 1 1 0 8 0 amappl3 96 378 0 370 1 0 1 1 0 8 0 amappl2 88 13998 0 13926 3 1 2 3 0 8 0 amappl1 80 58751 0 58271 26 15 11 21 0 8 0 amappl 88 4078 0 3980 3 0 3 3 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 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 1805 0 1779 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1805 0 1779 1 0 1 1 0 8 0 vmmpekpl 168 12505 0 12474 2 0 2 2 0 8 0 vmmpepl 168 229278 0 227389 110 21 89 102 0 357 4 vmsppl 368 1804 0 1779 3 0 3 3 0 8 0 rwobjpl 56 49326 0 47958 26 5 21 21 0 8 1 pdppl 4096 3617 0 3568 66 15 51 51 0 8 2 pvpl 32 667105 0 648783 181 9 172 172 0 265 22 pmappl 232 1804 0 1779 2 0 2 2 0 8 0 extentpl 40 58 0 40 1 0 1 1 0 8 0 phpool 112 343 0 24 10 0 10 10 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace pfi_ifhead_RB_REMOVE(ffffffff82938338,ffff800000b2c100) at pfi_ifhead_RB_REMOVE+0x50 sys/net/pf_if.c:80 pfi_detach_ifgroup(ffff800000af6480) at pfi_detach_ifgroup+0x11b pfi_kif_unref sys/net/pf_if.c:211 [inline] pfi_detach_ifgroup(ffff800000af6480) at pfi_detach_ifgroup+0x11b sys/net/pf_if.c:304 if_delgroup(ffff800000ae5000,ffff800000af6480) 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(ffff8000242ed9c0) 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(ffff8000242eda90) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd806ee2b408,7,fffffd807f7b7720,ffff80002123dce0) at VOP_CLOSE+0xeb sys/kern/vfs_vops.c:177 vn_closefile(fffffd806cb6de50,ffff80002123dce0) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd806cb6de50,ffff80002123dce0) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd806cb6de50,ffff80002123dce0) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd806cb6de50,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(ffff8000242edf10) at syscall+0x55c mi_syscall_return sys/sys/syscall_mi.h:129 [inline] syscall(ffff8000242edf10) at syscall+0x55c sys/arch/amd64/amd64/trap.c:612 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdf010, 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(ffffffff828b9d20) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828b9d20) at __mp_lock+0x122 sys/kern/kern_lock.c:147 syscall(ffff8000226cd750) at syscall+0x3fd mi_syscall sys/sys/syscall_mi.h:93 [inline] syscall(ffff8000226cd750) at syscall+0x3fd sys/arch/amd64/amd64/trap.c:590 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe7c50, count: -6