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(ffffffff82913590,ffff800000adca00) at pfi_ifhead_RB_REMOVE+0x50 sys/net/pf_if.c:80 pfi_detach_ifgroup(ffff800000b90880) at pfi_detach_ifgroup+0x11b pfi_kif_unref sys/net/pf_if.c:211 [inline] pfi_detach_ifgroup(ffff800000b90880) at pfi_detach_ifgroup+0x11b sys/net/pf_if.c:304 if_delgroup(ffff800000b16000,ffff800000b90880) at if_delgroup+0x193 sys/net/if.c:2676 if_detach(ffff800000b16000) at if_detach+0x1ab sys/net/if.c:1039 tun_clone_destroy(ffff800000b16000) at tun_clone_destroy+0x1e1 sys/net/if_tun.c:325 if_clone_destroy(ffff800021ea4a90) at if_clone_destroy+0x146 sys/net/if.c:1198 tun_dev_close(5d01,7) at tun_dev_close+0x140 sys/net/if_tun.c:476 spec_close(ffff800021ea4b60) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd807d39c6a8,7,fffffd807f7b7540,ffff8000212822a0) at VOP_CLOSE+0xeb sys/kern/vfs_vops.c:177 vn_closefile(fffffd806cb9e438,ffff8000212822a0) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd806cb9e438,ffff8000212822a0) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd806cb9e438,ffff8000212822a0) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd806cb9e438,ffff8000212822a0) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff8000212822a0) at fdfree+0xf4 sys/kern/kern_descrip.c:1195 exit1(ffff8000212822a0,0,19,1) at exit1+0x335 sys/kern/kern_exit.c:200 postsig(ffff8000212822a0,19) at postsig+0x59c sigexit sys/kern/kern_sig.c:1494 [inline] postsig(ffff8000212822a0,19) at postsig+0x59c sys/kern/kern_sig.c:1423 userret(ffff8000212822a0) at userret+0x189 sys/kern/kern_sig.c:1914 syscall(ffff800021ea4fe0) at syscall+0x55c mi_syscall_return sys/sys/syscall_mi.h:129 [inline] syscall(ffff800021ea4fe0) at syscall+0x55c sys/arch/amd64/amd64/trap.c:612 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcdc90, count: -18 ddb{0}> show registers rdi 0xffffffff82913590 pfi_ifs rsi 0xffff800000adca00 rbp 0xffff800021ea48f0 rbx 0xdeadbeefdeadbeef rdx 0 rcx 0xffff800000b90900 rax 0xffff800000adca10 r8 0xf8 r9 0x8080808080808080 r10 0x1a3671c427ab5f r11 0x632c2cc64bc9bdbd r12 0xdeadbeefdeadbeef r13 0xffff800000afa980 r14 0xffff800000adca00 r15 0xffffffff82913590 pfi_ifs rip 0xffffffff81a7b3f0 pfi_ifhead_RB_REMOVE+0x50 cs 0x8 rflags 0x10282 __ALIGN_SIZE+0xf282 rsp 0xffff800021ea4890 ss 0x10 pfi_ifhead_RB_REMOVE+0x50: movq 0x10(%r12),%rbx ddb{0}> show proc PROC (syz-executor.1) pid=199051 stat=onproc flags process=a proc=2000 pri=32, usrpri=78, nice=20 forw=0xffffffffffffffff, list=0xffff800021283500,0xffff800021283a50 process=0xffff800021234010 user=0xffff800021ea0000, vmspace=0xfffffd80700e2e70 estcpu=36, cpticks=0, pctcpu=0.33 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 71261 278759 18871 0 3 0x82 nanoslp syz-executor.0 74287 12842 0 0 3 0x14200 acct acct 5736 354207 0 0 3 0x14200 bored sosplice 18871 68813 46879 0 3 0x82 thrsleep syz-fuzzer 18871 166803 46879 0 3 0x4000082 thrsleep syz-fuzzer 18871 503487 46879 0 3 0x4000082 thrsleep syz-fuzzer 18871 202935 46879 0 3 0x4000082 thrsleep syz-fuzzer 18871 104736 46879 0 3 0x4000082 thrsleep syz-fuzzer 18871 477821 46879 0 3 0x4000082 kqread syz-fuzzer 18871 227544 46879 0 3 0x4000082 thrsleep syz-fuzzer 18871 257878 46879 0 3 0x4000082 thrsleep syz-fuzzer 46879 248212 97887 0 3 0x10008a sigsusp ksh 97887 100303 76000 0 3 0x92 select sshd 95292 428631 1 0 3 0x100083 ttyin getty 76000 412045 1 0 3 0x80 select sshd 79465 246793 52856 74 3 0x100092 bpf pflogd 52856 356973 1 0 3 0x80 netio pflogd 32020 450879 29794 73 3 0x100090 kqread syslogd 29794 398965 1 0 3 0x100082 netio syslogd 99893 309869 1 77 2 0x100090 dhclient 17282 457984 1 0 3 0x80 poll dhclient 62674 260106 0 0 3 0x14200 bored smr 82317 4732 0 0 3 0x14200 pgzero zerothread 8544 205429 0 0 3 0x14200 aiodoned aiodoned 63138 302006 0 0 3 0x14200 syncer update 95189 412543 0 0 3 0x14200 cleaner cleaner 87927 111692 0 0 3 0x14200 reaper reaper 8117 271269 0 0 3 0x14200 pgdaemon pagedaemon 71034 297803 0 0 3 0x14200 bored crynlk 47809 432694 0 0 3 0x14200 bored crypto 9104 115717 0 0 3 0x14200 bored viomb 40151 205496 0 0 3 0x40014200 acpi0 acpi0 52533 64488 0 0 7 0x40014200 idle1 77223 159429 0 0 3 0x14200 bored softnet 78056 313747 0 0 2 0x14200 systqmp 48664 149986 0 0 3 0x14200 bored systq 13890 97683 0 0 3 0x40014200 bored softclock 95597 37984 0 0 3 0x40014200 idle0 1 104219 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 9547 6457K 7744K 78643K 17489 0 pcb 13 8K 8K 78643K 300 0 rtable 91 4K 4K 78643K 779 0 ifaddr 74 14K 15K 78643K 264 0 sysctl 2 0K 0K 78643K 2 0 counters 44 34K 34K 78643K 118 0 ioctlops 0 0K 4K 78643K 1667 0 iov 0 0K 24K 78643K 181 0 mount 1 1K 1K 78643K 1 0 vnodes 1229 77K 78K 78643K 3903 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 38 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 491 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12598 0 file desc 4 9K 25K 78643K 7582 0 sigio 0 0K 0K 78643K 34 0 proc 63 63K 95K 78643K 922 0 subproc 23 1K 2K 78643K 119 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 428 0 in_multi 22 1K 2K 78643K 394 0 ether_multi 1 0K 0K 78643K 104 0 mrt 0 0K 0K 78643K 39 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 661 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 248 323K 323K 78643K 18478 0 UVM aobj 51 7K 7K 78643K 59 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 225 0 NDP 14 0K 0K 78643K 73 0 temp 144 3985K 4054K 78643K 38482 0 kqueue 3 4K 12K 78643K 260 0 SYN cache 2 12K 20K 78643K 3 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 16 0 12 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 120 180 0 178 1 0 1 1 0 8 0 rtentry 112 119 0 85 2 0 2 2 0 8 0 unpcb 120 1521 0 1511 2 1 1 2 0 8 0 syncache 296 27 0 27 6 6 0 1 0 8 0 tcpqe 32 210 0 210 4 4 0 1 0 8 0 tcpcb 736 928 0 924 13 12 1 4 0 8 0 inpcb 296 2243 0 2236 11 10 1 2 0 8 0 rttmr 72 15 0 14 3 2 1 1 0 8 0 nd6 48 29 0 26 1 0 1 1 0 8 0 pkpcb 40 16 0 16 1 1 0 1 0 8 0 kcovpl 48 7 0 6 1 0 1 1 0 8 0 swfcl 56 8 0 0 1 0 1 1 0 8 0 ppxss 1128 15 0 15 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 15 0 15 3 3 0 1 0 8 0 pfosfp 40 1433 0 1009 5 0 5 5 0 8 0 pfosfpen 112 1433 0 714 21 0 21 21 0 8 0 pfrktable 1344 2 0 0 1 0 1 1 0 8 0 pfstitem 24 49 0 47 1 0 1 1 0 8 0 pfstkey 112 49 0 47 1 0 1 1 0 8 0 pfstate 328 49 0 47 3 2 1 3 0 8 0 pfrule 1360 65 0 45 3 1 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 448 0 229 14 0 14 14 0 8 0 art_table 32 449 0 229 2 0 2 2 0 8 0 art_node 16 118 0 77 1 0 1 1 0 8 0 sysvmsgpl 40 41 0 1 1 0 1 1 0 8 0 semupl 112 8 0 8 1 1 0 1 0 8 0 semapl 112 489 0 479 1 0 1 1 0 8 0 shmpl 112 56 0 8 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 10433 0 9020 89 0 89 89 0 8 0 ffsino 272 10433 0 9020 96 1 95 95 0 8 0 nchpl 144 19021 0 17425 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 46567 0 46567 2 1 1 1 0 8 1 percpumem 16 70 0 37 1 0 1 1 0 8 0 vcpupl 1984 20 0 0 3 0 3 3 0 8 0 vmpool 560 20 0 0 2 0 2 2 0 8 0 pfiaddrpl 120 14 0 0 1 0 1 1 0 8 0 scsiplug 72 4 0 4 1 1 0 1 0 8 0 scxspl 216 58269 0 58269 12 11 1 8 0 8 1 plimitpl 152 295 0 287 1 0 1 1 0 8 0 sigapl 424 7785 0 7752 4 0 4 4 0 8 0 futexpl 56 48479 0 48479 2 1 1 1 0 8 1 knotepl 112 408 0 390 1 0 1 1 0 8 0 kqueuepl 168 3983 0 3973 1 0 1 1 0 8 0 pipepl 336 318 0 308 9 6 3 3 0 8 1 fdescpl 496 7767 0 7752 3 0 3 3 0 8 0 filepl 152 23569 0 23478 10 3 7 7 0 8 3 lockfpl 104 692 0 691 1 0 1 1 0 8 0 lockfspl 48 296 0 295 1 0 1 1 0 8 0 sessionpl 144 23 0 12 1 0 1 1 0 8 0 pgrppl 48 50 0 39 1 0 1 1 0 8 0 ucredpl 96 2761 0 2752 1 0 1 1 0 8 0 zombiepl 144 7753 0 7751 2 1 1 1 0 8 0 processpl 1080 7785 0 7751 3 0 3 3 0 8 0 procpl 672 17128 0 17087 9 5 4 5 0 8 0 sosppl 168 50 0 50 4 4 0 1 0 8 0 sockpl 432 3970 0 3947 17 12 5 8 0 8 2 mcl64k 65536 16 0 0 2 0 2 2 0 8 0 mcl16k 16384 7 0 0 1 0 1 1 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 13 0 0 1 0 1 1 0 8 0 mcl8k 8192 6 0 0 1 0 1 1 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k 2048 284 0 0 20 0 20 20 0 8 0 mtagpl 96 278 0 0 7 0 7 7 0 8 0 mbufpl 256 966 0 0 55 0 55 55 0 8 0 bufpl 280 16095 0 9846 447 0 447 447 0 8 0 anonpl 16 592476 0 581672 97 52 45 59 0 124 0 amapchunkpl 152 30246 0 30016 21 11 10 15 0 158 0 amappl16 192 26210 0 25759 68 44 24 37 0 8 1 amappl15 184 535 0 533 1 0 1 1 0 8 0 amappl14 176 30 0 22 1 0 1 1 0 8 0 amappl13 168 196 0 192 1 0 1 1 0 8 0 amappl12 160 2371 0 2370 1 0 1 1 0 8 0 amappl11 152 2379 0 2362 1 0 1 1 0 8 0 amappl10 144 1486 0 1481 1 0 1 1 0 8 0 amappl9 136 731 0 730 2 1 1 1 0 8 0 amappl8 128 338 0 234 5 1 4 4 0 8 0 amappl7 120 998 0 989 1 0 1 1 0 8 0 amappl6 112 1552 0 1533 1 0 1 1 0 8 0 amappl5 104 10634 0 10617 1 0 1 1 0 8 0 amappl4 96 2712 0 2682 1 0 1 1 0 8 0 amappl3 88 552 0 542 1 0 1 1 0 8 0 amappl2 80 61252 0 61171 3 0 3 3 0 8 0 amappl1 72 222050 0 221596 27 17 10 19 0 8 0 amappl 80 17545 0 17459 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 58 0 8 1 0 1 1 0 8 0 uaddrrnd 24 7787 0 7752 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 7787 0 7752 1 0 1 1 0 8 0 vmmpekpl 168 36907 0 36872 2 0 2 2 0 8 0 vmmpepl 168 978604 0 976914 147 61 86 92 0 357 2 vmsppl 368 7786 0 7752 4 0 4 4 0 8 0 pdppl 4096 15581 0 15524 79 18 61 62 0 8 4 pvpl 32 3043497 0 3031459 241 134 107 148 0 265 5 pmappl 232 7786 0 7752 4 1 3 3 0 8 0 extentpl 40 58 0 40 1 0 1 1 0 8 0 phpool 112 398 0 41 11 0 11 11 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace pfi_ifhead_RB_REMOVE(ffffffff82913590,ffff800000adca00) at pfi_ifhead_RB_REMOVE+0x50 sys/net/pf_if.c:80 pfi_detach_ifgroup(ffff800000b90880) at pfi_detach_ifgroup+0x11b pfi_kif_unref sys/net/pf_if.c:211 [inline] pfi_detach_ifgroup(ffff800000b90880) at pfi_detach_ifgroup+0x11b sys/net/pf_if.c:304 if_delgroup(ffff800000b16000,ffff800000b90880) at if_delgroup+0x193 sys/net/if.c:2676 if_detach(ffff800000b16000) at if_detach+0x1ab sys/net/if.c:1039 tun_clone_destroy(ffff800000b16000) at tun_clone_destroy+0x1e1 sys/net/if_tun.c:325 if_clone_destroy(ffff800021ea4a90) at if_clone_destroy+0x146 sys/net/if.c:1198 tun_dev_close(5d01,7) at tun_dev_close+0x140 sys/net/if_tun.c:476 spec_close(ffff800021ea4b60) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd807d39c6a8,7,fffffd807f7b7540,ffff8000212822a0) at VOP_CLOSE+0xeb sys/kern/vfs_vops.c:177 vn_closefile(fffffd806cb9e438,ffff8000212822a0) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd806cb9e438,ffff8000212822a0) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd806cb9e438,ffff8000212822a0) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd806cb9e438,ffff8000212822a0) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff8000212822a0) at fdfree+0xf4 sys/kern/kern_descrip.c:1195 exit1(ffff8000212822a0,0,19,1) at exit1+0x335 sys/kern/kern_exit.c:200 postsig(ffff8000212822a0,19) at postsig+0x59c sigexit sys/kern/kern_sig.c:1494 [inline] postsig(ffff8000212822a0,19) at postsig+0x59c sys/kern/kern_sig.c:1423 userret(ffff8000212822a0) at userret+0x189 sys/kern/kern_sig.c:1914 syscall(ffff800021ea4fe0) at syscall+0x55c mi_syscall_return sys/sys/syscall_mi.h:129 [inline] syscall(ffff800021ea4fe0) at syscall+0x55c sys/arch/amd64/amd64/trap.c:612 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcdc90, 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