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(ffffffff82910ce8,ffff800000adcd00) at pfi_ifhead_RB_REMOVE+0x50 sys/net/pf_if.c:80 pfi_detach_ifgroup(ffff800000b50280) at pfi_detach_ifgroup+0x11b pfi_kif_unref sys/net/pf_if.c:211 [inline] pfi_detach_ifgroup(ffff800000b50280) at pfi_detach_ifgroup+0x11b sys/net/pf_if.c:304 if_delgroup(ffff800000ae4000,ffff800000b50280) at if_delgroup+0x193 sys/net/if.c:2711 if_detach(ffff800000ae4000) at if_detach+0x1cb sys/net/if.c:1049 tun_clone_destroy(ffff800000ae4000) at tun_clone_destroy+0x1e1 sys/net/if_tun.c:325 if_clone_destroy(ffff8000211ee1f0) 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(ffff8000211ee2c0) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd806e585248,7,fffffd807f7b7720,ffff8000234caa90) at VOP_CLOSE+0xeb sys/kern/vfs_vops.c:177 vn_closefile(fffffd806a53c4d8,ffff8000234caa90) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd806a53c4d8,ffff8000234caa90) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd806a53c4d8,ffff8000234caa90) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd806a53c4d8,ffff8000234caa90) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff8000234caa90) at fdfree+0xf4 sys/kern/kern_descrip.c:1195 exit1(ffff8000234caa90,0,0,1) at exit1+0x335 sys/kern/kern_exit.c:200 sys_exit(ffff8000234caa90,ffff8000211ee550,ffff8000211ee5a0) at sys_exit+0x16 sys/kern/kern_exit.c:96 syscall(ffff8000211ee620) at syscall+0x4a1 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000211ee620) at syscall+0x4a1 sys/arch/amd64/amd64/trap.c:590 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc9130, count: -17 ddb{0}> show registers rdi 0xffffffff82910ce8 pfi_ifs rsi 0xffff800000adcd00 rbp 0xffff8000211ee050 rbx 0xdeadbeefdeadbeef rdx 0 rcx 0xffff800000b50f00 rax 0xffff800000adcd10 r8 0xf8 r9 0x8080808080808080 r10 0xd185b13b4b2509e9 r11 0xc2b3947a11577b27 r12 0xdeadbeefdeadbeef r13 0xffff800000afafe0 r14 0xffff800000adcd00 r15 0xffffffff82910ce8 pfi_ifs rip 0xffffffff81aa34c0 pfi_ifhead_RB_REMOVE+0x50 cs 0x8 rflags 0x10282 __ALIGN_SIZE+0xf282 rsp 0xffff8000211edff0 ss 0x10 pfi_ifhead_RB_REMOVE+0x50: movq 0x10(%r12),%rbx ddb{0}> show proc PROC (syz-executor.0) pid=493545 stat=onproc flags process=1008 proc=2000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000234ca2b0,0xffff8000234cb520 process=0xffff80002432c018 user=0xffff8000211e9000, vmspace=0xfffffd8066686180 estcpu=36, cpticks=5, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 27637 477420 18491 0 7 0 syz-executor.1 55162 136350 1 0 3 0x100083 ttyin getty 56111 172266 0 0 3 0x14280 nfsidl nfsio 15409 190696 0 0 3 0x14280 nfsidl nfsio 92704 301211 0 0 3 0x14280 nfsidl nfsio 73328 84769 0 0 3 0x14280 nfsidl nfsio 25195 299073 0 0 3 0x14280 nfsidl nfsio 125 2908 0 0 3 0x14280 nfsidl nfsio 34175 187623 0 0 3 0x14280 nfsidl nfsio 84331 464362 0 0 3 0x14280 nfsidl nfsio 67522 502695 0 0 3 0x14280 nfsidl nfsio 92848 96390 0 0 3 0x14280 nfsidl nfsio 43152 130002 0 0 3 0x14280 nfsidl nfsio 40541 421121 0 0 3 0x14280 nfsidl nfsio 36414 408231 0 0 3 0x14280 nfsidl nfsio 12478 191895 0 0 3 0x14280 nfsidl nfsio 65020 309282 0 0 3 0x14280 nfsidl nfsio 33 53392 0 0 3 0x14280 nfsidl nfsio 2214 207494 0 0 3 0x14280 nfsidl nfsio 41062 48856 0 0 3 0x14280 nfsidl nfsio 44215 17612 0 0 3 0x14280 nfsidl nfsio 54462 100799 0 0 3 0x14280 nfsidl nfsio 69289 44903 0 0 3 0x14200 bored sosplice 18491 399386 42932 0 3 0x82 nanoslp syz-executor.1 42932 66124 5881 0 3 0x82 thrsleep syz-fuzzer 42932 130598 5881 0 3 0x4000082 nanoslp syz-fuzzer 42932 257037 5881 0 3 0x4000082 nanoslp syz-fuzzer 42932 156079 5881 0 3 0x4000082 thrsleep syz-fuzzer 42932 265789 5881 0 3 0x4000082 thrsleep syz-fuzzer 42932 211650 5881 0 3 0x4000082 thrsleep syz-fuzzer 42932 242021 5881 0 3 0x4000082 thrsleep syz-fuzzer 42932 315816 5881 0 3 0x4000082 kqread syz-fuzzer 5881 452315 49852 0 3 0x10008a sigsusp ksh 49852 232243 99090 0 3 0x92 select sshd 99090 289875 1 0 3 0x80 select sshd 69085 176775 81770 74 3 0x100092 bpf pflogd 81770 35517 1 0 3 0x80 netio pflogd 45675 471728 22653 73 3 0x100090 kqread syslogd 22653 144204 1 0 3 0x100082 netio syslogd 73787 162611 1 77 2 0x100090 dhclient 98516 44594 1 0 3 0x80 poll dhclient 29808 135645 0 0 3 0x14200 bored smr 10178 508234 0 0 3 0x14200 pgzero zerothread 9975 103438 0 0 3 0x14200 aiodoned aiodoned 30267 60553 0 0 3 0x14200 syncer update 47126 383215 0 0 3 0x14200 cleaner cleaner 52786 501153 0 0 3 0x14200 reaper reaper 3626 193399 0 0 3 0x14200 pgdaemon pagedaemon 5730 400399 0 0 3 0x14200 bored crynlk 89650 143043 0 0 3 0x14200 bored crypto 89465 6524 0 0 3 0x14200 bored viomb 54366 322822 0 0 3 0x40014200 acpi0 acpi0 36012 10907 0 0 3 0x40014200 idle1 61219 234797 0 0 3 0x14200 bored softnet 63976 282915 0 0 2 0x14200 systqmp 28588 87845 0 0 3 0x14200 bored systq 916 386563 0 0 3 0x40014200 bored softclock 61614 360375 0 0 3 0x40014200 idle0 1 7289 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 9542 6444K 7332K 78643K 16644 0 pcb 13 8K 8K 78643K 384 0 rtable 95 4K 5K 78643K 782 0 ifaddr 81 16K 18K 78643K 291 0 sysctl 1 1K 1K 78643K 1 0 counters 44 34K 34K 78643K 118 0 ioctlops 0 0K 4K 78643K 1713 0 iov 0 0K 16K 78643K 187 0 mount 1 1K 1K 78643K 1 0 vnodes 1221 77K 77K 78643K 3113 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 7 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 265 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12598 0 file desc 5 13K 25K 78643K 6642 0 sigio 0 0K 0K 78643K 24 0 proc 62 63K 95K 78643K 756 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 471 0 in_multi 22 1K 2K 78643K 421 0 ether_multi 1 0K 0K 78643K 92 0 mrt 0 0K 0K 78643K 49 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 556 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 215 160K 176K 78643K 16076 0 UVM aobj 34 2K 2K 78643K 36 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 303 0 NDP 13 0K 0K 78643K 89 0 temp 138 3979K 4043K 78643K 35814 0 kqueue 3 4K 10K 78643K 204 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 7 0 3 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 120 163 0 161 1 0 1 1 0 8 0 rtentry 112 139 0 104 2 0 2 2 0 8 0 unpcb 120 1099 0 1089 1 0 1 1 0 8 0 syncache 296 42 0 42 4 4 0 1 0 8 0 tcpqe 32 373 0 373 4 4 0 1 0 8 0 tcpcb 736 876 0 872 12 11 1 5 0 8 0 inpcb 296 2315 0 2308 9 8 1 2 0 8 0 rttmr 72 7 0 7 1 0 1 1 0 8 1 nd6 48 44 0 41 1 0 1 1 0 8 0 pkpcb 40 19 0 19 2 2 0 1 0 8 0 kcovpl 48 2 0 1 1 0 1 1 0 8 0 swfcl 56 8 0 0 1 0 1 1 0 8 0 ppxss 1128 20 0 20 3 3 0 1 0 8 0 pffrag 232 4 0 4 1 1 0 1 0 482 0 pffrnode 88 4 0 4 1 1 0 1 0 8 0 pffrent 40 24 0 24 4 4 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 pfrktable 1344 2 0 0 1 0 1 1 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfqueue 264 19 0 19 1 1 0 1 0 8 0 pfstitem 24 67 0 49 1 0 1 1 0 8 0 pfstkey 112 89 0 71 1 0 1 1 0 8 0 pfstate 328 78 0 60 2 0 2 2 0 8 0 pfrule 1360 79 0 61 3 1 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 336 0 121 14 0 14 14 0 8 0 art_table 32 337 0 121 2 0 2 2 0 8 0 art_node 16 126 0 84 1 0 1 1 0 8 0 sysvmsgpl 40 76 0 42 2 1 1 1 0 8 0 semapl 112 263 0 253 1 0 1 1 0 8 0 shmpl 112 33 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 9243 0 7840 89 0 89 89 0 8 0 ffsino 272 9243 0 7840 95 0 95 95 0 8 0 nchpl 144 16840 0 15255 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 40997 0 40997 1 0 1 1 0 8 1 percpumem 16 70 0 37 1 0 1 1 0 8 0 vcpupl 1984 8 0 0 1 0 1 1 0 8 0 vmpool 560 8 0 0 1 0 1 1 0 8 0 scsiplug 72 11 0 11 2 2 0 1 0 8 0 scxspl 216 51116 0 51116 14 13 1 8 0 8 1 plimitpl 152 276 0 268 1 0 1 1 0 8 0 sigapl 424 6880 0 6827 7 0 7 7 0 8 0 futexpl 56 41970 0 41970 1 0 1 1 0 8 1 knotepl 112 281 0 267 1 0 1 1 0 8 0 kqueuepl 168 3403 0 3401 1 0 1 1 0 8 0 pipepl 336 320 0 312 11 9 2 3 0 8 1 fdescpl 496 6843 0 6827 3 0 3 3 0 8 0 filepl 152 20949 0 20862 7 2 5 7 0 8 1 lockfpl 104 766 0 765 1 0 1 1 0 8 0 lockfspl 48 260 0 259 1 0 1 1 0 8 0 sessionpl 144 19 0 8 1 0 1 1 0 8 0 pgrppl 48 31 0 20 1 0 1 1 0 8 0 ucredpl 96 2596 0 2587 1 0 1 1 0 8 0 zombiepl 144 6828 0 6827 1 0 1 1 0 8 0 processpl 1080 6880 0 6827 4 0 4 4 0 8 0 procpl 672 15149 0 15089 6 0 6 6 0 8 0 sosppl 168 24 0 24 2 2 0 1 0 8 0 sockpl 432 3603 0 3584 15 12 3 6 0 8 0 mcl64k 65536 13 0 0 2 0 2 2 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 7 0 0 1 0 1 1 0 8 0 mcl9k 9216 9 0 0 1 0 1 1 0 8 0 mcl8k 8192 21 0 0 3 1 2 3 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 303 0 0 19 0 19 19 0 8 0 mtagpl 96 477 0 0 12 0 12 12 0 8 0 mbufpl 256 1310 0 0 75 0 75 75 0 8 0 bufpl 280 12382 0 6133 447 0 447 447 0 8 0 anonpl 24 539571 0 532264 122 69 53 75 0 186 0 amapchunkpl 152 25229 0 25040 23 1 22 22 0 158 14 amappl16 200 24594 0 24252 57 38 19 31 0 8 0 amappl15 192 3337 0 3334 1 0 1 1 0 8 0 amappl14 184 21 0 18 1 0 1 1 0 8 0 amappl13 176 3337 0 3334 1 0 1 1 0 8 0 amappl12 168 1 0 0 1 0 1 1 0 8 0 amappl11 160 56 0 38 1 0 1 1 0 8 0 amappl10 152 10 0 6 1 0 1 1 0 8 0 amappl9 144 15 0 15 1 1 0 1 0 8 0 amappl8 136 288 0 187 4 0 4 4 0 8 0 amappl7 128 245 0 238 1 0 1 1 0 8 0 amappl6 120 70 0 56 1 0 1 1 0 8 0 amappl5 112 4256 0 4234 1 0 1 1 0 8 0 amappl4 104 306 0 276 2 1 1 2 0 8 0 amappl3 96 6796 0 6786 1 0 1 1 0 8 0 amappl2 88 54382 0 54299 3 1 2 3 0 8 0 amappl1 80 200937 0 200449 31 20 11 21 0 8 0 amappl 88 15451 0 15380 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 35 0 2 1 0 1 1 0 8 0 uaddrrnd 24 6851 0 6827 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 6851 0 6827 1 0 1 1 0 8 0 vmmpekpl 168 36029 0 35996 2 0 2 2 0 8 0 vmmpepl 168 862873 0 861175 130 50 80 89 0 357 5 vmsppl 368 6850 0 6827 3 0 3 3 0 8 0 rwobjpl 56 182123 0 180980 37 20 17 20 0 8 0 pdppl 4096 13709 0 13662 66 17 49 49 0 8 2 pvpl 32 2698583 0 2688246 236 131 105 133 0 265 6 pmappl 232 6850 0 6827 3 1 2 2 0 8 0 extentpl 40 58 0 40 1 0 1 1 0 8 0 phpool 112 404 0 41 11 0 11 11 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace pfi_ifhead_RB_REMOVE(ffffffff82910ce8,ffff800000adcd00) at pfi_ifhead_RB_REMOVE+0x50 sys/net/pf_if.c:80 pfi_detach_ifgroup(ffff800000b50280) at pfi_detach_ifgroup+0x11b pfi_kif_unref sys/net/pf_if.c:211 [inline] pfi_detach_ifgroup(ffff800000b50280) at pfi_detach_ifgroup+0x11b sys/net/pf_if.c:304 if_delgroup(ffff800000ae4000,ffff800000b50280) at if_delgroup+0x193 sys/net/if.c:2711 if_detach(ffff800000ae4000) at if_detach+0x1cb sys/net/if.c:1049 tun_clone_destroy(ffff800000ae4000) at tun_clone_destroy+0x1e1 sys/net/if_tun.c:325 if_clone_destroy(ffff8000211ee1f0) 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(ffff8000211ee2c0) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd806e585248,7,fffffd807f7b7720,ffff8000234caa90) at VOP_CLOSE+0xeb sys/kern/vfs_vops.c:177 vn_closefile(fffffd806a53c4d8,ffff8000234caa90) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd806a53c4d8,ffff8000234caa90) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd806a53c4d8,ffff8000234caa90) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd806a53c4d8,ffff8000234caa90) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff8000234caa90) at fdfree+0xf4 sys/kern/kern_descrip.c:1195 exit1(ffff8000234caa90,0,0,1) at exit1+0x335 sys/kern/kern_exit.c:200 sys_exit(ffff8000234caa90,ffff8000211ee550,ffff8000211ee5a0) at sys_exit+0x16 sys/kern/kern_exit.c:96 syscall(ffff8000211ee620) at syscall+0x4a1 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000211ee620) at syscall+0x4a1 sys/arch/amd64/amd64/trap.c:590 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc9130, 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 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x3e kd_curproc sys/dev/kcov.c:571 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x3e sys/dev/kcov.c:143 __mp_lock(ffffffff828bc358) at __mp_lock+0x133 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828bc358) at __mp_lock+0x133 sys/kern/kern_lock.c:147 syscall(ffff800021218120) at syscall+0x3fd mi_syscall sys/sys/syscall_mi.h:93 [inline] syscall(ffff800021218120) at syscall+0x3fd sys/arch/amd64/amd64/trap.c:590 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffffabe0, count: -7