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(ffffffff82903b30,ffff800000b4ec00) at pfi_ifhead_RB_REMOVE+0x50 sys/net/pf_if.c:80 pfi_detach_ifgroup(ffff800000af6b80) at pfi_detach_ifgroup+0x11b pfi_kif_unref sys/net/pf_if.c:211 [inline] pfi_detach_ifgroup(ffff800000af6b80) at pfi_detach_ifgroup+0x11b sys/net/pf_if.c:304 if_delgroup(ffff800000ae5000,ffff800000af6b80) at if_delgroup+0x193 sys/net/if.c:2700 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(ffff8000222eb140) 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(ffff8000222eb210) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd806e928168,7,fffffd807f7b7a80,ffff80002123ca80) at VOP_CLOSE+0xeb sys/kern/vfs_vops.c:177 vn_closefile(fffffd806a7ef868,ffff80002123ca80) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd806a7ef868,ffff80002123ca80) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd806a7ef868,ffff80002123ca80) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd806a7ef868,ffff80002123ca80) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff80002123ca80) at fdfree+0xf4 sys/kern/kern_descrip.c:1195 exit1(ffff80002123ca80,0,19,1) at exit1+0x335 sys/kern/kern_exit.c:200 postsig(ffff80002123ca80,19) at postsig+0x59c sigexit sys/kern/kern_sig.c:1494 [inline] postsig(ffff80002123ca80,19) at postsig+0x59c sys/kern/kern_sig.c:1423 userret(ffff80002123ca80) at userret+0x189 sys/kern/kern_sig.c:1914 syscall(ffff8000222eb690) at syscall+0x55c mi_syscall_return sys/sys/syscall_mi.h:129 [inline] syscall(ffff8000222eb690) at syscall+0x55c sys/arch/amd64/amd64/trap.c:612 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffeeb90, count: -18 ddb{0}> show registers rdi 0xffffffff82903b30 pfi_ifs rsi 0xffff800000b4ec00 rbp 0xffff8000222eafa0 rbx 0xdead4110dead4110 rdx 0 rcx 0xffff800000af6700 rax 0xffff800000b4ec10 r8 0xf8 r9 0x8080808080808080 r10 0x2ed2f4ce3f3b9d6e r11 0xa5cffc9a606dfbc2 r12 0xdead4110dead4110 r13 0xffff800000afbe60 r14 0xffff800000b4ec00 r15 0xffffffff82903b30 pfi_ifs rip 0xffffffff816b3fe0 pfi_ifhead_RB_REMOVE+0x50 cs 0x8 rflags 0x10282 __ALIGN_SIZE+0xf282 rsp 0xffff8000222eaf40 ss 0 pfi_ifhead_RB_REMOVE+0x50: movq 0x10(%r12),%rbx ddb{0}> show proc PROC (syz-executor.0) pid=128052 stat=onproc flags process=a proc=2000 pri=32, usrpri=78, nice=20 forw=0xffffffffffffffff, list=0xffff80002123cd20,0xffff80002123dcf0 process=0xffff800021234010 user=0xffff8000222e6000, vmspace=0xfffffd8066e5a2f0 estcpu=36, cpticks=3, pctcpu=0.22 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 29578 338931 74056 0 2 0x2 syz-executor.1 96689 132805 0 0 3 0x14200 acct acct 61213 353273 0 0 3 0x14200 bored sosplice 49902 210142 1 0 3 0x100083 ttyin getty 74056 148776 38619 0 3 0x82 thrsleep syz-fuzzer 74056 384833 38619 0 3 0x4000082 nanoslp syz-fuzzer 74056 449211 38619 0 3 0x4000082 thrsleep syz-fuzzer 74056 516613 38619 0 3 0x4000082 thrsleep syz-fuzzer 74056 457601 38619 0 3 0x4000082 thrsleep syz-fuzzer 74056 282185 38619 0 3 0x4000082 thrsleep syz-fuzzer 74056 404387 38619 0 3 0x4000082 nanoslp syz-fuzzer 74056 520893 38619 0 2 0x4000002 syz-fuzzer 38619 457146 12544 0 3 0x10008a sigsusp ksh 12544 472339 8042 0 3 0x92 select sshd 8042 27648 1 0 3 0x80 select sshd 74575 354560 86494 74 3 0x100092 bpf pflogd 86494 347097 1 0 3 0x80 netio pflogd 15845 272778 95642 73 3 0x100090 kqread syslogd 95642 218663 1 0 3 0x100082 netio syslogd 58500 443107 1 77 2 0x100090 dhclient 87638 470072 1 0 3 0x80 poll dhclient 87722 249595 0 0 3 0x14200 bored smr 25452 413653 0 0 3 0x14200 pgzero zerothread 82631 335968 0 0 3 0x14200 aiodoned aiodoned 50690 230329 0 0 3 0x14200 syncer update 44740 328444 0 0 3 0x14200 cleaner cleaner 53831 126785 0 0 3 0x14200 reaper reaper 56160 86585 0 0 3 0x14200 pgdaemon pagedaemon 29472 36225 0 0 3 0x14200 bored crynlk 47627 447613 0 0 3 0x14200 bored crypto 72939 329145 0 0 3 0x14200 bored viomb 58117 513317 0 0 3 0x40014200 acpi0 acpi0 50842 25587 0 0 7 0x40014200 idle1 51523 26308 0 0 3 0x14200 bored softnet 56833 292990 0 0 2 0x14200 systqmp 75950 381751 0 0 3 0x14200 bored systq 96674 134570 0 0 3 0x40014200 bored softclock 66770 322729 0 0 3 0x40014200 idle0 1 14858 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 9522 6428K 7588K 78643K 15937 0 pcb 13 8K 8K 78643K 196 0 rtable 83 3K 4K 78643K 819 0 ifaddr 64 13K 14K 78643K 177 0 sysctl 2 0K 0K 78643K 2 0 counters 44 34K 34K 78643K 70 0 ioctlops 0 0K 4K 78643K 1640 0 iov 0 0K 16K 78643K 161 0 mount 1 1K 1K 78643K 1 0 vnodes 1225 77K 77K 78643K 3003 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 31 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 184 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12598 0 file desc 4 9K 25K 78643K 4204 0 sigio 0 0K 0K 78643K 30 0 proc 62 63K 95K 78643K 741 0 subproc 23 1K 2K 78643K 85 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 261 0 in_multi 18 1K 2K 78643K 278 0 ether_multi 1 0K 0K 78643K 45 0 mrt 0 0K 0K 78643K 38 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 601 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 244 597K 597K 78643K 10216 0 UVM aobj 8 7K 7K 78643K 22 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 213 0 NDP 11 0K 0K 78643K 49 0 temp 134 3990K 4055K 78643K 24931 0 kqueue 3 4K 12K 78643K 137 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 12 0 8 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 120 249 0 247 1 0 1 1 0 8 0 rtentry 112 157 0 127 2 0 2 2 0 8 0 unpcb 120 959 0 949 1 0 1 1 0 8 0 syncache 296 27 0 27 3 3 0 1 0 8 0 tcpqe 32 75 0 75 4 4 0 1 0 8 0 tcpcb 736 596 0 587 13 10 3 4 0 8 1 inpcb 304 1443 0 1432 3 1 2 2 0 8 1 rttmr 72 17 0 17 3 3 0 1 0 8 0 nd6 48 32 0 31 1 0 1 1 0 8 0 pkpcb 40 25 0 25 2 2 0 1 0 8 0 kcovpl 48 5 0 4 1 0 1 1 0 8 0 pfstscr 40 26 0 26 1 1 0 1 0 8 0 pfosfp 40 1428 0 1428 5 5 0 5 0 8 0 pfosfpen 112 1428 0 1428 21 21 0 21 0 8 0 pfrktable 1344 6 0 5 2 1 1 1 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfstitem 24 71 0 56 1 0 1 1 0 8 0 pfstkey 112 111 0 96 2 0 2 2 0 8 0 pfstate 320 90 0 75 4 2 2 4 0 8 0 pfrule 1360 57 0 39 3 1 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 720 0 561 13 1 12 13 0 8 0 art_table 32 721 0 561 2 0 2 2 0 8 0 art_node 16 156 0 120 1 0 1 1 0 8 0 sysvmsgpl 40 11 0 1 1 0 1 1 0 8 0 semupl 112 9 0 9 1 1 0 1 0 8 0 semapl 112 182 0 172 1 0 1 1 0 8 0 shmpl 112 19 0 14 2 1 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 6785 0 5374 89 0 89 89 0 8 0 ffsino 272 6785 0 5374 95 0 95 95 0 8 0 nchpl 144 11967 0 10373 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 29305 0 29305 1 0 1 1 0 8 1 percpumem 16 46 0 13 1 0 1 1 0 8 0 vcpupl 1984 39 0 0 5 0 5 5 0 8 0 vmpool 560 50 0 11 3 0 3 3 0 8 0 scsiplug 72 7 0 7 1 1 0 1 0 8 0 scxspl 216 36868 0 36868 9 8 1 8 0 8 1 plimitpl 152 39 0 31 1 0 1 1 0 8 0 sigapl 424 4414 0 4381 4 0 4 4 0 8 0 futexpl 56 29520 0 29520 1 0 1 1 0 8 1 knotepl 112 264 0 246 1 0 1 1 0 8 0 kqueuepl 168 1583 0 1581 1 0 1 1 0 8 0 pipepl 336 305 0 295 7 5 2 3 0 8 1 fdescpl 496 4396 0 4381 3 0 3 3 0 8 0 filepl 152 14368 0 14277 7 2 5 7 0 8 0 lockfpl 104 480 0 479 1 0 1 1 0 8 0 lockfspl 48 211 0 210 1 0 1 1 0 8 0 sessionpl 144 22 0 11 1 0 1 1 0 8 0 pgrppl 48 31 0 20 1 0 1 1 0 8 0 ucredpl 96 1476 0 1467 1 0 1 1 0 8 0 zombiepl 144 4382 0 4381 1 0 1 1 0 8 0 processpl 1080 4414 0 4381 3 0 3 3 0 8 0 procpl 672 9196 0 9156 7 3 4 5 0 8 0 sosppl 168 54 0 54 3 3 0 1 0 8 0 sockpl 432 2695 0 2672 10 6 4 5 0 8 1 mcl64k 65536 22 0 0 3 0 3 3 0 8 0 mcl12k 12288 15 0 0 2 0 2 2 0 8 0 mcl9k 9216 4 0 0 1 0 1 1 0 8 0 mcl8k 8192 8 0 0 1 0 1 1 0 8 0 mcl4k 4096 9 0 0 2 0 2 2 0 8 0 mcl2k2 2112 7 0 0 1 0 1 1 0 8 0 mcl2k 2048 237 0 0 16 0 16 16 0 8 0 mtagpl 96 312 0 0 8 0 8 8 0 8 0 mbufpl 256 878 0 0 49 0 49 49 0 8 0 bufpl 280 9975 0 3726 447 0 447 447 0 8 0 anonpl 24 345810 0 338959 115 60 55 85 0 186 12 amapchunkpl 152 15972 0 15726 16 6 10 13 0 158 0 amappl16 200 15856 0 15641 53 41 12 35 0 8 0 amappl15 192 2 0 0 1 0 1 1 0 8 0 amappl14 184 1382 0 1377 1 0 1 1 0 8 0 amappl13 176 2122 0 2120 1 0 1 1 0 8 0 amappl12 168 15 0 10 1 0 1 1 0 8 0 amappl11 160 157 0 139 2 0 2 2 0 8 0 amappl10 152 19 0 13 1 0 1 1 0 8 0 amappl9 144 656 0 654 1 0 1 1 0 8 0 amappl8 136 251 0 183 3 0 3 3 0 8 0 amappl7 128 917 0 909 1 0 1 1 0 8 0 amappl6 120 84 0 70 1 0 1 1 0 8 0 amappl5 112 3139 0 3120 1 0 1 1 0 8 0 amappl4 104 304 0 278 1 0 1 1 0 8 0 amappl3 96 4322 0 4311 1 0 1 1 0 8 0 amappl2 88 35555 0 35481 4 1 3 3 0 8 0 amappl1 80 127763 0 127314 26 14 12 21 0 8 0 amappl 88 9600 0 9495 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 21 0 14 1 0 1 1 0 8 0 uaddrrnd 24 4446 0 4392 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4446 0 4392 1 0 1 1 0 8 0 vmmpekpl 168 22882 0 22842 3 0 3 3 0 8 0 vmmpepl 168 554272 0 552844 124 50 74 91 0 357 1 vmsppl 368 4445 0 4392 6 0 6 6 0 8 1 rwobjpl 56 113402 0 112422 35 20 15 21 0 8 0 pdppl 4096 8899 0 8823 100 20 80 80 0 8 4 pvpl 32 1527205 0 1518285 230 128 102 140 0 265 26 pmappl 232 4445 0 4392 5 1 4 4 0 8 0 extentpl 40 58 0 40 1 0 1 1 0 8 0 phpool 112 405 0 39 11 0 11 11 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace pfi_ifhead_RB_REMOVE(ffffffff82903b30,ffff800000b4ec00) at pfi_ifhead_RB_REMOVE+0x50 sys/net/pf_if.c:80 pfi_detach_ifgroup(ffff800000af6b80) at pfi_detach_ifgroup+0x11b pfi_kif_unref sys/net/pf_if.c:211 [inline] pfi_detach_ifgroup(ffff800000af6b80) at pfi_detach_ifgroup+0x11b sys/net/pf_if.c:304 if_delgroup(ffff800000ae5000,ffff800000af6b80) at if_delgroup+0x193 sys/net/if.c:2700 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(ffff8000222eb140) 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(ffff8000222eb210) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd806e928168,7,fffffd807f7b7a80,ffff80002123ca80) at VOP_CLOSE+0xeb sys/kern/vfs_vops.c:177 vn_closefile(fffffd806a7ef868,ffff80002123ca80) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd806a7ef868,ffff80002123ca80) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd806a7ef868,ffff80002123ca80) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd806a7ef868,ffff80002123ca80) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff80002123ca80) at fdfree+0xf4 sys/kern/kern_descrip.c:1195 exit1(ffff80002123ca80,0,19,1) at exit1+0x335 sys/kern/kern_exit.c:200 postsig(ffff80002123ca80,19) at postsig+0x59c sigexit sys/kern/kern_sig.c:1494 [inline] postsig(ffff80002123ca80,19) at postsig+0x59c sys/kern/kern_sig.c:1423 userret(ffff80002123ca80) at userret+0x189 sys/kern/kern_sig.c:1914 syscall(ffff8000222eb690) at syscall+0x55c mi_syscall_return sys/sys/syscall_mi.h:129 [inline] syscall(ffff8000222eb690) at syscall+0x55c sys/arch/amd64/amd64/trap.c:612 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffeeb90, 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 acpicpu_idle() at acpicpu_idle+0x2eb sys/dev/acpi/acpicpu.c:1206 sched_idle(ffff800020d68ff0) at sched_idle+0x417 sys/kern/kern_sched.c:178 end trace frame: 0x0, count: -5