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(ffffffff829032c0,ffff800000b9f500) at pfi_ifhead_RB_REMOVE+0x50 sys/net/pf_if.c:80 pfi_detach_ifgroup(ffff800000b49f80) at pfi_detach_ifgroup+0x11b pfi_kif_unref sys/net/pf_if.c:211 [inline] pfi_detach_ifgroup(ffff800000b49f80) at pfi_detach_ifgroup+0x11b sys/net/pf_if.c:304 if_delgroup(ffff800000b50800,ffff800000b49f80) at if_delgroup+0x193 sys/net/if.c:2700 if_detach(ffff800000b50800) at if_detach+0x1cb sys/net/if.c:1049 tun_clone_destroy(ffff800000b50800) at tun_clone_destroy+0x1e1 sys/net/if_tun.c:325 if_clone_destroy(ffff8000224aac30) 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(ffff8000224aad00) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd806eda0088,7,fffffd807f7b7840,ffff8000234bea90) at VOP_CLOSE+0xeb sys/kern/vfs_vops.c:177 vn_closefile(fffffd8069157310,ffff8000234bea90) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd8069157310,ffff8000234bea90) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd8069157310,ffff8000234bea90) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd8069157310,ffff8000234bea90) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff8000234bea90) at fdfree+0xf4 sys/kern/kern_descrip.c:1195 exit1(ffff8000234bea90,0,0,1) at exit1+0x335 sys/kern/kern_exit.c:200 sys_exit(ffff8000234bea90,ffff8000224aaf90,ffff8000224aafe0) at sys_exit+0x16 sys/kern/kern_exit.c:96 syscall(ffff8000224ab060) at syscall+0x4a1 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000224ab060) at syscall+0x4a1 sys/arch/amd64/amd64/trap.c:590 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffffafe0, count: -17 ddb{0}> show registers rdi 0xffffffff829032c0 pfi_ifs rsi 0xffff800000b9f500 rbp 0xffff8000224aaa90 rbx 0xdeaf4152deaf4152 rdx 0 rcx 0 rax 0xffff800000b9f510 r8 0xf8 r9 0x8080808080808080 r10 0xc89a387e19da74b0 r11 0x9de4e111b75b9643 r12 0xdeaf4152deaf4152 r13 0xffff800000afb260 r14 0xffff800000b9f500 r15 0xffffffff829032c0 pfi_ifs rip 0xffffffff81c83050 pfi_ifhead_RB_REMOVE+0x50 cs 0x8 rflags 0x10282 __ALIGN_SIZE+0xf282 rsp 0xffff8000224aaa30 ss 0 pfi_ifhead_RB_REMOVE+0x50: movq 0x10(%r12),%rbx ddb{0}> show proc PROC (syz-executor.0) pid=203569 stat=onproc flags process=1008 proc=2000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000234be2b0,0xffff8000234be560 process=0xffff8000244cccc0 user=0xffff8000224a6000, vmspace=0xfffffd806718db98 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 46517 391818 60732 0 2 0 syz-executor.1 60732 151221 52818 0 3 0x82 nanoslp syz-executor.1 46391 458165 0 0 3 0x14280 nfsidl nfsio 90698 403260 0 0 3 0x14280 nfsidl nfsio 75665 178434 0 0 3 0x14280 nfsidl nfsio 53065 335491 0 0 3 0x14280 nfsidl nfsio 84430 384920 0 0 3 0x14280 nfsidl nfsio 34047 1652 0 0 3 0x14280 nfsidl nfsio 10021 356080 0 0 3 0x14280 nfsidl nfsio 87732 37048 0 0 3 0x14280 nfsidl nfsio 63594 258353 0 0 3 0x14280 nfsidl nfsio 6509 45446 0 0 3 0x14280 nfsidl nfsio 35494 400935 0 0 3 0x14280 nfsidl nfsio 75627 217997 0 0 3 0x14280 nfsidl nfsio 58248 312615 0 0 3 0x14280 nfsidl nfsio 40355 424008 0 0 3 0x14280 nfsidl nfsio 97792 102090 0 0 3 0x14280 nfsidl nfsio 1901 365859 0 0 3 0x14280 nfsidl nfsio 14675 347789 0 0 3 0x14280 nfsidl nfsio 75911 507719 0 0 3 0x14280 nfsidl nfsio 30305 367980 0 0 3 0x14280 nfsidl nfsio 56710 140461 0 0 3 0x14280 nfsidl nfsio 76980 67221 0 0 3 0x14200 bored sosplice 3109 45665 1 0 3 0x100083 ttyin getty 52818 8436 17086 0 3 0x82 thrsleep syz-fuzzer 52818 92864 17086 0 3 0x4000082 nanoslp syz-fuzzer 52818 458422 17086 0 3 0x4000082 thrsleep syz-fuzzer 52818 217231 17086 0 3 0x4000082 thrsleep syz-fuzzer 52818 114598 17086 0 3 0x4000082 kqread syz-fuzzer 52818 104782 17086 0 3 0x4000082 thrsleep syz-fuzzer 52818 263444 17086 0 3 0x4000082 nanoslp syz-fuzzer 52818 294166 17086 0 3 0x4000082 thrsleep syz-fuzzer 17086 273953 38073 0 3 0x10008a sigsusp ksh 38073 190776 35807 0 3 0x92 select sshd 35807 195148 1 0 3 0x80 select sshd 24404 343118 67299 74 3 0x100092 bpf pflogd 67299 468402 1 0 3 0x80 netio pflogd 34514 367409 66010 73 3 0x100090 kqread syslogd 66010 472569 1 0 3 0x100082 netio syslogd 95268 496856 1 77 2 0x100090 dhclient 51771 231206 1 0 3 0x80 poll dhclient 69731 203345 0 0 3 0x14200 bored smr 30237 275021 0 0 2 0x14200 zerothread 5180 418875 0 0 3 0x14200 aiodoned aiodoned 84785 157166 0 0 3 0x14200 syncer update 57268 507841 0 0 3 0x14200 cleaner cleaner 9014 342619 0 0 3 0x14200 reaper reaper 65516 20751 0 0 3 0x14200 pgdaemon pagedaemon 82249 200895 0 0 3 0x14200 bored crynlk 71425 379166 0 0 3 0x14200 bored crypto 49787 503456 0 0 3 0x14200 bored viomb 97086 351707 0 0 3 0x40014200 acpi0 acpi0 55668 276341 0 0 7 0x40014200 idle1 31765 430956 0 0 3 0x14200 bored softnet 37777 357915 0 0 2 0x14200 systqmp 48875 363456 0 0 3 0x14200 bored systq 79212 164340 0 0 3 0x40014200 bored softclock 89661 393885 0 0 3 0x40014200 idle0 1 19381 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 9540 6450K 7593K 78643K 18815 0 pcb 13 8K 8K 78643K 445 0 rtable 90 11K 12K 78643K 1130 0 ifaddr 69 13K 15K 78643K 301 0 counters 44 34K 34K 78643K 120 0 ioctlops 0 0K 8K 78643K 1636 0 iov 0 0K 24K 78643K 198 0 mount 1 1K 1K 78643K 1 0 vnodes 1224 77K 77K 78643K 3951 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 9 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 384 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12598 0 file desc 5 13K 25K 78643K 7731 0 sigio 0 0K 0K 78643K 33 0 proc 63 63K 83K 78643K 899 0 subproc 23 1K 2K 78643K 136 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 470 0 in_multi 22 1K 2K 78643K 426 0 ether_multi 1 0K 0K 78643K 102 0 mrt 1 0K 0K 78643K 128 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 688 0 pfkey data 0 0K 0K 78643K 10 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 221 304K 319K 78643K 18305 0 UVM aobj 23 2K 2K 78643K 31 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 253 0 NDP 13 0K 0K 78643K 97 0 temp 135 3986K 4066K 78643K 58574 0 kqueue 3 4K 22K 78643K 454 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 18 0 14 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 120 274 0 272 1 0 1 1 0 8 0 rtentry 112 245 0 212 2 0 2 2 0 8 0 unpcb 120 1308 0 1298 1 0 1 1 0 8 0 syncache 296 72 0 72 8 8 0 1 0 8 0 tcpqe 32 31 0 31 5 5 0 1 0 8 0 tcpcb 736 1082 0 1076 21 20 1 5 0 8 0 inpcb 304 2564 0 2538 11 8 3 3 0 8 0 rttmr 72 40 0 40 6 6 0 1 0 8 0 nd6 48 56 0 53 1 0 1 1 0 8 0 pkpcb 40 34 0 34 5 4 1 1 0 8 1 kcovpl 48 8 0 7 1 0 1 1 0 8 0 ppxss 1128 16 0 16 4 4 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 11 0 11 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 15 0 15 1 1 0 1 0 8 0 pfstitem 24 110 0 98 1 0 1 1 0 8 0 pfstkey 112 110 0 98 2 0 2 2 0 8 0 pfstate 320 110 0 98 4 1 3 3 0 8 0 pfrule 1360 54 0 44 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 941 0 763 16 2 14 14 0 8 0 art_table 32 942 0 763 2 0 2 2 0 8 0 art_node 16 233 0 195 1 0 1 1 0 8 0 sysvmsgpl 40 38 0 3 1 0 1 1 0 8 0 semapl 112 382 0 372 1 0 1 1 0 8 0 shmpl 112 28 0 8 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 10575 0 9171 91 2 89 89 0 8 0 ffsino 272 10575 0 9171 95 0 95 95 0 8 0 nchpl 144 19115 0 17530 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 46017 0 46017 1 0 1 1 0 8 1 percpumem 16 71 0 38 1 0 1 1 0 8 0 vcpupl 1984 18 0 0 3 0 3 3 0 8 0 vmpool 560 23 0 5 2 0 2 2 0 8 0 pfiaddrpl 120 5 0 5 1 1 0 1 0 8 0 scsiplug 72 14 0 14 2 2 0 1 0 8 0 scxspl 216 59186 0 59186 9 8 1 8 0 8 1 plimitpl 152 92 0 84 1 0 1 1 0 8 0 sigapl 424 7957 0 7904 7 0 7 7 0 8 1 futexpl 56 51040 0 51040 1 0 1 1 0 8 1 knotepl 112 923 0 909 2 1 1 2 0 8 0 kqueuepl 168 4454 0 4435 7 5 2 2 0 8 1 pipepl 336 338 0 330 7 5 2 2 0 8 0 fdescpl 496 7915 0 7899 3 0 3 3 0 8 0 filepl 152 24101 0 24014 6 1 5 6 0 8 1 lockfpl 104 784 0 783 1 0 1 1 0 8 0 lockfspl 48 296 0 295 1 0 1 1 0 8 0 sessionpl 144 25 0 14 1 0 1 1 0 8 0 pgrppl 48 27 0 16 1 0 1 1 0 8 0 ucredpl 96 2180 0 2171 1 0 1 1 0 8 0 zombiepl 144 7905 0 7904 1 0 1 1 0 8 0 processpl 1080 7957 0 7904 4 0 4 4 0 8 0 procpl 672 17019 0 16959 6 0 6 6 0 8 0 sosppl 168 35 0 35 8 8 0 1 0 8 0 sockpl 432 4193 0 4155 14 9 5 7 0 8 0 mcl64k 65536 25 0 0 3 0 3 3 0 8 0 mcl16k 16384 4 0 0 1 0 1 1 0 8 0 mcl12k 12288 9 0 0 1 0 1 1 0 8 0 mcl9k 9216 7 0 0 1 0 1 1 0 8 0 mcl8k 8192 10 0 0 2 0 2 2 0 8 0 mcl4k 4096 10 0 0 2 0 2 2 0 8 0 mcl2k2 2112 7 0 0 1 0 1 1 0 8 0 mcl2k 2048 295 0 0 16 0 16 16 0 8 0 mtagpl 96 335 0 0 7 0 7 7 0 8 0 mbufpl 256 828 0 0 43 0 43 43 0 8 0 bufpl 280 14387 0 8138 447 0 447 447 0 8 0 anonpl 24 598705 0 592681 137 69 68 74 0 186 22 amapchunkpl 152 32034 0 31850 43 34 9 22 0 158 0 amappl16 200 27603 0 27307 68 39 29 33 0 8 13 amappl15 192 2279 0 2276 1 0 1 1 0 8 0 amappl14 184 3156 0 3153 1 0 1 1 0 8 0 amappl13 176 83 0 81 1 0 1 1 0 8 0 amappl12 168 15 0 13 1 0 1 1 0 8 0 amappl11 160 87 0 70 1 0 1 1 0 8 0 amappl10 152 1206 0 1199 1 0 1 1 0 8 0 amappl9 144 281 0 281 1 1 0 1 0 8 0 amappl8 136 359 0 258 4 0 4 4 0 8 0 amappl7 128 320 0 310 1 0 1 1 0 8 0 amappl6 120 1272 0 1260 1 0 1 1 0 8 0 amappl5 112 8082 0 8062 1 0 1 1 0 8 0 amappl4 104 362 0 325 3 2 1 2 0 8 0 amappl3 96 279 0 269 1 0 1 1 0 8 0 amappl2 88 65226 0 65144 4 2 2 3 0 8 0 amappl1 80 225892 0 225415 26 14 12 21 0 8 0 amappl 88 17429 0 17348 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 30 0 8 1 0 1 1 0 8 0 uaddrrnd 24 7938 0 7904 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 7938 0 7904 1 0 1 1 0 8 0 vmmpekpl 168 35115 0 35081 2 0 2 2 0 8 0 vmmpepl 168 978391 0 976756 138 50 88 88 0 357 14 vmsppl 368 7937 0 7904 4 0 4 4 0 8 0 rwobjpl 56 204918 0 203830 39 19 20 20 0 8 4 pdppl 4096 15883 0 15826 78 19 59 59 0 8 2 pvpl 32 2809440 0 2799990 288 168 120 133 0 265 31 pmappl 232 7937 0 7904 4 1 3 3 0 8 1 extentpl 40 58 0 40 1 0 1 1 0 8 0 phpool 112 389 0 51 10 0 10 10 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace pfi_ifhead_RB_REMOVE(ffffffff829032c0,ffff800000b9f500) at pfi_ifhead_RB_REMOVE+0x50 sys/net/pf_if.c:80 pfi_detach_ifgroup(ffff800000b49f80) at pfi_detach_ifgroup+0x11b pfi_kif_unref sys/net/pf_if.c:211 [inline] pfi_detach_ifgroup(ffff800000b49f80) at pfi_detach_ifgroup+0x11b sys/net/pf_if.c:304 if_delgroup(ffff800000b50800,ffff800000b49f80) at if_delgroup+0x193 sys/net/if.c:2700 if_detach(ffff800000b50800) at if_detach+0x1cb sys/net/if.c:1049 tun_clone_destroy(ffff800000b50800) at tun_clone_destroy+0x1e1 sys/net/if_tun.c:325 if_clone_destroy(ffff8000224aac30) 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(ffff8000224aad00) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd806eda0088,7,fffffd807f7b7840,ffff8000234bea90) at VOP_CLOSE+0xeb sys/kern/vfs_vops.c:177 vn_closefile(fffffd8069157310,ffff8000234bea90) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd8069157310,ffff8000234bea90) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd8069157310,ffff8000234bea90) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd8069157310,ffff8000234bea90) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff8000234bea90) at fdfree+0xf4 sys/kern/kern_descrip.c:1195 exit1(ffff8000234bea90,0,0,1) at exit1+0x335 sys/kern/kern_exit.c:200 sys_exit(ffff8000234bea90,ffff8000224aaf90,ffff8000224aafe0) at sys_exit+0x16 sys/kern/kern_exit.c:96 syscall(ffff8000224ab060) at syscall+0x4a1 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000224ab060) at syscall+0x4a1 sys/arch/amd64/amd64/trap.c:590 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffffafe0, 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 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