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(ffffffff8293b5b0,ffff800000b7bf00) at pfi_ifhead_RB_REMOVE+0x50 sys/net/pf_if.c:80 pfi_detach_ifgroup(ffff800000af5b00) at pfi_detach_ifgroup+0x11b pfi_kif_unref sys/net/pf_if.c:211 [inline] pfi_detach_ifgroup(ffff800000af5b00) at pfi_detach_ifgroup+0x11b sys/net/pf_if.c:304 if_delgroup(ffff800000ae4000,ffff800000af5b00) at if_delgroup+0x193 sys/net/if.c:2676 if_detach(ffff800000ae4000) at if_detach+0x1ab sys/net/if.c:1039 tun_clone_destroy(ffff800000ae4000) at tun_clone_destroy+0x1e1 sys/net/if_tun.c:325 if_clone_destroy(ffff8000222d39e0) at if_clone_destroy+0x146 sys/net/if.c:1198 tun_dev_close(5d00,7) at tun_dev_close+0x140 sys/net/if_tun.c:476 spec_close(ffff8000222d3ab0) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd806e8f15c8,7,fffffd807f7b7780,ffff800021278000) at VOP_CLOSE+0xeb sys/kern/vfs_vops.c:177 vn_closefile(fffffd8069ff9ef0,ffff800021278000) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd8069ff9ef0,ffff800021278000) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd8069ff9ef0,ffff800021278000) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd8069ff9ef0,ffff800021278000) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff800021278000) at fdfree+0xf4 sys/kern/kern_descrip.c:1195 exit1(ffff800021278000,0,0,1) at exit1+0x335 sys/kern/kern_exit.c:200 sys_exit(ffff800021278000,ffff8000222d3d40,ffff8000222d3d90) at sys_exit+0x16 sys/kern/kern_exit.c:96 syscall(ffff8000222d3e10) at syscall+0x4a1 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000222d3e10) at syscall+0x4a1 sys/arch/amd64/amd64/trap.c:590 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff9d60, count: -17 ddb{0}> show registers rdi 0xffffffff8293b5b0 pfi_ifs rsi 0xffff800000b7bf00 rbp 0xffff8000222d3840 rbx 0xdeaf4152deaf4152 rdx 0 rcx 0xffff800000b3ac80 rax 0xffff800000b7bf10 r8 0xf8 r9 0x8080808080808080 r10 0x8b19e723147be732 r11 0xcb8ae1c23c1ebbd8 r12 0xdeaf4152deaf4152 r13 0xffff800000afaf20 r14 0xffff800000b7bf00 r15 0xffffffff8293b5b0 pfi_ifs rip 0xffffffff82267860 pfi_ifhead_RB_REMOVE+0x50 cs 0x8 rflags 0x10282 __ALIGN_SIZE+0xf282 rsp 0xffff8000222d37e0 ss 0 pfi_ifhead_RB_REMOVE+0x50: movq 0x10(%r12),%rbx ddb{0}> show proc PROC (syz-executor.0) pid=347185 stat=onproc flags process=1008 proc=2000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800021279500,0xffff800021279a50 process=0xffff8000212350d0 user=0xffff8000222ce000, vmspace=0xfffffd806a61d5e0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 5318 459104 80281 0 7 0 syz-executor.1 5318 509176 80281 0 3 0x4000080 fsleep syz-executor.1 80281 110801 84775 0 3 0x82 nanoslp syz-executor.1 96825 511430 0 0 3 0x14200 bored sosplice 84775 410961 1186 0 3 0x82 thrsleep syz-fuzzer 84775 170392 1186 0 3 0x4000082 nanoslp syz-fuzzer 84775 33520 1186 0 3 0x4000082 thrsleep syz-fuzzer 84775 442816 1186 0 3 0x4000082 thrsleep syz-fuzzer 84775 26355 1186 0 2 0x4000002 syz-fuzzer 84775 433122 1186 0 3 0x4000082 thrsleep syz-fuzzer 84775 54157 1186 0 3 0x4000082 thrsleep syz-fuzzer 84775 337193 1186 0 3 0x4000082 thrsleep syz-fuzzer 1186 322180 68338 0 3 0x10008a sigsusp ksh 68338 333159 98910 0 3 0x92 select sshd 68625 429456 1 0 3 0x100083 ttyin getty 98910 274847 1 0 3 0x80 select sshd 47208 230732 22978 74 3 0x100092 bpf pflogd 22978 69267 1 0 3 0x80 netio pflogd 48228 172974 3256 73 3 0x100090 kqread syslogd 3256 380246 1 0 3 0x100082 netio syslogd 26447 95107 1 77 2 0x100090 dhclient 58148 20652 1 0 3 0x80 poll dhclient 18314 480830 0 0 3 0x14200 bored smr 26315 217156 0 0 3 0x14200 pgzero zerothread 49732 441399 0 0 3 0x14200 aiodoned aiodoned 46310 293520 0 0 3 0x14200 syncer update 56916 146806 0 0 3 0x14200 cleaner cleaner 1000 146326 0 0 3 0x14200 reaper reaper 83880 220696 0 0 3 0x14200 pgdaemon pagedaemon 23711 366380 0 0 3 0x14200 bored crynlk 66818 204636 0 0 3 0x14200 bored crypto 76348 489854 0 0 3 0x14200 bored viomb 44764 97603 0 0 3 0x40014200 acpi0 acpi0 47038 166231 0 0 3 0x40014200 idle1 84694 323542 0 0 3 0x14200 bored softnet 71660 70234 0 0 2 0x14200 systqmp 190 515536 0 0 3 0x14200 bored systq 13083 503110 0 0 3 0x40014200 bored softclock 45394 280638 0 0 3 0x40014200 idle0 1 83533 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 9570 6466K 7105K 78643K 17059 0 pcb 13 8K 8K 78643K 245 0 rtable 89 4K 5K 78643K 765 0 ifaddr 90 16K 17K 78643K 272 0 sysctl 3 1K 1K 78643K 3 0 counters 44 34K 34K 78643K 118 0 ioctlops 0 0K 4K 78643K 1657 0 iov 0 0K 24K 78643K 249 0 mount 1 1K 1K 78643K 1 0 vnodes 1227 77K 77K 78643K 3570 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 41 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 409 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12598 0 file desc 5 13K 25K 78643K 6717 0 sigio 0 0K 0K 78643K 17 0 proc 64 63K 95K 78643K 780 0 subproc 23 1K 2K 78643K 102 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 331 0 in_multi 22 1K 2K 78643K 243 0 ether_multi 1 0K 0K 78643K 79 0 mrt 0 0K 0K 78643K 31 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 751 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 224 323K 323K 78643K 16271 0 UVM aobj 48 7K 7K 78643K 53 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 304 0 NDP 17 0K 0K 78643K 66 0 temp 157 3979K 4058K 78643K 41140 0 kqueue 3 4K 12K 78643K 303 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 15 0 11 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 120 170 0 168 1 0 1 1 0 8 0 rtentry 112 91 0 58 2 0 2 2 0 8 0 unpcb 120 1500 0 1490 2 1 1 2 0 8 0 syncache 296 62 0 62 7 7 0 1 0 8 0 tcpqe 32 73 0 73 5 5 0 1 0 8 0 tcpcb 736 949 0 945 19 18 1 4 0 8 0 inpcb 296 2407 0 2400 5 4 1 2 0 8 0 nd6 48 19 0 16 1 0 1 1 0 8 0 pkpcb 40 19 0 19 3 2 1 1 0 8 1 kcovpl 48 6 0 5 1 0 1 1 0 8 0 ppxss 1128 18 0 18 3 3 0 1 0 8 0 pffrag 232 6 0 6 2 2 0 1 0 482 0 pffrnode 88 6 0 6 2 2 0 1 0 8 0 pffrent 40 17 0 17 3 3 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 13 0 12 2 1 1 1 0 8 0 pfstitem 24 43 0 41 1 0 1 1 0 8 0 pfstkey 112 43 0 41 1 0 1 1 0 8 0 pfstate 328 43 0 41 4 3 1 3 0 8 0 pfrule 1360 77 0 63 3 1 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 388 0 197 13 1 12 13 0 8 0 art_table 32 389 0 197 2 0 2 2 0 8 0 art_node 16 90 0 50 1 0 1 1 0 8 0 sysvmsgpl 40 21 0 20 1 0 1 1 0 8 0 semapl 112 407 0 397 1 0 1 1 0 8 0 shmpl 112 50 0 5 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 9914 0 8510 89 0 89 89 0 8 0 ffsino 272 9914 0 8510 96 1 95 95 0 8 0 nchpl 144 17726 0 16140 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 44482 0 44482 1 0 1 1 0 8 1 percpumem 16 70 0 37 1 0 1 1 0 8 0 vcpupl 1984 29 0 0 4 0 4 4 0 8 0 vmpool 560 62 0 33 3 0 3 3 0 8 0 pfiaddrpl 120 4 0 4 1 1 0 1 0 8 0 scxspl 216 53778 0 53778 12 11 1 8 0 8 1 plimitpl 152 357 0 349 1 0 1 1 0 8 0 sigapl 424 6922 0 6889 4 0 4 4 0 8 0 futexpl 56 43030 0 43029 1 0 1 1 0 8 0 knotepl 112 475 0 461 1 0 1 1 0 8 0 kqueuepl 168 2814 0 2807 1 0 1 1 0 8 0 pipepl 336 246 0 238 6 4 2 2 0 8 1 fdescpl 496 6905 0 6889 3 0 3 3 0 8 0 filepl 152 22028 0 21938 6 1 5 6 0 8 1 lockfpl 104 721 0 720 1 0 1 1 0 8 0 lockfspl 48 265 0 264 1 0 1 1 0 8 0 sessionpl 144 22 0 11 1 0 1 1 0 8 0 pgrppl 48 38 0 27 1 0 1 1 0 8 0 ucredpl 96 3336 0 3327 1 0 1 1 0 8 0 zombiepl 144 6890 0 6889 1 0 1 1 0 8 0 processpl 1072 6922 0 6889 3 0 3 3 0 8 0 procpl 672 15113 0 15072 5 1 4 5 0 8 0 sosppl 168 80 0 80 5 5 0 1 0 8 0 sockpl 432 4098 0 4079 11 7 4 6 0 8 1 mcl64k 65536 10 0 0 2 0 2 2 0 8 0 mcl16k 16384 4 0 0 1 0 1 1 0 8 0 mcl12k 12288 20 0 0 2 0 2 2 0 8 0 mcl9k 9216 15 0 0 2 0 2 2 0 8 0 mcl8k 8192 11 0 0 2 0 2 2 0 8 0 mcl4k 4096 22 0 0 3 0 3 3 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 307 0 0 16 0 16 16 0 8 0 mtagpl 96 372 0 0 7 0 7 7 0 8 0 mbufpl 256 1029 0 0 54 0 54 54 0 8 0 bufpl 280 13063 0 6816 447 0 447 447 0 8 0 anonpl 16 496275 0 488755 82 50 32 54 0 124 1 amapchunkpl 152 25089 0 24902 10 2 8 8 0 158 0 amappl16 192 22876 0 22572 62 45 17 34 0 8 1 amappl15 184 3323 0 3321 1 0 1 1 0 8 0 amappl14 176 946 0 940 1 0 1 1 0 8 0 amappl13 168 1358 0 1353 1 0 1 1 0 8 0 amappl12 160 117 0 115 1 0 1 1 0 8 0 amappl11 152 75 0 58 1 0 1 1 0 8 0 amappl10 144 24 0 17 1 0 1 1 0 8 0 amappl9 136 1162 0 1161 2 1 1 1 0 8 0 amappl8 128 336 0 228 4 0 4 4 0 8 0 amappl7 120 1292 0 1285 1 0 1 1 0 8 0 amappl6 112 86 0 70 1 0 1 1 0 8 0 amappl5 104 5636 0 5617 1 0 1 1 0 8 0 amappl4 96 1359 0 1330 1 0 1 1 0 8 0 amappl3 88 2244 0 2235 1 0 1 1 0 8 0 amappl2 80 55256 0 55170 3 0 3 3 0 8 0 amappl1 72 199471 0 198983 24 14 10 19 0 8 0 amappl 80 15538 0 15455 2 0 2 2 0 84 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 52 0 5 1 0 1 1 0 8 0 uaddrrnd 24 6967 0 6922 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 6967 0 6922 1 0 1 1 0 8 0 vmmpekpl 168 36797 0 36767 2 0 2 2 0 8 0 vmmpepl 168 859043 0 857365 131 52 79 89 0 357 3 vmsppl 368 6966 0 6922 5 0 5 5 0 8 0 pdppl 4096 13941 0 13873 88 18 70 70 0 8 2 pvpl 32 2336029 0 2324929 224 132 92 137 0 265 2 pmappl 232 6966 0 6922 4 1 3 3 0 8 0 extentpl 40 58 0 40 1 0 1 1 0 8 0 phpool 112 405 0 45 11 0 11 11 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace pfi_ifhead_RB_REMOVE(ffffffff8293b5b0,ffff800000b7bf00) at pfi_ifhead_RB_REMOVE+0x50 sys/net/pf_if.c:80 pfi_detach_ifgroup(ffff800000af5b00) at pfi_detach_ifgroup+0x11b pfi_kif_unref sys/net/pf_if.c:211 [inline] pfi_detach_ifgroup(ffff800000af5b00) at pfi_detach_ifgroup+0x11b sys/net/pf_if.c:304 if_delgroup(ffff800000ae4000,ffff800000af5b00) at if_delgroup+0x193 sys/net/if.c:2676 if_detach(ffff800000ae4000) at if_detach+0x1ab sys/net/if.c:1039 tun_clone_destroy(ffff800000ae4000) at tun_clone_destroy+0x1e1 sys/net/if_tun.c:325 if_clone_destroy(ffff8000222d39e0) at if_clone_destroy+0x146 sys/net/if.c:1198 tun_dev_close(5d00,7) at tun_dev_close+0x140 sys/net/if_tun.c:476 spec_close(ffff8000222d3ab0) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd806e8f15c8,7,fffffd807f7b7780,ffff800021278000) at VOP_CLOSE+0xeb sys/kern/vfs_vops.c:177 vn_closefile(fffffd8069ff9ef0,ffff800021278000) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd8069ff9ef0,ffff800021278000) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd8069ff9ef0,ffff800021278000) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd8069ff9ef0,ffff800021278000) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff800021278000) at fdfree+0xf4 sys/kern/kern_descrip.c:1195 exit1(ffff800021278000,0,0,1) at exit1+0x335 sys/kern/kern_exit.c:200 sys_exit(ffff800021278000,ffff8000222d3d40,ffff8000222d3d90) at sys_exit+0x16 sys/kern/kern_exit.c:96 syscall(ffff8000222d3e10) at syscall+0x4a1 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000222d3e10) at syscall+0x4a1 sys/arch/amd64/amd64/trap.c:590 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff9d60, count: -17 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp