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(ffffffff828f47b8,ffff800000c3eb00) at pfi_ifhead_RB_REMOVE+0x50 sys/net/pf_if.c:80 pfi_detach_ifgroup(ffff800000bc7800) at pfi_detach_ifgroup+0x11b pfi_kif_unref sys/net/pf_if.c:211 [inline] pfi_detach_ifgroup(ffff800000bc7800) at pfi_detach_ifgroup+0x11b sys/net/pf_if.c:304 if_delgroup(ffff800000b17000,ffff800000bc7800) 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(ffff8000222fb4e0) 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(ffff8000222fb5b0) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd806e7124e8,7,fffffd807f7b78a0,ffff80002127a540) at VOP_CLOSE+0xeb sys/kern/vfs_vops.c:177 vn_closefile(fffffd806c78def0,ffff80002127a540) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd806c78def0,ffff80002127a540) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd806c78def0,ffff80002127a540) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd806c78def0,ffff80002127a540) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff80002127a540) at fdfree+0xf4 sys/kern/kern_descrip.c:1195 exit1(ffff80002127a540,0,0,1) at exit1+0x335 sys/kern/kern_exit.c:200 sys_exit(ffff80002127a540,ffff8000222fb840,ffff8000222fb890) at sys_exit+0x16 sys/kern/kern_exit.c:96 syscall(ffff8000222fb910) at syscall+0x4a1 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000222fb910) at syscall+0x4a1 sys/arch/amd64/amd64/trap.c:590 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe9080, count: -17 ddb{1}> show registers rdi 0xffffffff828f47b8 pfi_ifs rsi 0xffff800000c3eb00 rbp 0xffff8000222fb340 rbx 0xdead4110dead4110 rdx 0 rcx 0xffff800000bc7580 rax 0xffff800000c3eb10 r8 0x101010101010101 r9 0x8080808080808080 r10 0x9c238a0341405feb r11 0xf041b5f73090fd22 r12 0xdead4110dead4110 r13 0xffff800000afb920 r14 0xffff800000c3eb00 r15 0xffffffff828f47b8 pfi_ifs rip 0xffffffff81c57cf0 pfi_ifhead_RB_REMOVE+0x50 cs 0x8 rflags 0x10282 __ALIGN_SIZE+0xf282 rsp 0xffff8000222fb2e0 ss 0x10 pfi_ifhead_RB_REMOVE+0x50: movq 0x10(%r12),%rbx ddb{1}> show proc PROC (syz-executor.1) pid=495790 stat=onproc flags process=1008 proc=2000 pri=32, usrpri=75, nice=20 forw=0xffffffffffffffff, list=0xffff80002127ad20,0xffff80002127b270 process=0xffff8000212376e8 user=0xffff8000222f6000, vmspace=0xfffffd8066d6e8a0 estcpu=25, cpticks=2, pctcpu=0.2 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 26320 142341 95445 0 7 0 syz-executor.0 61561 66398 1 0 3 0x100083 ttyin getty 78027 378456 0 0 3 0x14200 bored sosplice 95445 364753 21663 0 3 0x82 nanoslp syz-executor.0 21663 251784 16200 0 3 0x82 thrsleep syz-fuzzer 21663 2055 16200 0 3 0x4000082 nanoslp syz-fuzzer 21663 60490 16200 0 3 0x4000082 thrsleep syz-fuzzer 21663 442590 16200 0 3 0x4000082 thrsleep syz-fuzzer 21663 492729 16200 0 3 0x4000082 thrsleep syz-fuzzer 21663 122104 16200 0 3 0x4000082 thrsleep syz-fuzzer 21663 68662 16200 0 3 0x4000082 kqread syz-fuzzer 21663 13962 16200 0 3 0x4000082 nanoslp syz-fuzzer 16200 230041 88574 0 3 0x10008a sigsusp ksh 88574 462540 87768 0 3 0x92 select sshd 87768 434048 1 0 3 0x80 select sshd 52400 509080 2828 74 3 0x100092 bpf pflogd 2828 488510 1 0 3 0x80 netio pflogd 76236 514895 77223 73 3 0x100090 kqread syslogd 77223 240076 1 0 3 0x100082 netio syslogd 53218 29099 1 77 2 0x100090 dhclient 37332 461869 1 0 3 0x80 poll dhclient 98783 471421 0 0 3 0x14200 bored smr 19637 318333 0 0 3 0x14200 pgzero zerothread 53100 377364 0 0 3 0x14200 aiodoned aiodoned 55572 280262 0 0 3 0x14200 syncer update 58940 514251 0 0 3 0x14200 cleaner cleaner 12082 210444 0 0 3 0x14200 reaper reaper 42140 382414 0 0 3 0x14200 pgdaemon pagedaemon 26033 350587 0 0 3 0x14200 bored crynlk 32510 447308 0 0 3 0x14200 bored crypto 99945 427174 0 0 3 0x14200 bored viomb 41740 126588 0 0 3 0x40014200 acpi0 acpi0 90663 243049 0 0 3 0x40014200 idle1 21208 94085 0 0 3 0x14200 bored softnet 13099 405934 0 0 2 0x14200 systqmp 4798 347894 0 0 3 0x14200 bored systq 55988 322426 0 0 3 0x40014200 bored softclock 42651 511989 0 0 3 0x40014200 idle0 1 239246 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 9520 6437K 7012K 78643K 13437 0 pcb 13 8K 8K 78643K 100 0 rtable 86 3K 4K 78643K 605 0 ifaddr 67 15K 17K 78643K 305 0 counters 46 34K 34K 78643K 154 0 ioctlops 0 0K 4K 78643K 1561 0 iov 0 0K 12K 78643K 117 0 mount 1 1K 1K 78643K 1 0 vnodes 1212 76K 77K 78643K 2455 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 50 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 195 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12598 0 file desc 5 13K 25K 78643K 3062 0 sigio 0 0K 0K 78643K 17 0 proc 62 63K 83K 78643K 501 0 subproc 23 1K 2K 78643K 51 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 162 0 in_multi 22 1K 2K 78643K 71 0 ether_multi 1 0K 0K 78643K 9 0 mrt 0 0K 0K 78643K 14 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 61 281K 281K 78643K 61 0 exec 0 0K 2K 78643K 397 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 295 1003K 1003K 78643K 7707 0 UVM aobj 89 8K 8K 78643K 90 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 91 0 NDP 11 0K 0K 78643K 71 0 temp 136 3985K 4049K 78643K 13811 0 kqueue 3 4K 22K 78643K 235 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 8 0 4 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 120 178 0 176 1 0 1 1 0 8 0 rtentry 112 63 0 30 2 0 2 2 0 8 0 unpcb 120 723 0 713 1 0 1 1 0 8 0 syncache 296 86 0 86 4 4 0 1 0 8 0 tcpqe 32 44 0 44 2 2 0 1 0 8 0 tcpcb 736 418 0 414 12 11 1 11 0 8 0 inpcb 296 1191 0 1183 5 3 2 5 0 8 0 rttmr 72 7 0 7 1 1 0 1 0 8 0 nd6 48 9 0 6 1 0 1 1 0 8 0 pkpcb 40 11 0 11 1 1 0 1 0 8 0 kcovpl 48 3 0 2 1 0 1 1 0 8 0 ppxss 1128 4 0 4 1 1 0 1 0 8 0 pffrag 232 4 0 3 1 0 1 1 0 482 0 pffrnode 88 4 0 3 1 0 1 1 0 8 0 pffrent 40 7 0 6 1 0 1 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 1 0 0 1 0 1 1 0 8 0 pfstitem 24 32 0 17 1 0 1 1 0 8 0 pfstkey 112 32 0 17 1 0 1 1 0 8 0 pfstate 328 32 0 17 2 0 2 2 0 8 0 pfrule 1360 29 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 236 0 48 12 0 12 12 0 8 0 art_table 32 237 0 48 2 0 2 2 0 8 0 art_node 16 62 0 22 1 0 1 1 0 8 0 semupl 112 5 0 5 1 1 0 1 0 8 0 semapl 112 188 0 178 2 1 1 1 0 8 0 shmpl 112 87 0 17 3 1 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 5556 0 4126 90 0 90 90 0 8 0 ffsino 272 5556 0 4126 96 0 96 96 0 8 0 nchpl 144 8999 0 7415 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 22511 0 22511 1 0 1 1 0 8 1 percpumem 16 88 0 54 1 0 1 1 0 8 0 vcpupl 1984 61 0 0 8 0 8 8 0 8 0 vmpool 560 62 0 1 5 0 5 5 0 8 0 scxspl 216 25616 0 25616 12 11 1 8 0 8 1 plimitpl 152 172 0 164 1 0 1 1 0 8 0 sigapl 424 3278 0 3245 4 0 4 4 0 8 0 futexpl 56 21787 0 21787 1 0 1 1 0 8 1 knotepl 112 765 0 751 2 1 1 2 0 8 0 kqueuepl 168 1432 0 1415 3 2 1 2 0 8 0 pipepl 336 258 0 250 5 4 1 2 0 8 0 fdescpl 496 3261 0 3245 3 0 3 3 0 8 0 filepl 152 11430 0 11343 6 1 5 6 0 8 0 lockfpl 104 592 0 591 1 0 1 1 0 8 0 lockfspl 48 233 0 232 1 0 1 1 0 8 0 sessionpl 144 20 0 9 1 0 1 1 0 8 0 pgrppl 48 53 0 42 1 0 1 1 0 8 0 ucredpl 96 1474 0 1465 1 0 1 1 0 8 0 zombiepl 144 3246 0 3245 1 0 1 1 0 8 0 processpl 1080 3278 0 3245 3 0 3 3 0 8 0 procpl 672 6860 0 6820 4 0 4 4 0 8 0 sosppl 168 11 0 11 2 2 0 1 0 8 0 sockpl 432 2120 0 2100 9 4 5 8 0 8 1 mcl64k 65536 16 0 0 2 0 2 2 0 8 0 mcl12k 12288 4 0 0 1 0 1 1 0 8 0 mcl9k 9216 7 0 0 1 0 1 1 0 8 0 mcl8k 8192 11 0 0 2 0 2 2 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 168 0 0 15 0 15 15 0 8 0 mtagpl 96 243 0 0 6 0 6 6 0 8 0 mbufpl 256 693 0 0 41 1 40 40 0 8 0 bufpl 280 6975 0 728 447 0 447 447 0 8 0 anonpl 24 215899 0 211585 31 2 29 29 0 186 0 amapchunkpl 152 11498 0 11330 8 1 7 7 0 158 0 amappl16 200 8939 0 8774 11 1 10 10 0 8 1 amappl15 192 7 0 4 1 0 1 1 0 8 0 amappl14 184 23 0 19 1 0 1 1 0 8 0 amappl13 176 34 0 30 1 0 1 1 0 8 0 amappl12 168 7 0 6 1 0 1 1 0 8 0 amappl11 160 66 0 49 1 0 1 1 0 8 0 amappl10 152 3040 0 3035 1 0 1 1 0 8 0 amappl9 144 284 0 284 1 1 0 1 0 8 0 amappl8 136 200 0 144 2 0 2 2 0 8 0 amappl7 128 255 0 248 1 0 1 1 0 8 0 amappl6 120 3091 0 3078 1 0 1 1 0 8 0 amappl5 112 3404 0 3386 1 0 1 1 0 8 0 amappl4 104 289 0 266 1 0 1 1 0 8 0 amappl3 96 156 0 146 1 0 1 1 0 8 0 amappl2 88 25266 0 25153 3 0 3 3 0 8 0 amappl1 80 99114 0 98624 27 15 12 21 0 8 0 amappl 88 7202 0 7078 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 89 0 1 2 0 2 2 0 8 0 uaddrrnd 24 3323 0 3246 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3323 0 3246 1 0 1 1 0 8 0 vmmpekpl 168 16032 0 16001 2 0 2 2 0 8 0 vmmpepl 168 406388 0 404787 93 16 77 77 0 357 3 vmsppl 368 3322 0 3246 8 0 8 8 0 8 0 rwobjpl 56 84557 0 83544 25 9 16 19 0 8 1 pdppl 4096 6653 0 6553 115 13 102 102 0 8 2 pvpl 32 1173056 0 1165919 126 57 69 117 0 265 3 pmappl 232 3322 0 3246 5 0 5 5 0 8 0 extentpl 40 58 0 40 1 0 1 1 0 8 0 phpool 112 411 0 32 11 0 11 11 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff8276fff0) 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(ffffffff828dc170) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828dc170) at __mp_lock+0x122 sys/kern/kern_lock.c:147 upageflttrap(ffff8000222f5780,38e58a2176f) at upageflttrap+0x77 sys/arch/amd64/amd64/trap.c:180 usertrap(ffff8000222f5780) at usertrap+0x21a sys/arch/amd64/amd64/trap.c:406 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0x7f7fffff86c0, count: -7 ddb{0}> machine ddbcpu 1 Stopped at pfi_ifhead_RB_REMOVE+0x50: movq 0x10(%r12),%rbx ddb{1}> trace pfi_ifhead_RB_REMOVE(ffffffff828f47b8,ffff800000c3eb00) at pfi_ifhead_RB_REMOVE+0x50 sys/net/pf_if.c:80 pfi_detach_ifgroup(ffff800000bc7800) at pfi_detach_ifgroup+0x11b pfi_kif_unref sys/net/pf_if.c:211 [inline] pfi_detach_ifgroup(ffff800000bc7800) at pfi_detach_ifgroup+0x11b sys/net/pf_if.c:304 if_delgroup(ffff800000b17000,ffff800000bc7800) 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(ffff8000222fb4e0) 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(ffff8000222fb5b0) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd806e7124e8,7,fffffd807f7b78a0,ffff80002127a540) at VOP_CLOSE+0xeb sys/kern/vfs_vops.c:177 vn_closefile(fffffd806c78def0,ffff80002127a540) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd806c78def0,ffff80002127a540) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd806c78def0,ffff80002127a540) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd806c78def0,ffff80002127a540) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff80002127a540) at fdfree+0xf4 sys/kern/kern_descrip.c:1195 exit1(ffff80002127a540,0,0,1) at exit1+0x335 sys/kern/kern_exit.c:200 sys_exit(ffff80002127a540,ffff8000222fb840,ffff8000222fb890) at sys_exit+0x16 sys/kern/kern_exit.c:96 syscall(ffff8000222fb910) at syscall+0x4a1 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000222fb910) at syscall+0x4a1 sys/arch/amd64/amd64/trap.c:590 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe9080, count: -17