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(ffffffff828db2a0,ffff800000b5a900) at pfi_ifhead_RB_REMOVE+0x50 sys/net/pf_if.c:80 pfi_detach_ifgroup(ffff800000af6380) at pfi_detach_ifgroup+0x11b pfi_kif_unref sys/net/pf_if.c:211 [inline] pfi_detach_ifgroup(ffff800000af6380) at pfi_detach_ifgroup+0x11b sys/net/pf_if.c:304 if_delgroup(ffff800000b24000,ffff800000af6380) at if_delgroup+0x193 sys/net/if.c:2711 if_detach(ffff800000b24000) at if_detach+0x1cb sys/net/if.c:1049 tun_clone_destroy(ffff800000b24000) at tun_clone_destroy+0x1e1 sys/net/if_tun.c:325 if_clone_destroy(ffff8000212c50b0) 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(ffff8000212c5180) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd8077f0d788,7,fffffd807f7b7ae0,ffff80002127b7a0) at VOP_CLOSE+0xeb sys/kern/vfs_vops.c:177 vn_closefile(fffffd806a784c90,ffff80002127b7a0) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd806a784c90,ffff80002127b7a0) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd806a784c90,ffff80002127b7a0) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd806a784c90,ffff80002127b7a0) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff80002127b7a0) at fdfree+0xf4 sys/kern/kern_descrip.c:1195 exit1(ffff80002127b7a0,0,19,1) at exit1+0x335 sys/kern/kern_exit.c:200 postsig(ffff80002127b7a0,19) at postsig+0x59c sigexit sys/kern/kern_sig.c:1494 [inline] postsig(ffff80002127b7a0,19) at postsig+0x59c sys/kern/kern_sig.c:1423 userret(ffff80002127b7a0) at userret+0x189 sys/kern/kern_sig.c:1914 syscall(ffff8000212c5600) at syscall+0x55c mi_syscall_return sys/sys/syscall_mi.h:129 [inline] syscall(ffff8000212c5600) at syscall+0x55c sys/arch/amd64/amd64/trap.c:612 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcf910, count: -18 ddb{0}> show registers rdi 0xffffffff828db2a0 pfi_ifs rsi 0xffff800000b5a900 rbp 0xffff8000212c4f10 rbx 0xdead4110dead4110 rdx 0 rcx 0xffff8000006bb800 rax 0xffff800000b5a910 r8 0xf8 r9 0x8080808080808080 r10 0x5395bc70313a6852 r11 0x25aabb55fa25348e r12 0xdead4110dead4110 r13 0xffff800000b5b460 r14 0xffff800000b5a900 r15 0xffffffff828db2a0 pfi_ifs rip 0xffffffff81618690 pfi_ifhead_RB_REMOVE+0x50 cs 0x8 rflags 0x10282 __ALIGN_SIZE+0xf282 rsp 0xffff8000212c4eb0 ss 0x10 pfi_ifhead_RB_REMOVE+0x50: movq 0x10(%r12),%rbx ddb{0}> show proc PROC (syz-executor.0) pid=87574 stat=onproc flags process=a proc=2000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff80002127aa80,0xffff80002127ad30 process=0xffff800021234010 user=0xffff8000212c0000, vmspace=0xfffffd807eff98a0 estcpu=36, cpticks=8, pctcpu=0.39 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 47444 317346 98821 0 7 0 syz-executor.1 62381 151585 0 0 3 0x14200 bored sosplice 98821 77103 86677 0 3 0x82 nanoslp syz-executor.1 86677 15030 95252 0 3 0x82 thrsleep syz-fuzzer 86677 472380 95252 0 3 0x4000082 nanoslp syz-fuzzer 86677 153439 95252 0 3 0x4000082 thrsleep syz-fuzzer 86677 124969 95252 0 3 0x4000082 thrsleep syz-fuzzer 86677 139361 95252 0 3 0x4000082 thrsleep syz-fuzzer 86677 370906 95252 0 3 0x4000082 thrsleep syz-fuzzer 86677 59233 95252 0 3 0x4000082 nanoslp syz-fuzzer 86677 476854 95252 0 3 0x4000082 kqread syz-fuzzer 95252 431026 89380 0 3 0x10008a sigsusp ksh 89380 432933 22043 0 3 0x92 select sshd 49450 133175 1 0 3 0x100083 ttyin getty 22043 331727 1 0 3 0x80 select sshd 62518 66924 42808 74 3 0x100092 bpf pflogd 42808 157108 1 0 3 0x80 netio pflogd 38298 177601 30229 73 3 0x100090 kqread syslogd 30229 387781 1 0 3 0x100082 netio syslogd 29773 253593 1 77 2 0x100090 dhclient 55851 144750 1 0 3 0x80 poll dhclient 47 323389 0 0 3 0x14200 bored smr 57494 411622 0 0 3 0x14200 pgzero zerothread 89691 236092 0 0 3 0x14200 aiodoned aiodoned 45397 394210 0 0 3 0x14200 syncer update 64739 16016 0 0 3 0x14200 cleaner cleaner 66218 367395 0 0 3 0x14200 reaper reaper 60775 488314 0 0 3 0x14200 pgdaemon pagedaemon 61732 213118 0 0 3 0x14200 bored crynlk 89017 114026 0 0 3 0x14200 bored crypto 98735 287945 0 0 3 0x14200 bored viomb 72257 56233 0 0 3 0x40014200 acpi0 acpi0 99704 266347 0 0 3 0x40014200 idle1 46166 274256 0 0 3 0x14200 bored softnet 71148 188183 0 0 2 0x14200 systqmp 7750 383064 0 0 3 0x14200 bored systq 70036 424788 0 0 3 0x40014200 bored softclock 17513 262710 0 0 3 0x40014200 idle0 1 5650 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 9529 6435K 7014K 78643K 12458 0 pcb 13 8K 8K 78643K 72 0 rtable 83 2K 3K 78643K 287 0 ifaddr 66 12K 13K 78643K 81 0 counters 44 34K 34K 78643K 46 0 ioctlops 0 0K 4K 78643K 1520 0 iov 0 0K 16K 78643K 78 0 mount 1 1K 1K 78643K 1 0 vnodes 1227 77K 77K 78643K 1897 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 1K 78643K 2 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 117 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12598 0 file desc 5 13K 25K 78643K 2169 0 sigio 0 0K 0K 78643K 13 0 proc 61 63K 83K 78643K 527 0 subproc 23 1K 2K 78643K 51 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 201 0 in_multi 22 1K 2K 78643K 125 0 ether_multi 1 0K 0K 78643K 24 0 mrt 0 0K 0K 78643K 15 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 430 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 122 24K 39K 78643K 5661 0 UVM aobj 3 2K 2K 78643K 3 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 45 0 NDP 12 0K 0K 78643K 19 0 temp 98 3973K 4037K 78643K 13475 0 kqueue 3 4K 12K 78643K 102 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 8 0 4 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 120 46 0 44 1 0 1 1 0 8 0 rtentry 112 56 0 23 2 0 2 2 0 8 0 unpcb 120 431 0 421 1 0 1 1 0 8 0 syncache 296 18 0 18 2 2 0 1 0 8 0 tcpqe 32 22 0 22 2 2 0 1 0 8 0 tcpcb 736 189 0 185 7 5 2 5 0 8 1 inpcb 296 768 0 761 6 4 2 2 0 8 1 nd6 48 9 0 6 1 0 1 1 0 8 0 pkpcb 40 8 0 8 1 1 0 1 0 8 0 kcovpl 48 3 0 2 1 0 1 1 0 8 0 pffrag 232 3 0 0 1 0 1 1 0 482 0 pffrnode 88 3 0 0 1 0 1 1 0 8 0 pffrent 40 12 0 9 1 0 1 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 pfstitem 24 24 0 15 1 0 1 1 0 8 0 pfstkey 112 29 0 20 1 0 1 1 0 8 0 pfstate 328 29 0 20 2 0 2 2 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 232 0 44 12 0 12 12 0 8 0 art_table 32 233 0 44 2 0 2 2 0 8 0 art_node 16 55 0 15 1 0 1 1 0 8 0 semupl 112 9 0 9 1 1 0 1 0 8 0 semapl 112 115 0 105 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 4063 0 2657 90 1 89 89 0 8 0 ffsino 272 4063 0 2657 95 0 95 95 0 8 0 nchpl 144 6665 0 5074 60 0 60 60 0 8 0 uvmvnodes 72 4593 0 0 84 0 84 84 0 8 0 vnodes 224 4593 0 0 271 0 271 271 0 8 0 namei 1024 17273 0 17273 2 1 1 1 0 8 1 percpumem 16 34 0 1 1 0 1 1 0 8 0 scxspl 216 19493 0 19493 10 9 1 8 0 8 1 plimitpl 152 109 0 101 1 0 1 1 0 8 0 sigapl 424 2383 0 2350 4 0 4 4 0 8 0 futexpl 56 13165 0 13165 1 0 1 1 0 8 1 knotepl 112 201 0 183 1 0 1 1 0 8 0 kqueuepl 168 1010 0 1008 1 0 1 1 0 8 0 pipepl 336 191 0 181 7 5 2 3 0 8 0 fdescpl 496 2366 0 2350 4 1 3 3 0 8 1 filepl 152 8125 0 8034 8 2 6 7 0 8 2 lockfpl 104 136 0 135 1 0 1 1 0 8 0 lockfspl 48 56 0 55 1 0 1 1 0 8 0 sessionpl 144 19 0 8 1 0 1 1 0 8 0 pgrppl 48 19 0 8 1 0 1 1 0 8 0 ucredpl 96 1557 0 1548 1 0 1 1 0 8 0 zombiepl 144 2351 0 2350 2 1 1 1 0 8 0 processpl 1080 2383 0 2350 3 0 3 3 0 8 0 procpl 672 4967 0 4927 4 0 4 4 0 8 0 sosppl 168 14 0 14 1 1 0 1 0 8 0 sockpl 432 1268 0 1249 6 2 4 5 0 8 1 mcl64k 65536 13 0 0 2 0 2 2 0 8 0 mcl12k 12288 13 0 0 2 0 2 2 0 8 0 mcl9k 9216 4 0 0 1 0 1 1 0 8 0 mcl8k 8192 16 0 0 2 0 2 2 0 8 0 mcl4k 4096 5 0 0 1 0 1 1 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 180 0 0 16 0 16 16 0 8 0 mtagpl 96 99 0 0 3 0 3 3 0 8 0 mbufpl 256 442 0 0 24 0 24 24 0 8 0 bufpl 280 5870 0 181 407 0 407 407 0 8 0 anonpl 24 169819 0 164165 60 24 36 57 0 186 1 amapchunkpl 152 11470 0 11295 24 16 8 21 0 158 0 amappl16 200 7006 0 6819 23 12 11 22 0 8 1 amappl15 192 1 0 0 1 0 1 1 0 8 0 amappl14 184 25 0 21 1 0 1 1 0 8 0 amappl13 176 35 0 31 1 0 1 1 0 8 0 amappl12 168 13 0 5 1 0 1 1 0 8 0 amappl11 160 1947 0 1928 2 1 1 2 0 8 0 amappl10 152 264 0 259 1 0 1 1 0 8 0 amappl9 144 285 0 285 1 1 0 1 0 8 0 amappl8 136 180 0 127 2 0 2 2 0 8 0 amappl7 128 260 0 252 1 0 1 1 0 8 0 amappl6 120 323 0 310 1 0 1 1 0 8 0 amappl5 112 3341 0 3323 1 0 1 1 0 8 0 amappl4 104 1339 0 1310 1 0 1 1 0 8 0 amappl3 96 183 0 174 1 0 1 1 0 8 0 amappl2 88 18224 0 18161 3 1 2 3 0 8 0 amappl1 80 73028 0 72574 26 14 12 21 0 8 0 amappl 88 5254 0 5200 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 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 2366 0 2350 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2366 0 2350 1 0 1 1 0 8 0 vmmpekpl 168 15838 0 15806 2 0 2 2 0 8 0 vmmpepl 168 298989 0 297621 94 26 68 76 0 357 1 vmsppl 368 2365 0 2350 2 0 2 2 0 8 0 rwobjpl 56 62711 0 61841 28 14 14 19 0 8 1 pdppl 4096 4739 0 4700 57 16 41 45 0 8 2 pvpl 32 883139 0 874414 155 76 79 117 0 265 2 pmappl 232 2365 0 2350 2 1 1 2 0 8 0 extentpl 40 58 0 40 1 0 1 1 0 8 0 phpool 112 326 0 31 9 0 9 9 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace pfi_ifhead_RB_REMOVE(ffffffff828db2a0,ffff800000b5a900) at pfi_ifhead_RB_REMOVE+0x50 sys/net/pf_if.c:80 pfi_detach_ifgroup(ffff800000af6380) at pfi_detach_ifgroup+0x11b pfi_kif_unref sys/net/pf_if.c:211 [inline] pfi_detach_ifgroup(ffff800000af6380) at pfi_detach_ifgroup+0x11b sys/net/pf_if.c:304 if_delgroup(ffff800000b24000,ffff800000af6380) at if_delgroup+0x193 sys/net/if.c:2711 if_detach(ffff800000b24000) at if_detach+0x1cb sys/net/if.c:1049 tun_clone_destroy(ffff800000b24000) at tun_clone_destroy+0x1e1 sys/net/if_tun.c:325 if_clone_destroy(ffff8000212c50b0) 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(ffff8000212c5180) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd8077f0d788,7,fffffd807f7b7ae0,ffff80002127b7a0) at VOP_CLOSE+0xeb sys/kern/vfs_vops.c:177 vn_closefile(fffffd806a784c90,ffff80002127b7a0) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd806a784c90,ffff80002127b7a0) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd806a784c90,ffff80002127b7a0) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd806a784c90,ffff80002127b7a0) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff80002127b7a0) at fdfree+0xf4 sys/kern/kern_descrip.c:1195 exit1(ffff80002127b7a0,0,19,1) at exit1+0x335 sys/kern/kern_exit.c:200 postsig(ffff80002127b7a0,19) at postsig+0x59c sigexit sys/kern/kern_sig.c:1494 [inline] postsig(ffff80002127b7a0,19) at postsig+0x59c sys/kern/kern_sig.c:1423 userret(ffff80002127b7a0) at userret+0x189 sys/kern/kern_sig.c:1914 syscall(ffff8000212c5600) at syscall+0x55c mi_syscall_return sys/sys/syscall_mi.h:129 [inline] syscall(ffff8000212c5600) at syscall+0x55c sys/arch/amd64/amd64/trap.c:612 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcf910, 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 __mp_lock(ffffffff828be338) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828be338) at __mp_lock+0x122 sys/kern/kern_lock.c:147 upageflttrap(ffff80002128d7b0,12dbbf39b28) at upageflttrap+0x77 sys/arch/amd64/amd64/trap.c:180 usertrap(ffff80002128d7b0) at usertrap+0x21a sys/arch/amd64/amd64/trap.c:406 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0x7f7fffff73b0, count: -7