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(ffffffff828d1b48,ffff800000c14600) at pfi_ifhead_RB_REMOVE+0x50 sys/net/pf_if.c:80 pfi_detach_ifgroup(ffff800000bec300) at pfi_detach_ifgroup+0x11b pfi_kif_unref sys/net/pf_if.c:211 [inline] pfi_detach_ifgroup(ffff800000bec300) at pfi_detach_ifgroup+0x11b sys/net/pf_if.c:304 if_delgroup(ffff800000b1a000,ffff800000bec300) at if_delgroup+0x193 sys/net/if.c:2711 if_detach(ffff800000b1a000) at if_detach+0x1cb sys/net/if.c:1049 tun_clone_destroy(ffff800000b1a000) at tun_clone_destroy+0x1e1 sys/net/if_tun.c:325 if_clone_destroy(ffff8000226c9640) 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:479 spec_close(ffff8000226c9710) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd806e40d788,7,fffffd807f7b79c0,ffff800021273500) at VOP_CLOSE+0xeb sys/kern/vfs_vops.c:177 vn_closefile(fffffd806cb7d7c8,ffff800021273500) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd806cb7d7c8,ffff800021273500) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd806cb7d7c8,ffff800021273500) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd806cb7d7c8,ffff800021273500) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff800021273500) at fdfree+0xf4 sys/kern/kern_descrip.c:1195 exit1(ffff800021273500,0,19,1) at exit1+0x335 sys/kern/kern_exit.c:200 postsig(ffff800021273500,19) at postsig+0x59c sigexit sys/kern/kern_sig.c:1494 [inline] postsig(ffff800021273500,19) at postsig+0x59c sys/kern/kern_sig.c:1423 userret(ffff800021273500) at userret+0x189 sys/kern/kern_sig.c:1914 syscall(ffff8000226c9b90) at syscall+0x55c mi_syscall_return sys/sys/syscall_mi.h:129 [inline] syscall(ffff8000226c9b90) at syscall+0x55c sys/arch/amd64/amd64/trap.c:612 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdbb00, count: -18 ddb{1}> show registers rdi 0xffffffff828d1b48 pfi_ifs rsi 0xffff800000c14600 rbp 0xffff8000226c94a0 rbx 0xdeadbeefdeadbeef rdx 0 rcx 0xffff800000bec100 rax 0xffff800000c14610 r8 0xf8 r9 0x8080808080808080 r10 0xe1d0b86851a2de0c r11 0xeb63dc69891db8bf r12 0xdeadbeefdeadbeef r13 0xffff800000ac8aa0 r14 0xffff800000c14600 r15 0xffffffff828d1b48 pfi_ifs rip 0xffffffff81722dc0 pfi_ifhead_RB_REMOVE+0x50 cs 0x8 rflags 0x10282 __ALIGN_SIZE+0xf282 rsp 0xffff8000226c9440 ss 0x10 pfi_ifhead_RB_REMOVE+0x50: movq 0x10(%r12),%rbx ddb{1}> show proc PROC (syz-executor.1) pid=46783 stat=onproc flags process=a proc=2000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000211c3268,0xffff800021272a90 process=0xffff800021235960 user=0xffff8000226c4000, vmspace=0xfffffd807effa730 estcpu=36, cpticks=2, pctcpu=0.57 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 65305 267076 0 0 3 0x14200 bored sosplice 25266 31623 63621 0 7 0x2 syz-executor.0 63621 208001 66500 0 3 0x82 kqread syz-fuzzer 63621 31520 66500 0 3 0x4000082 nanoslp syz-fuzzer 63621 491901 66500 0 3 0x4000082 thrsleep syz-fuzzer 63621 302435 66500 0 3 0x4000082 thrsleep syz-fuzzer 63621 434725 66500 0 3 0x4000082 thrsleep syz-fuzzer 63621 486892 66500 0 3 0x4000082 thrsleep syz-fuzzer 63621 512792 66500 0 3 0x4000082 thrsleep syz-fuzzer 63621 6646 66500 0 3 0x4000082 thrsleep syz-fuzzer 66500 227395 77012 0 3 0x10008a sigsusp ksh 77012 475656 14217 0 3 0x92 select sshd 78928 40534 1 0 3 0x100083 ttyin getty 14217 159819 1 0 3 0x80 select sshd 88932 290698 60419 74 3 0x100092 bpf pflogd 60419 416274 1 0 3 0x80 netio pflogd 92861 446672 3247 73 3 0x100090 kqread syslogd 3247 445776 1 0 3 0x100082 netio syslogd 87150 414402 1 77 3 0x100090 poll dhclient 94730 397154 1 0 3 0x80 poll dhclient 955 141056 0 0 3 0x14200 bored smr 23708 10029 0 0 3 0x14200 pgzero zerothread 68591 28304 0 0 3 0x14200 aiodoned aiodoned 14898 436103 0 0 3 0x14200 syncer update 18786 463450 0 0 3 0x14200 cleaner cleaner 35257 364495 0 0 3 0x14200 reaper reaper 82953 280291 0 0 3 0x14200 pgdaemon pagedaemon 23612 142920 0 0 3 0x14200 bored crynlk 97480 457064 0 0 3 0x14200 bored crypto 31048 152782 0 0 3 0x14200 bored viomb 23008 64903 0 0 3 0x40014200 acpi0 acpi0 80523 260342 0 0 3 0x40014200 idle1 24437 85431 0 0 3 0x14200 bored softnet 61395 128273 0 0 2 0x14200 systqmp 8591 194052 0 0 3 0x14200 bored systq 23540 100580 0 0 3 0x40014200 bored softclock 11159 353762 0 0 3 0x40014200 idle0 1 217619 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 9519 6438K 7772K 78643K 13881 0 pcb 13 8K 8K 78643K 94 0 rtable 85 3K 4K 78643K 533 0 ifaddr 58 12K 14K 78643K 177 0 sysctl 2 0K 0K 78643K 2 0 counters 44 34K 34K 78643K 88 0 ioctlops 0 0K 4K 78643K 1547 0 iov 0 0K 12K 78643K 50 0 mount 1 1K 1K 78643K 1 0 vnodes 1220 77K 77K 78643K 2258 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 34 0 VM map 2 1K 1K 78643K 2 0 sem 12 1K 1K 78643K 36 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12598 0 file desc 4 9K 25K 78643K 3083 0 sigio 0 0K 0K 78643K 6 0 proc 62 63K 95K 78643K 590 0 subproc 23 1K 2K 78643K 56 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 124 0 in_multi 22 1K 2K 78643K 157 0 ether_multi 1 0K 0K 78643K 20 0 mrt 0 0K 0K 78643K 21 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 55 254K 254K 78643K 55 0 exec 0 0K 2K 78643K 410 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 130 25K 30K 78643K 7744 0 UVM aobj 78 3K 3K 78643K 78 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 36 0 NDP 10 0K 0K 78643K 42 0 temp 118 3982K 4047K 78643K 15783 0 kqueue 3 4K 12K 78643K 85 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 15 0 11 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 120 56 0 54 1 0 1 1 0 8 0 rtentry 112 119 0 87 2 0 2 2 0 8 0 unpcb 120 610 0 598 1 0 1 1 0 8 0 syncache 296 4 0 4 1 1 0 1 0 8 0 tcpqe 32 254 0 254 2 2 0 1 0 8 0 tcpcb 736 200 0 196 6 5 1 2 0 8 0 inpcb 304 730 0 723 3 2 1 2 0 8 0 nd6 48 25 0 22 1 0 1 1 0 8 0 pkpcb 40 20 0 20 1 1 0 1 0 8 0 kcovpl 48 3 0 2 1 0 1 1 0 8 0 ppxss 1128 18 0 18 3 3 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 3 0 1 1 0 1 1 0 8 0 pfqueue 264 4 0 4 1 1 0 1 0 8 0 pfstitem 24 12 0 10 1 0 1 1 0 8 0 pfstkey 112 12 0 10 1 0 1 1 0 8 0 pfstate 328 12 0 10 1 0 1 1 0 8 0 pfrule 1360 31 0 21 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 267 0 61 13 0 13 13 0 8 0 art_table 32 268 0 61 2 0 2 2 0 8 0 art_node 16 115 0 78 1 0 1 1 0 8 0 sysvmsgpl 40 7 0 0 1 0 1 1 0 8 0 semupl 112 14 0 14 2 2 0 1 0 8 0 semapl 112 34 0 24 1 0 1 1 0 8 0 shmpl 112 75 0 0 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 5076 0 3668 89 0 89 89 0 8 0 ffsino 272 5076 0 3668 95 0 95 95 0 8 0 nchpl 144 8620 0 7025 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 21316 0 21316 1 0 1 1 0 8 1 percpumem 16 55 0 22 1 0 1 1 0 8 0 vmpool 560 4 0 4 1 1 0 1 0 8 0 pfiaddrpl 120 5 0 0 1 0 1 1 0 8 0 scsiplug 72 4 0 4 1 1 0 1 0 8 0 scxspl 216 26547 0 26547 7 6 1 6 0 8 1 plimitpl 152 183 0 175 1 0 1 1 0 8 0 sigapl 424 3297 0 3265 4 0 4 4 0 8 0 futexpl 56 18588 0 18588 1 0 1 1 0 8 1 knotepl 112 158 0 140 1 0 1 1 0 8 0 kqueuepl 168 1369 0 1367 1 0 1 1 0 8 0 pipepl 336 183 0 173 5 3 2 2 0 8 1 fdescpl 496 3280 0 3265 3 0 3 3 0 8 0 filepl 152 9808 0 9717 5 0 5 5 0 8 1 lockfpl 104 411 0 410 1 0 1 1 0 8 0 lockfspl 48 126 0 125 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 1166 0 1157 1 0 1 1 0 8 0 zombiepl 144 3266 0 3265 1 0 1 1 0 8 0 processpl 1080 3297 0 3265 3 0 3 3 0 8 0 procpl 672 6985 0 6946 5 0 5 5 0 8 1 sosppl 168 43 0 43 2 2 0 1 0 8 0 sockpl 432 1428 0 1407 7 4 3 4 0 8 0 mcl64k 65536 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 6 0 0 1 0 1 1 0 8 0 mcl4k 4096 6 0 0 1 0 1 1 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 210 0 0 24 0 24 24 0 8 1 mtagpl 96 288 0 0 7 0 7 7 0 8 0 mbufpl 256 871 0 0 51 0 51 51 0 8 0 bufpl 280 8332 0 2083 447 0 447 447 0 8 0 anonpl 24 226030 0 218963 51 4 47 47 0 186 3 amapchunkpl 152 11863 0 11674 11 2 9 10 0 158 1 amappl16 200 11008 0 10754 15 1 14 14 0 8 0 amappl15 192 1 0 0 1 0 1 1 0 8 0 amappl14 184 24 0 20 1 0 1 1 0 8 0 amappl13 176 301 0 299 1 0 1 1 0 8 0 amappl12 168 7 0 4 1 0 1 1 0 8 0 amappl11 160 1322 0 1304 1 0 1 1 0 8 0 amappl10 152 17 0 12 1 0 1 1 0 8 0 amappl9 144 16 0 16 1 1 0 1 0 8 0 amappl8 136 224 0 159 3 0 3 3 0 8 0 amappl7 128 259 0 250 1 0 1 1 0 8 0 amappl6 120 75 0 59 1 0 1 1 0 8 0 amappl5 112 3719 0 3702 1 0 1 1 0 8 0 amappl4 104 1537 0 1512 1 0 1 1 0 8 0 amappl3 96 642 0 632 1 0 1 1 0 8 0 amappl2 88 25399 0 25340 3 1 2 3 0 8 0 amappl1 80 99565 0 99121 28 16 12 21 0 8 1 amappl 88 7279 0 7225 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 77 0 0 2 0 2 2 0 8 0 uaddrrnd 24 3284 0 3269 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3284 0 3269 1 0 1 1 0 8 0 vmmpekpl 168 17553 0 17525 2 0 2 2 0 8 0 vmmpepl 168 408821 0 407451 92 18 74 76 0 357 5 vmsppl 368 3283 0 3269 2 0 2 2 0 8 0 rwobjpl 56 86175 0 85228 25 10 15 19 0 8 0 pdppl 4096 6575 0 6538 59 18 41 45 0 8 4 pvpl 32 1179043 0 1168948 138 46 92 117 0 265 6 pmappl 232 3283 0 3269 3 2 1 2 0 8 0 extentpl 40 58 0 40 1 0 1 1 0 8 0 phpool 112 357 0 29 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(ffffffff82713ff0) 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(ffffffff828c2e48) at __mp_lock+0x129 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828c2e48) at __mp_lock+0x129 sys/kern/kern_lock.c:147 intr_handler(ffff800021cc19b0,ffff800000255d80) at intr_handler+0x5e sys/arch/amd64/amd64/intr.c:532 Xintr_ioapic_edge20_untramp() at Xintr_ioapic_edge20_untramp+0x18f __mp_lock(ffffffff828c2e48) at __mp_lock+0x133 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828c2e48) at __mp_lock+0x133 sys/kern/kern_lock.c:147 upageflttrap(ffff800021cc1b50,7f7ffffd9ff0) at upageflttrap+0x77 sys/arch/amd64/amd64/trap.c:180 usertrap(ffff800021cc1b50) at usertrap+0x21a sys/arch/amd64/amd64/trap.c:406 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0x7f7ffffda0c0, count: -10 ddb{0}> machine ddbcpu 1 Stopped at pfi_ifhead_RB_REMOVE+0x50: movq 0x10(%r12),%rbx ddb{1}> trace pfi_ifhead_RB_REMOVE(ffffffff828d1b48,ffff800000c14600) at pfi_ifhead_RB_REMOVE+0x50 sys/net/pf_if.c:80 pfi_detach_ifgroup(ffff800000bec300) at pfi_detach_ifgroup+0x11b pfi_kif_unref sys/net/pf_if.c:211 [inline] pfi_detach_ifgroup(ffff800000bec300) at pfi_detach_ifgroup+0x11b sys/net/pf_if.c:304 if_delgroup(ffff800000b1a000,ffff800000bec300) at if_delgroup+0x193 sys/net/if.c:2711 if_detach(ffff800000b1a000) at if_detach+0x1cb sys/net/if.c:1049 tun_clone_destroy(ffff800000b1a000) at tun_clone_destroy+0x1e1 sys/net/if_tun.c:325 if_clone_destroy(ffff8000226c9640) 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:479 spec_close(ffff8000226c9710) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd806e40d788,7,fffffd807f7b79c0,ffff800021273500) at VOP_CLOSE+0xeb sys/kern/vfs_vops.c:177 vn_closefile(fffffd806cb7d7c8,ffff800021273500) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd806cb7d7c8,ffff800021273500) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd806cb7d7c8,ffff800021273500) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd806cb7d7c8,ffff800021273500) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff800021273500) at fdfree+0xf4 sys/kern/kern_descrip.c:1195 exit1(ffff800021273500,0,19,1) at exit1+0x335 sys/kern/kern_exit.c:200 postsig(ffff800021273500,19) at postsig+0x59c sigexit sys/kern/kern_sig.c:1494 [inline] postsig(ffff800021273500,19) at postsig+0x59c sys/kern/kern_sig.c:1423 userret(ffff800021273500) at userret+0x189 sys/kern/kern_sig.c:1914 syscall(ffff8000226c9b90) at syscall+0x55c mi_syscall_return sys/sys/syscall_mi.h:129 [inline] syscall(ffff8000226c9b90) at syscall+0x55c sys/arch/amd64/amd64/trap.c:612 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdbb00, count: -18