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(ffffffff828fdd00,ffff800000b63a00) at pfi_ifhead_RB_REMOVE+0x50 sys/net/pf_if.c:80 pfi_detach_ifgroup(ffff800000b85500) at pfi_detach_ifgroup+0x11b pfi_kif_unref sys/net/pf_if.c:211 [inline] pfi_detach_ifgroup(ffff800000b85500) at pfi_detach_ifgroup+0x11b sys/net/pf_if.c:304 if_delgroup(ffff800000b16000,ffff800000b85500) at if_delgroup+0x193 sys/net/if.c:2711 if_detach(ffff800000b16000) at if_detach+0x1cb sys/net/if.c:1049 tun_clone_destroy(ffff800000b16000) at tun_clone_destroy+0x1e1 sys/net/if_tun.c:325 if_clone_destroy(ffff8000212aaa50) 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(ffff8000212aab20) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd807ce61408,7,fffffd807f7b7900,ffff800021291a40) at VOP_CLOSE+0xeb sys/kern/vfs_vops.c:177 vn_closefile(fffffd8067735ef8,ffff800021291a40) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd8067735ef8,ffff800021291a40) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd8067735ef8,ffff800021291a40) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd8067735ef8,ffff800021291a40) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff800021291a40) at fdfree+0xf4 sys/kern/kern_descrip.c:1195 exit1(ffff800021291a40,0,19,1) at exit1+0x335 sys/kern/kern_exit.c:200 postsig(ffff800021291a40,19) at postsig+0x59c sigexit sys/kern/kern_sig.c:1494 [inline] postsig(ffff800021291a40,19) at postsig+0x59c sys/kern/kern_sig.c:1423 userret(ffff800021291a40) at userret+0x189 sys/kern/kern_sig.c:1914 syscall(ffff8000212aafa0) at syscall+0x55c mi_syscall_return sys/sys/syscall_mi.h:129 [inline] syscall(ffff8000212aafa0) at syscall+0x55c sys/arch/amd64/amd64/trap.c:612 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff85b0, count: -18 ddb{1}> show registers rdi 0xffffffff828fdd00 pfi_ifs rsi 0xffff800000b63a00 rbp 0xffff8000212aa8b0 rbx 0xdeaf4152deaf4152 rdx 0 rcx 0xffff800000b85f80 rax 0xffff800000b63a10 r8 0xf8 r9 0x8080808080808080 r10 0xad9621619ec0d696 r11 0x93bf7486a53e2000 r12 0xdeaf4152deaf4152 r13 0xffff800000b308e0 r14 0xffff800000b63a00 r15 0xffffffff828fdd00 pfi_ifs rip 0xffffffff814b5c90 pfi_ifhead_RB_REMOVE+0x50 cs 0x8 rflags 0x10282 __ALIGN_SIZE+0xf282 rsp 0xffff8000212aa850 ss 0x10 pfi_ifhead_RB_REMOVE+0x50: movq 0x10(%r12),%rbx ddb{1}> show proc PROC (syz-executor.0) pid=71795 stat=onproc flags process=a proc=2000 pri=32, usrpri=78, nice=20 forw=0xffffffffffffffff, list=0xffff8000211c2a88,0xffff800021291270 process=0xffff800021235d98 user=0xffff8000212a6000, vmspace=0xfffffd807eff9cf0 estcpu=36, cpticks=3, pctcpu=0.37 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 43479 184830 1 0 3 0x100083 ttyin getty 75335 211450 62599 0 7 0x2 syz-executor.1 14645 6211 0 0 3 0x14280 nfsidl nfsio 45746 51374 0 0 3 0x14280 nfsidl nfsio 67426 182414 0 0 3 0x14280 nfsidl nfsio 75400 432136 0 0 3 0x14280 nfsidl nfsio 82125 389840 0 0 3 0x14280 nfsidl nfsio 38354 522790 0 0 3 0x14280 nfsidl nfsio 65308 126193 0 0 3 0x14280 nfsidl nfsio 40529 323453 0 0 3 0x14280 nfsidl nfsio 42092 226401 0 0 3 0x14280 nfsidl nfsio 7823 64183 0 0 3 0x14280 nfsidl nfsio 20525 132449 0 0 3 0x14280 nfsidl nfsio 31649 46346 0 0 3 0x14280 nfsidl nfsio 67733 488078 0 0 3 0x14280 nfsidl nfsio 20724 444727 0 0 3 0x14280 nfsidl nfsio 43280 434150 0 0 3 0x14280 nfsidl nfsio 38652 24864 0 0 3 0x14280 nfsidl nfsio 53336 297841 0 0 3 0x14280 nfsidl nfsio 21757 306103 0 0 3 0x14280 nfsidl nfsio 79958 5581 0 0 3 0x14280 nfsidl nfsio 69131 257421 0 0 3 0x14280 nfsidl nfsio 42014 38778 0 0 3 0x14200 bored sosplice 62599 380740 62761 0 3 0x2 netlock syz-fuzzer 62599 421257 62761 0 3 0x4000082 nanoslp syz-fuzzer 62599 372153 62761 0 3 0x4000082 thrsleep syz-fuzzer 62599 156423 62761 0 3 0x4000082 thrsleep syz-fuzzer 62599 398025 62761 0 3 0x4000082 thrsleep syz-fuzzer 62599 31372 62761 0 3 0x4000082 thrsleep syz-fuzzer 62599 113915 62761 0 3 0x4000082 kqread syz-fuzzer 62599 423561 62761 0 3 0x4000082 thrsleep syz-fuzzer 62761 333281 29324 0 3 0x10008a sigsusp ksh 29324 336131 18772 0 3 0x92 select sshd 18772 179593 1 0 3 0x80 select sshd 29766 370145 70793 74 3 0x100092 bpf pflogd 70793 372979 1 0 3 0x80 netio pflogd 91680 339070 37351 73 2 0x100010 syslogd 37351 146771 1 0 3 0x100082 netio syslogd 79582 494372 1 77 2 0x100090 dhclient 65098 328890 1 0 3 0x80 poll dhclient 35949 270686 0 0 3 0x14200 bored smr 24458 335017 0 0 3 0x14200 pgzero zerothread 46971 519812 0 0 3 0x14200 aiodoned aiodoned 65561 311864 0 0 3 0x14200 syncer update 20344 503658 0 0 3 0x14200 cleaner cleaner 66438 206761 0 0 3 0x14200 reaper reaper 39250 253407 0 0 3 0x14200 pgdaemon pagedaemon 5585 177164 0 0 3 0x14200 bored crynlk 9619 56234 0 0 3 0x14200 bored crypto 31447 511264 0 0 3 0x14200 bored viomb 27598 353573 0 0 3 0x40014200 acpi0 acpi0 54173 434506 0 0 3 0x40014200 idle1 98170 111404 0 0 3 0x14200 bored softnet 82601 207781 0 0 2 0x14200 systqmp 36451 405880 0 0 3 0x14200 bored systq 49054 269740 0 0 3 0x40014200 bored softclock 10874 507559 0 0 3 0x40014200 idle0 1 410260 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 9537 6434K 7194K 78643K 15778 0 pcb 13 8K 8K 78643K 273 0 rtable 89 4K 4K 78643K 641 0 ifaddr 74 14K 16K 78643K 214 0 counters 44 34K 34K 78643K 82 0 ioctlops 0 0K 4K 78643K 1615 0 iov 0 0K 24K 78643K 247 0 mount 1 1K 1K 78643K 1 0 vnodes 1222 77K 77K 78643K 3006 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 22 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 306 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12598 0 file desc 4 9K 25K 78643K 5499 0 sigio 0 0K 0K 78643K 34 0 proc 62 63K 95K 78643K 879 0 subproc 23 1K 2K 78643K 101 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 283 0 in_multi 22 1K 2K 78643K 173 0 ether_multi 1 0K 0K 78643K 50 0 mrt 0 0K 0K 78643K 58 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 49 228K 228K 78643K 49 0 exec 0 0K 2K 78643K 558 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 152 26K 26K 78643K 13336 0 UVM aobj 30 2K 2K 78643K 30 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 328 0 NDP 13 0K 0K 78643K 42 0 temp 141 3989K 4064K 78643K 49317 0 kqueue 3 4K 12K 78643K 247 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 13 0 9 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 104 0 71 2 0 2 2 0 8 0 unpcb 120 1302 0 1288 1 0 1 1 0 8 0 syncache 296 40 0 40 6 6 0 1 0 8 0 tcpqe 32 48 0 48 10 10 0 1 0 8 0 tcpcb 736 721 0 705 14 10 4 4 0 8 1 inpcb 304 2195 0 2181 8 6 2 2 0 8 0 rttmr 72 25 0 25 3 3 0 1 0 8 0 nd6 48 15 0 12 1 0 1 1 0 8 0 pkpcb 40 13 0 13 1 1 0 1 0 8 0 kcovpl 48 5 0 4 1 0 1 1 0 8 0 ppxss 1128 4 0 4 1 1 0 1 0 8 0 pffrag 232 3 0 3 1 1 0 1 0 482 0 pffrnode 88 3 0 3 1 1 0 1 0 8 0 pffrent 40 5 0 5 1 1 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 9 0 8 1 0 1 1 0 8 0 pftag 88 2 0 0 1 0 1 1 0 8 0 pfstitem 24 75 0 51 1 0 1 1 0 8 0 pfstkey 112 75 0 51 1 0 1 1 0 8 0 pfstate 328 75 0 51 4 1 3 3 0 8 0 pfrule 1360 53 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 327 0 136 12 0 12 12 0 8 0 art_table 32 328 0 136 2 0 2 2 0 8 0 art_node 16 103 0 63 1 0 1 1 0 8 0 sysvmsgpl 40 59 0 19 1 0 1 1 0 8 0 semupl 112 10 0 10 1 1 0 1 0 8 0 semapl 112 304 0 294 1 0 1 1 0 8 0 shmpl 112 27 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 8291 0 6889 91 3 88 89 0 8 0 ffsino 272 8291 0 6889 95 0 95 95 0 8 0 nchpl 144 14962 0 13371 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 37583 0 37583 2 1 1 1 0 8 1 percpumem 16 52 0 19 1 0 1 1 0 8 0 vmpool 560 16 0 16 2 2 0 1 0 8 0 scxspl 216 48965 0 48965 9 8 1 8 0 8 1 plimitpl 152 290 0 282 1 0 1 1 0 8 0 sigapl 424 5729 0 5677 8 1 7 7 0 8 1 futexpl 56 37965 0 37965 2 1 1 1 0 8 1 knotepl 112 424 0 406 1 0 1 1 0 8 0 kqueuepl 168 2262 0 2260 1 0 1 1 0 8 0 pipepl 336 529 0 519 5 3 2 3 0 8 0 fdescpl 496 5692 0 5677 3 0 3 3 0 8 0 filepl 152 19332 0 19241 7 2 5 7 0 8 0 lockfpl 104 832 0 831 1 0 1 1 0 8 0 lockfspl 48 240 0 239 1 0 1 1 0 8 0 sessionpl 144 22 0 11 1 0 1 1 0 8 0 pgrppl 48 22 0 11 1 0 1 1 0 8 0 ucredpl 96 2705 0 2696 1 0 1 1 0 8 0 zombiepl 144 5678 0 5677 1 0 1 1 0 8 0 processpl 1080 5729 0 5677 4 0 4 4 0 8 0 procpl 672 12429 0 12370 6 0 6 6 0 8 0 srpgc 96 2 0 2 1 1 0 1 0 8 0 sosppl 168 72 0 72 5 4 1 1 0 8 1 sockpl 432 3693 0 3659 15 10 5 5 0 8 0 mcl64k 65536 18 0 0 3 0 3 3 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 14 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k 2048 264 0 0 15 0 15 15 0 8 0 mtagpl 96 219 0 0 6 0 6 6 0 8 0 mbufpl 256 828 0 0 42 0 42 42 0 8 0 bufpl 280 14454 0 8207 447 0 447 447 0 8 0 anonpl 24 461311 0 455400 111 71 40 78 0 186 1 amapchunkpl 152 21597 0 21437 13 4 9 12 0 158 0 amappl16 200 20777 0 20557 71 58 13 33 0 8 1 amappl15 192 1 0 1 1 1 0 1 0 8 0 amappl14 184 24 0 19 1 0 1 1 0 8 0 amappl13 176 72 0 70 1 0 1 1 0 8 0 amappl12 168 5 0 3 1 0 1 1 0 8 0 amappl11 160 3451 0 3432 1 0 1 1 0 8 0 amappl10 152 1472 0 1464 1 0 1 1 0 8 0 amappl9 144 620 0 620 2 2 0 1 0 8 0 amappl8 136 265 0 189 3 0 3 3 0 8 0 amappl7 128 891 0 882 1 0 1 1 0 8 0 amappl6 120 1541 0 1524 1 0 1 1 0 8 0 amappl5 112 6410 0 6391 1 0 1 1 0 8 0 amappl4 104 3676 0 3647 2 1 1 2 0 8 0 amappl3 96 238 0 230 1 0 1 1 0 8 0 amappl2 88 44484 0 44420 3 1 2 3 0 8 0 amappl1 80 171140 0 170688 26 14 12 21 0 8 0 amappl 88 12750 0 12700 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 29 0 0 1 0 1 1 0 8 0 uaddrrnd 24 5708 0 5693 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 5708 0 5693 1 0 1 1 0 8 0 vmmpekpl 168 28813 0 28782 2 0 2 2 0 8 0 vmmpepl 168 719972 0 718618 129 57 72 87 0 357 3 vmsppl 368 5707 0 5693 2 0 2 2 0 8 0 rwobjpl 56 151760 0 150826 41 26 15 20 0 8 0 pdppl 4096 11423 0 11386 62 21 41 45 0 8 4 pvpl 32 2116904 0 2107865 228 139 89 135 0 265 10 pmappl 232 5707 0 5693 4 3 1 2 0 8 0 extentpl 40 58 0 40 1 0 1 1 0 8 0 phpool 112 358 0 41 10 0 10 10 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff826ffff0) 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(ffffffff828fc1d0) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828fc1d0) at __mp_lock+0x122 sys/kern/kern_lock.c:147 syscall(ffff800023b5b060) at syscall+0x3fd mi_syscall sys/sys/syscall_mi.h:93 [inline] syscall(ffff800023b5b060) at syscall+0x3fd sys/arch/amd64/amd64/trap.c:590 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffbd6a0, count: -6 ddb{0}> machine ddbcpu 1 Stopped at pfi_ifhead_RB_REMOVE+0x50: movq 0x10(%r12),%rbx ddb{1}> trace pfi_ifhead_RB_REMOVE(ffffffff828fdd00,ffff800000b63a00) at pfi_ifhead_RB_REMOVE+0x50 sys/net/pf_if.c:80 pfi_detach_ifgroup(ffff800000b85500) at pfi_detach_ifgroup+0x11b pfi_kif_unref sys/net/pf_if.c:211 [inline] pfi_detach_ifgroup(ffff800000b85500) at pfi_detach_ifgroup+0x11b sys/net/pf_if.c:304 if_delgroup(ffff800000b16000,ffff800000b85500) at if_delgroup+0x193 sys/net/if.c:2711 if_detach(ffff800000b16000) at if_detach+0x1cb sys/net/if.c:1049 tun_clone_destroy(ffff800000b16000) at tun_clone_destroy+0x1e1 sys/net/if_tun.c:325 if_clone_destroy(ffff8000212aaa50) 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(ffff8000212aab20) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd807ce61408,7,fffffd807f7b7900,ffff800021291a40) at VOP_CLOSE+0xeb sys/kern/vfs_vops.c:177 vn_closefile(fffffd8067735ef8,ffff800021291a40) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd8067735ef8,ffff800021291a40) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd8067735ef8,ffff800021291a40) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd8067735ef8,ffff800021291a40) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff800021291a40) at fdfree+0xf4 sys/kern/kern_descrip.c:1195 exit1(ffff800021291a40,0,19,1) at exit1+0x335 sys/kern/kern_exit.c:200 postsig(ffff800021291a40,19) at postsig+0x59c sigexit sys/kern/kern_sig.c:1494 [inline] postsig(ffff800021291a40,19) at postsig+0x59c sys/kern/kern_sig.c:1423 userret(ffff800021291a40) at userret+0x189 sys/kern/kern_sig.c:1914 syscall(ffff8000212aafa0) at syscall+0x55c mi_syscall_return sys/sys/syscall_mi.h:129 [inline] syscall(ffff8000212aafa0) at syscall+0x55c sys/arch/amd64/amd64/trap.c:612 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff85b0, count: -18