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(ffffffff82906bf8,ffff800000b55b00) at pfi_ifhead_RB_REMOVE+0x50 sys/net/pf_if.c:80 pfi_detach_ifgroup(ffff800000b57480) at pfi_detach_ifgroup+0x11b pfi_kif_unref sys/net/pf_if.c:211 [inline] pfi_detach_ifgroup(ffff800000b57480) at pfi_detach_ifgroup+0x11b sys/net/pf_if.c:304 if_delgroup(ffff800000b5a800,ffff800000b57480) at if_delgroup+0x193 sys/net/if.c:2711 if_detach(ffff800000b5a800) at if_detach+0x1cb sys/net/if.c:1049 tun_clone_destroy(ffff800000b5a800) at tun_clone_destroy+0x1e1 sys/net/if_tun.c:325 if_clone_destroy(ffff8000234bf0a0) 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:476 spec_close(ffff8000234bf170) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd806e6e85c8,7,fffffd807f7b78a0,ffff80002123ca80) at VOP_CLOSE+0xeb sys/kern/vfs_vops.c:177 vn_closefile(fffffd806b6e9dc8,ffff80002123ca80) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd806b6e9dc8,ffff80002123ca80) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd806b6e9dc8,ffff80002123ca80) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd806b6e9dc8,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(ffff8000234bf5f0) at syscall+0x55c mi_syscall_return sys/sys/syscall_mi.h:129 [inline] syscall(ffff8000234bf5f0) at syscall+0x55c sys/arch/amd64/amd64/trap.c:612 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdc760, count: -18 ddb{0}> show registers rdi 0xffffffff82906bf8 pfi_ifs rsi 0xffff800000b55b00 rbp 0xffff8000234bef00 rbx 0xdeafbeaddeafbead rdx 0 rcx 0 rax 0xffff800000b55b10 r8 0xf8 r9 0x8080808080808080 r10 0x63636b4cd5133f49 r11 0x95e7346484de0834 r12 0xdeafbeaddeafbead r13 0xffff800000afbe80 r14 0xffff800000b55b00 r15 0xffffffff82906bf8 pfi_ifs rip 0xffffffff81f77a70 pfi_ifhead_RB_REMOVE+0x50 cs 0x8 rflags 0x10282 __ALIGN_SIZE+0xf282 rsp 0xffff8000234beea0 ss 0x10 pfi_ifhead_RB_REMOVE+0x50: movq 0x10(%r12),%rbx ddb{0}> show proc PROC (syz-executor.1) pid=188219 stat=onproc flags process=a proc=2000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff80002123c540,0xffff80002123cfd0 process=0xffff800021235528 user=0xffff8000234ba000, vmspace=0xfffffd8065ebaba0 estcpu=36, cpticks=1, pctcpu=0.18 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 29918 425801 31049 0 3 0x80 nanoslp syz-executor.0 29918 129829 31049 0 3 0x4000080 fsleep syz-executor.0 29918 193916 31049 0 3 0x4000080 ttyout syz-executor.0 29918 439694 31049 0 3 0x4000080 fsleep syz-executor.0 31049 292695 6952 0 3 0x82 nanoslp syz-executor.0 2531 210563 1 0 3 0x100083 ttyin getty 3472 506855 0 0 3 0x14280 nfsidl nfsio 72195 523693 0 0 3 0x14280 nfsidl nfsio 74931 451358 0 0 3 0x14280 nfsidl nfsio 98027 314016 0 0 3 0x14280 nfsidl nfsio 92401 200407 0 0 3 0x14280 nfsidl nfsio 99117 507377 0 0 3 0x14280 nfsidl nfsio 53510 133436 0 0 3 0x14280 nfsidl nfsio 88790 41248 0 0 3 0x14280 nfsidl nfsio 97911 382289 0 0 3 0x14280 nfsidl nfsio 78042 322019 0 0 3 0x14280 nfsidl nfsio 27239 29732 0 0 3 0x14280 nfsidl nfsio 53178 278290 0 0 3 0x14280 nfsidl nfsio 9853 132282 0 0 3 0x14280 nfsidl nfsio 89484 325123 0 0 3 0x14280 nfsidl nfsio 86051 57198 0 0 3 0x14280 nfsidl nfsio 46632 410924 0 0 3 0x14280 nfsidl nfsio 35952 223336 0 0 3 0x14280 nfsidl nfsio 69992 106965 0 0 3 0x14280 nfsidl nfsio 58665 136703 0 0 3 0x14280 nfsidl nfsio 33153 162029 0 0 3 0x14280 nfsidl nfsio 6417 416182 0 0 3 0x14200 bored sosplice 6952 152110 26417 0 3 0x82 thrsleep syz-fuzzer 6952 503877 26417 0 3 0x4000082 thrsleep syz-fuzzer 6952 226259 26417 0 3 0x4000082 thrsleep syz-fuzzer 6952 410584 26417 0 3 0x4000082 thrsleep syz-fuzzer 6952 98198 26417 0 3 0x4000082 thrsleep syz-fuzzer 6952 425825 26417 0 3 0x4000082 thrsleep syz-fuzzer 6952 51379 26417 0 3 0x4000082 thrsleep syz-fuzzer 6952 338397 26417 0 3 0x4000082 kqread syz-fuzzer 6952 484184 26417 0 3 0x4000082 thrsleep syz-fuzzer 26417 27172 69195 0 3 0x10008a sigsusp ksh 69195 7202 9132 0 3 0x92 select sshd 9132 335132 1 0 3 0x80 select sshd 41851 407537 17435 74 3 0x100092 bpf pflogd 17435 226556 1 0 3 0x80 netio pflogd 18174 337118 41056 73 3 0x100090 kqread syslogd 41056 350141 1 0 3 0x100082 netio syslogd 35994 128013 1 77 3 0x100090 poll dhclient 7866 172639 1 0 3 0x80 poll dhclient 39598 480584 0 0 3 0x14200 bored smr 77619 134562 0 0 3 0x14200 pgzero zerothread 17076 117839 0 0 3 0x14200 aiodoned aiodoned 97621 127771 0 0 3 0x14200 syncer update 5540 35790 0 0 3 0x14200 cleaner cleaner 16912 372607 0 0 3 0x14200 reaper reaper 33250 309180 0 0 3 0x14200 pgdaemon pagedaemon 58184 336838 0 0 3 0x14200 bored crynlk 7957 72071 0 0 3 0x14200 bored crypto 67128 260337 0 0 3 0x14200 bored viomb 6910 108975 0 0 3 0x40014200 acpi0 acpi0 13482 295310 0 0 7 0x40014200 idle1 74304 174281 0 0 3 0x14200 bored softnet 14077 33173 0 0 3 0x14200 bored systqmp 33678 168304 0 0 3 0x14200 bored systq 90038 143568 0 0 3 0x40014200 bored softclock 17291 262295 0 0 3 0x40014200 idle0 1 187716 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 9587 6470K 7349K 78643K 19439 0 pcb 13 8K 8K 78643K 459 0 rtable 69 3K 5K 78643K 1577 0 ifaddr 102 20K 23K 78643K 649 0 sysctl 2 0K 0K 78643K 19 0 counters 44 34K 34K 78643K 266 0 ioctlops 0 0K 4K 78643K 1753 0 iov 0 0K 16K 78643K 241 0 mount 1 1K 1K 78643K 1 0 vnodes 1231 77K 78K 78643K 4681 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 17 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 544 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12598 0 file desc 5 13K 25K 78643K 10176 0 sigio 0 0K 0K 78643K 29 0 proc 65 63K 95K 78643K 1131 0 subproc 23 1K 2K 78643K 186 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 610 0 in_multi 19 1K 2K 78643K 449 0 ether_multi 1 0K 0K 78643K 96 0 mrt 0 0K 0K 78643K 61 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 73 334K 334K 78643K 73 0 exec 0 0K 2K 78643K 831 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 299 489K 497K 78643K 22908 0 UVM aobj 28 4K 4K 78643K 28 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 276 0 NDP 20 0K 0K 78643K 166 0 temp 162 3987K 4627K 78643K 85849 0 kqueue 3 4K 24K 78643K 387 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 23 0 19 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 120 322 0 320 1 0 1 1 0 8 0 rtentry 112 192 0 170 2 1 1 2 0 8 0 unpcb 120 2339 0 2318 7 6 1 2 0 8 0 syncache 296 25 0 25 7 7 0 1 0 8 0 tcpqe 32 212 0 212 5 5 0 1 0 8 0 tcpcb 736 1024 0 1020 22 20 2 3 0 8 1 ipq 40 5 0 5 1 1 0 1 0 8 0 ipqe 40 15 0 15 1 1 0 1 0 8 0 inpcb 296 2926 0 2919 13 12 1 2 0 8 0 rttmr 72 20 0 20 3 3 0 1 0 8 0 nd6 48 46 0 43 1 0 1 1 0 8 0 pkpcb 40 31 0 31 4 4 0 1 0 8 0 kcovpl 48 10 0 9 1 0 1 1 0 8 0 swfcl 56 8 0 0 1 0 1 1 0 8 0 ppxss 1128 16 0 16 6 6 0 1 0 8 0 pfstscr 40 14 0 14 1 1 0 1 0 8 0 pffrag 232 1 0 1 1 1 0 1 0 482 0 pffrnode 88 1 0 1 1 1 0 1 0 8 0 pffrent 40 6 0 6 2 2 0 1 0 8 0 pfosfp 40 1435 0 1434 6 5 1 5 0 8 0 pfosfpen 112 1435 0 1433 22 21 1 21 0 8 0 pfrktable 1344 22 0 21 3 2 1 1 0 8 0 pfstitem 24 123 0 99 1 0 1 1 0 8 0 pfstkey 112 135 0 111 1 0 1 1 0 8 0 pfstate 328 128 0 104 6 3 3 3 0 8 0 pfrule 1360 58 0 48 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 861 0 750 16 9 7 13 0 8 0 art_table 32 862 0 750 3 1 2 2 0 8 0 art_node 16 191 0 174 1 0 1 1 0 8 0 sysvmsgpl 40 35 0 21 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 542 0 532 1 0 1 1 0 8 0 shmpl 112 25 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 13777 0 12374 90 1 89 89 0 8 0 ffsino 272 13777 0 12374 96 1 95 95 0 8 0 nchpl 144 25090 0 23494 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 62304 0 62304 1 0 1 1 0 8 1 percpumem 16 144 0 111 1 0 1 1 0 8 0 vcpupl 1984 38 0 0 5 0 5 5 0 8 0 vmpool 560 42 0 4 3 0 3 3 0 8 0 pfiaddrpl 120 7 0 7 3 3 0 1 0 8 0 scsiplug 72 4 0 4 1 1 0 1 0 8 0 scxspl 216 73611 0 73611 10 9 1 8 0 8 1 plimitpl 152 448 0 440 1 0 1 1 0 8 0 sigapl 424 10391 0 10338 7 0 7 7 0 8 0 futexpl 56 74729 0 74727 1 0 1 1 0 8 0 knotepl 112 885 0 867 2 1 1 2 0 8 0 kqueuepl 168 5456 0 5440 2 1 1 2 0 8 0 pipepl 336 463 0 453 9 7 2 3 0 8 0 fdescpl 496 10354 0 10338 4 1 3 3 0 8 0 filepl 152 32356 0 32261 8 3 5 7 0 8 0 lockfpl 104 982 0 981 1 0 1 1 0 8 0 lockfspl 48 384 0 383 1 0 1 1 0 8 0 sessionpl 144 28 0 17 1 0 1 1 0 8 0 pgrppl 48 36 0 25 1 0 1 1 0 8 0 ucredpl 96 3666 0 3657 1 0 1 1 0 8 0 zombiepl 144 10339 0 10338 1 0 1 1 0 8 0 processpl 1080 10391 0 10338 4 0 4 4 0 8 0 procpl 672 21293 0 21229 6 0 6 6 0 8 0 sosppl 168 52 0 52 9 9 0 1 0 8 0 sockpl 432 5640 0 5610 21 17 4 7 0 8 0 mcl64k 65536 9 0 0 2 0 2 2 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 5 0 0 1 0 1 1 0 8 0 mcl9k 9216 4 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 19 0 0 3 1 2 3 0 8 0 mcl2k2 2112 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 352 0 0 17 0 17 17 0 8 0 mtagpl 96 392 0 0 8 0 8 8 0 8 0 mbufpl 256 1004 0 0 48 0 48 48 0 8 0 bufpl 280 15337 0 9088 447 0 447 447 0 8 0 anonpl 16 770154 0 760810 131 79 52 52 0 124 12 amapchunkpl 152 34314 0 34116 15 5 10 13 0 158 0 amappl16 192 35855 0 35460 114 85 29 32 0 8 8 amappl15 184 438 0 436 1 0 1 1 0 8 0 amappl14 176 3838 0 3828 1 0 1 1 0 8 0 amappl13 168 79 0 75 1 0 1 1 0 8 0 amappl12 160 2389 0 2388 1 0 1 1 0 8 0 amappl11 152 233 0 216 1 0 1 1 0 8 0 amappl10 144 3307 0 3299 1 0 1 1 0 8 0 amappl9 136 17 0 16 2 1 1 1 0 8 0 amappl8 128 411 0 280 5 0 5 5 0 8 0 amappl7 120 341 0 331 1 0 1 1 0 8 0 amappl6 112 3385 0 3369 1 0 1 1 0 8 0 amappl5 104 6584 0 6564 1 0 1 1 0 8 0 amappl4 96 6311 0 6280 1 0 1 1 0 8 0 amappl3 88 336 0 329 1 0 1 1 0 8 0 amappl2 80 86339 0 86244 3 0 3 3 0 8 0 amappl1 72 282921 0 282429 24 14 10 19 0 8 0 amappl 80 21738 0 21631 3 0 3 3 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 27 0 0 1 0 1 1 0 8 0 uaddrrnd 24 10396 0 10342 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 10396 0 10342 1 0 1 1 0 8 0 vmmpekpl 168 48402 0 48355 3 0 3 3 0 8 0 vmmpepl 168 1285495 0 1283638 171 74 97 97 0 357 10 vmsppl 368 10395 0 10342 5 0 5 5 0 8 0 pdppl 4096 20799 0 20722 99 19 80 80 0 8 3 pvpl 32 3935007 0 3922891 313 178 135 137 0 265 35 pmappl 232 10395 0 10342 5 1 4 4 0 8 0 extentpl 40 58 0 40 1 0 1 1 0 8 0 phpool 112 419 0 61 11 0 11 11 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace pfi_ifhead_RB_REMOVE(ffffffff82906bf8,ffff800000b55b00) at pfi_ifhead_RB_REMOVE+0x50 sys/net/pf_if.c:80 pfi_detach_ifgroup(ffff800000b57480) at pfi_detach_ifgroup+0x11b pfi_kif_unref sys/net/pf_if.c:211 [inline] pfi_detach_ifgroup(ffff800000b57480) at pfi_detach_ifgroup+0x11b sys/net/pf_if.c:304 if_delgroup(ffff800000b5a800,ffff800000b57480) at if_delgroup+0x193 sys/net/if.c:2711 if_detach(ffff800000b5a800) at if_detach+0x1cb sys/net/if.c:1049 tun_clone_destroy(ffff800000b5a800) at tun_clone_destroy+0x1e1 sys/net/if_tun.c:325 if_clone_destroy(ffff8000234bf0a0) 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:476 spec_close(ffff8000234bf170) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd806e6e85c8,7,fffffd807f7b78a0,ffff80002123ca80) at VOP_CLOSE+0xeb sys/kern/vfs_vops.c:177 vn_closefile(fffffd806b6e9dc8,ffff80002123ca80) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd806b6e9dc8,ffff80002123ca80) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd806b6e9dc8,ffff80002123ca80) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd806b6e9dc8,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(ffff8000234bf5f0) at syscall+0x55c mi_syscall_return sys/sys/syscall_mi.h:129 [inline] syscall(ffff8000234bf5f0) at syscall+0x55c sys/arch/amd64/amd64/trap.c:612 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdc760, 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