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(ffffffff828f2268,ffff800000b58a00) at pfi_ifhead_RB_REMOVE+0x50 sys/net/pf_if.c:80 pfi_detach_ifgroup(ffff800000b44e80) at pfi_detach_ifgroup+0x11b pfi_kif_unref sys/net/pf_if.c:211 [inline] pfi_detach_ifgroup(ffff800000b44e80) at pfi_detach_ifgroup+0x11b sys/net/pf_if.c:304 if_delgroup(ffff800000b17000,ffff800000b44e80) at if_delgroup+0x193 sys/net/if.c:2711 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(ffff8000222a4c20) 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(ffff8000222a4cf0) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd806e2906a8,7,fffffd807f7b7720,ffff8000234bd270) at VOP_CLOSE+0xeb sys/kern/vfs_vops.c:177 vn_closefile(fffffd806a1f6e58,ffff8000234bd270) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd806a1f6e58,ffff8000234bd270) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd806a1f6e58,ffff8000234bd270) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd806a1f6e58,ffff8000234bd270) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff8000234bd270) at fdfree+0xf4 sys/kern/kern_descrip.c:1195 exit1(ffff8000234bd270,0,0,1) at exit1+0x335 sys/kern/kern_exit.c:200 sys_exit(ffff8000234bd270,ffff8000222a4f80,ffff8000222a4fd0) at sys_exit+0x16 sys/kern/kern_exit.c:96 syscall(ffff8000222a5050) at syscall+0x4a1 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000222a5050) at syscall+0x4a1 sys/arch/amd64/amd64/trap.c:590 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc2780, count: -17 ddb{0}> show registers rdi 0xffffffff828f2268 pfi_ifs rsi 0xffff800000b58a00 rbp 0xffff8000222a4a80 rbx 0xdeadbeefdeadbeef rdx 0 rcx 0xffff800000b44000 rax 0xffff800000b58a10 r8 0xf8 r9 0x8080808080808080 r10 0x9992f2322a28b2d7 r11 0x952a0131f60ae24e r12 0xdeadbeefdeadbeef r13 0xffff800000afbe60 r14 0xffff800000b58a00 r15 0xffffffff828f2268 pfi_ifs rip 0xffffffff81840220 pfi_ifhead_RB_REMOVE+0x50 cs 0x8 rflags 0x10282 __ALIGN_SIZE+0xf282 rsp 0xffff8000222a4a20 ss 0x10 pfi_ifhead_RB_REMOVE+0x50: movq 0x10(%r12),%rbx ddb{0}> show proc PROC (syz-executor.1) pid=128854 stat=onproc flags process=1008 proc=2000 pri=32, usrpri=77, nice=20 forw=0xffffffffffffffff, list=0xffff8000234bcd30,0xffffffff828c90e0 process=0xffff800024531968 user=0xffff8000222a0000, vmspace=0xfffffd806619bb98 estcpu=27, cpticks=0, pctcpu=0.6 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 81927 128629 0 0 3 0x14200 bored sosplice 85658 10119 61006 0 3 0x82 nanoslp syz-executor.0 18138 492666 0 0 3 0x14280 nfsidl nfsio 7958 228887 0 0 3 0x14280 nfsidl nfsio 86113 512276 0 0 3 0x14280 nfsidl nfsio 92523 87040 0 0 3 0x14280 nfsidl nfsio 66661 330998 0 0 3 0x14280 nfsidl nfsio 44682 134489 0 0 3 0x14280 nfsidl nfsio 44070 32724 0 0 3 0x14280 nfsidl nfsio 1643 280579 0 0 3 0x14280 nfsidl nfsio 32318 476084 0 0 3 0x14280 nfsidl nfsio 17062 256488 0 0 3 0x14280 nfsidl nfsio 88155 222787 0 0 3 0x14280 nfsidl nfsio 21281 486061 0 0 3 0x14280 nfsidl nfsio 47403 394116 0 0 3 0x14280 nfsidl nfsio 90966 244385 0 0 3 0x14280 nfsidl nfsio 88719 186703 0 0 3 0x14280 nfsidl nfsio 28787 284242 0 0 3 0x14280 nfsidl nfsio 63389 350108 0 0 3 0x14280 nfsidl nfsio 20587 9902 0 0 3 0x14280 nfsidl nfsio 53080 457042 0 0 3 0x14280 nfsidl nfsio 89697 277253 0 0 3 0x14280 nfsidl nfsio 61006 381663 44084 0 3 0x82 thrsleep syz-fuzzer 61006 389935 44084 0 3 0x4000082 thrsleep syz-fuzzer 61006 100050 44084 0 3 0x4000082 thrsleep syz-fuzzer 61006 379930 44084 0 3 0x4000082 thrsleep syz-fuzzer 61006 506789 44084 0 3 0x4000082 thrsleep syz-fuzzer 61006 265507 44084 0 3 0x4000082 kqread syz-fuzzer 61006 174236 44084 0 3 0x4000082 thrsleep syz-fuzzer 61006 206134 44084 0 3 0x4000082 thrsleep syz-fuzzer 44084 302010 43884 0 3 0x10008a sigsusp ksh 43884 87487 62028 0 3 0x92 select sshd 57992 491611 1 0 3 0x100083 ttyin getty 62028 247680 1 0 3 0x80 select sshd 10616 185994 22650 74 3 0x100092 bpf pflogd 22650 270964 1 0 3 0x80 netio pflogd 76316 490854 34840 73 3 0x100090 kqread syslogd 34840 382355 1 0 3 0x100082 netio syslogd 65134 227588 1 77 7 0x100090 dhclient 50639 246665 1 0 3 0x80 poll dhclient 7538 383033 0 0 3 0x14200 bored smr 3054 515480 0 0 3 0x14200 pgzero zerothread 94002 427653 0 0 3 0x14200 aiodoned aiodoned 75841 469263 0 0 3 0x14200 syncer update 11882 395379 0 0 3 0x14200 cleaner cleaner 18924 111861 0 0 3 0x14200 reaper reaper 73705 97874 0 0 3 0x14200 pgdaemon pagedaemon 16761 406598 0 0 3 0x14200 bored crynlk 4165 288499 0 0 3 0x14200 bored crypto 45808 276 0 0 3 0x14200 bored viomb 84478 157105 0 0 3 0x40014200 acpi0 acpi0 80998 228857 0 0 3 0x40014200 idle1 89331 293833 0 0 3 0x14200 bored softnet 8221 435590 0 0 2 0x14200 systqmp 7630 90945 0 0 3 0x14200 bored systq 88263 488609 0 0 3 0x40014200 bored softclock 84268 328906 0 0 3 0x40014200 idle0 1 514625 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 9554 6448K 7157K 78643K 14893 0 pcb 13 8K 8K 78643K 157 0 rtable 86 3K 4K 78643K 645 0 ifaddr 77 14K 15K 78643K 228 0 sysctl 2 0K 0K 78643K 2 0 counters 44 34K 34K 78643K 106 0 ioctlops 0 0K 4K 78643K 1539 0 iov 0 0K 12K 78643K 67 0 mount 1 1K 1K 78643K 1 0 vnodes 1226 77K 77K 78643K 2878 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 21 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 1K 78643K 45 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12598 0 file desc 4 9K 25K 78643K 4692 0 sigio 0 0K 0K 78643K 70 0 proc 72 63K 96K 78643K 790 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 300 0 in_multi 22 1K 2K 78643K 241 0 ether_multi 1 0K 0K 78643K 69 0 mrt 0 0K 0K 78643K 16 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 67 307K 307K 78643K 67 0 exec 0 0K 2K 78643K 499 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 156 155K 156K 78643K 11579 0 UVM aobj 37 2K 2K 78643K 37 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 153 0 NDP 15 0K 0K 78643K 54 0 temp 146 3983K 4053K 78643K 24803 0 kqueue 3 4K 16K 78643K 207 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 24 0 20 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 120 82 0 80 1 0 1 1 0 8 0 rtentry 112 109 0 76 2 0 2 2 0 8 0 unpcb 120 670 0 660 1 0 1 1 0 8 0 syncache 296 54 0 54 4 4 0 1 0 8 0 tcpqe 32 88 0 88 4 4 0 1 0 8 0 tcpcb 736 741 0 731 13 11 2 4 0 8 1 inpcb 304 1621 0 1614 9 7 2 2 0 8 1 nd6 48 12 0 9 1 0 1 1 0 8 0 pkpcb 40 15 0 15 2 2 0 1 0 8 0 kcovpl 48 4 0 3 1 0 1 1 0 8 0 ppxss 1128 18 0 18 2 2 0 1 0 8 0 pffrag 232 3 0 3 1 1 0 1 0 482 0 pffrnode 88 3 0 3 1 1 0 1 0 8 0 pffrent 40 5 0 5 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 36 0 33 1 0 1 1 0 8 0 pfstkey 112 36 0 33 1 0 1 1 0 8 0 pfstate 328 36 0 33 3 2 1 2 0 8 0 pfrule 1360 30 0 24 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 311 0 120 13 0 13 13 0 8 0 art_table 32 312 0 120 2 0 2 2 0 8 0 art_node 16 108 0 71 1 0 1 1 0 8 0 sysvmsgpl 40 40 0 0 1 0 1 1 0 8 0 semupl 112 6 0 6 1 1 0 1 0 8 0 semapl 112 37 0 27 1 0 1 1 0 8 0 shmpl 112 34 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 7025 0 5619 90 1 89 89 0 8 0 ffsino 272 7025 0 5619 95 0 95 95 0 8 0 nchpl 144 12274 0 10689 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 30923 0 30923 1 0 1 1 0 8 1 percpumem 16 64 0 31 1 0 1 1 0 8 0 vcpupl 1984 10 0 0 2 0 2 2 0 8 0 vmpool 560 18 0 8 1 0 1 1 0 8 0 scxspl 216 37537 0 37537 9 8 1 8 0 8 1 plimitpl 152 175 0 167 1 0 1 1 0 8 0 sigapl 424 4923 0 4871 7 0 7 7 0 8 0 futexpl 56 29424 0 29424 1 0 1 1 0 8 1 knotepl 112 333 0 319 1 0 1 1 0 8 0 kqueuepl 168 2359 0 2357 1 0 1 1 0 8 0 pipepl 336 181 0 173 7 5 2 2 0 8 1 fdescpl 496 4886 0 4871 3 0 3 3 0 8 0 filepl 152 15033 0 14946 7 2 5 6 0 8 1 lockfpl 104 398 0 397 1 0 1 1 0 8 0 lockfspl 48 110 0 109 1 0 1 1 0 8 0 sessionpl 144 20 0 9 1 0 1 1 0 8 0 pgrppl 48 35 0 24 1 0 1 1 0 8 0 ucredpl 96 2035 0 2026 1 0 1 1 0 8 0 zombiepl 144 4872 0 4870 1 0 1 1 0 8 0 processpl 1080 4923 0 4870 4 0 4 4 0 8 0 procpl 672 10610 0 10550 6 0 6 6 0 8 0 sosppl 168 28 0 28 4 4 0 1 0 8 0 sockpl 432 2388 0 2369 12 8 4 5 0 8 1 mcl64k 65536 13 0 0 2 0 2 2 0 8 0 mcl16k 16384 4 0 0 1 0 1 1 0 8 0 mcl12k 12288 5 0 0 1 0 1 1 0 8 0 mcl9k 9216 6 0 0 1 0 1 1 0 8 0 mcl8k 8192 13 0 0 2 0 2 2 0 8 0 mcl4k 4096 18 0 0 3 0 3 3 0 8 0 mcl2k2 2112 8 0 0 1 0 1 1 0 8 0 mcl2k 2048 221 0 0 18 0 18 18 0 8 0 mtagpl 96 328 0 0 8 0 8 8 0 8 0 mbufpl 256 935 0 0 54 1 53 53 0 8 0 bufpl 280 9500 0 3251 447 0 447 447 0 8 0 anonpl 24 339376 0 332920 69 23 46 49 0 186 0 amapchunkpl 152 18213 0 17998 16 7 9 12 0 158 0 amappl16 200 14276 0 14014 24 9 15 15 0 8 0 amappl15 192 6 0 4 1 0 1 1 0 8 0 amappl14 184 28 0 23 1 0 1 1 0 8 0 amappl13 176 2388 0 2385 1 0 1 1 0 8 0 amappl12 168 2 0 1 2 1 1 1 0 8 0 amappl11 160 1719 0 1700 1 0 1 1 0 8 0 amappl10 152 18 0 12 1 0 1 1 0 8 0 amappl9 144 602 0 601 2 1 1 1 0 8 0 amappl8 136 349 0 298 2 0 2 2 0 8 0 amappl7 128 851 0 843 1 0 1 1 0 8 0 amappl6 120 78 0 65 1 0 1 1 0 8 0 amappl5 112 7237 0 7219 1 0 1 1 0 8 0 amappl4 104 299 0 276 1 0 1 1 0 8 0 amappl3 96 2501 0 2491 1 0 1 1 0 8 0 amappl2 88 38127 0 38058 3 1 2 3 0 8 0 amappl1 80 143200 0 142731 27 15 12 21 0 8 0 amappl 88 10908 0 10842 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 36 0 0 1 0 1 1 0 8 0 uaddrrnd 24 4904 0 4879 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4904 0 4879 1 0 1 1 0 8 0 vmmpekpl 168 21898 0 21861 2 0 2 2 0 8 0 vmmpepl 168 614515 0 613077 100 27 73 77 0 357 0 vmsppl 368 4903 0 4879 4 1 3 3 0 8 0 rwobjpl 56 126850 0 125864 29 14 15 19 0 8 0 pdppl 4096 9815 0 9768 70 19 51 52 0 8 4 pvpl 32 1785733 0 1776197 169 77 92 117 0 265 3 pmappl 232 4903 0 4879 3 1 2 2 0 8 0 extentpl 40 58 0 40 1 0 1 1 0 8 0 phpool 112 382 0 41 10 0 10 10 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace pfi_ifhead_RB_REMOVE(ffffffff828f2268,ffff800000b58a00) at pfi_ifhead_RB_REMOVE+0x50 sys/net/pf_if.c:80 pfi_detach_ifgroup(ffff800000b44e80) at pfi_detach_ifgroup+0x11b pfi_kif_unref sys/net/pf_if.c:211 [inline] pfi_detach_ifgroup(ffff800000b44e80) at pfi_detach_ifgroup+0x11b sys/net/pf_if.c:304 if_delgroup(ffff800000b17000,ffff800000b44e80) at if_delgroup+0x193 sys/net/if.c:2711 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(ffff8000222a4c20) 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(ffff8000222a4cf0) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd806e2906a8,7,fffffd807f7b7720,ffff8000234bd270) at VOP_CLOSE+0xeb sys/kern/vfs_vops.c:177 vn_closefile(fffffd806a1f6e58,ffff8000234bd270) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd806a1f6e58,ffff8000234bd270) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd806a1f6e58,ffff8000234bd270) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd806a1f6e58,ffff8000234bd270) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff8000234bd270) at fdfree+0xf4 sys/kern/kern_descrip.c:1195 exit1(ffff8000234bd270,0,0,1) at exit1+0x335 sys/kern/kern_exit.c:200 sys_exit(ffff8000234bd270,ffff8000222a4f80,ffff8000222a4fd0) at sys_exit+0x16 sys/kern/kern_exit.c:96 syscall(ffff8000222a5050) at syscall+0x4a1 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000222a5050) at syscall+0x4a1 sys/arch/amd64/amd64/trap.c:590 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc2780, 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 __mp_lock(ffffffff828c9108) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828c9108) at __mp_lock+0x122 sys/kern/kern_lock.c:147 __mp_acquire_count(ffffffff828c9108,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(ffff800021200148,1) at sleep_finish+0x111 sys/kern/kern_synch.c:427 sleep_finish_all(ffff800021200148,1) at sleep_finish_all+0x32 sleep_finish_timeout sys/kern/kern_synch.c:457 [inline] sleep_finish_all(ffff800021200148,1) at sleep_finish_all+0x32 sys/kern/kern_synch.c:402 tsleep(ffffffff828ed1dc,118,ffffffff82421352,4198cd) at tsleep+0x1f2 sys/kern/kern_synch.c:163 doppoll(ffff8000211c3508,7f7ffffcd270,3,ffff8000212002d8,0,ffff800021200390) at doppoll+0x577 sys_poll(ffff8000211c3508,ffff800021200340,ffff800021200390) at sys_poll+0xa7 syscall(ffff800021200410) at syscall+0x4a1 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021200410) at syscall+0x4a1 sys/arch/amd64/amd64/trap.c:590 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcd250, count: -13