kernel: protection fault trap, code=0 Stopped at done_flush+0x38: movl %eax,%dr6 ddb{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic the kernel did not panic ddb{0}> trace done_flush() at done_flush+0x38 vm_run(ffff800038e430c0) at vm_run+0x169 vmmioctl(a00,c0205602,ffff800038e430c0,1,ffff80002a1f7ab0) at vmmioctl+0x2a1 sys/dev/vmm/vmm.c:242 VOP_IOCTL(fffffd806ef566c8,c0205602,ffff800038e430c0,1,fffffd807f7d6478,ffff80002a1f7ab0) at VOP_IOCTL+0x97 sys/kern/vfs_vops.c:264 vn_ioctl(fffffd8068399bf0,c0205602,ffff800038e430c0,ffff80002a1f7ab0) at vn_ioctl+0xc0 sys/kern/vfs_vnops.c:525 sys_ioctl(ffff80002a1f7ab0,ffff800038e431d0,ffff800038e43220) at sys_ioctl+0x4a2 syscall(ffff800038e432a0) at syscall+0x50f mi_syscall sys/sys/syscall_mi.h:103 [inline] syscall(ffff800038e432a0) at syscall+0x50f sys/arch/amd64/amd64/trap.c:606 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd8f96c50670, count: -8 ddb{0}> show registers rdi 0x6c14 __ALIGN_SIZE+0x5c14 rsi 0xffff800038dd1650 rbp 0xffff800038e42e10 rbx 0x756e6547 rdx 0x49656e69 rcx 0x6c65746e rax 0x100000001 r8 0 r9 0x10000 __ALIGN_SIZE+0xf000 r10 0xfc3eff1ef39adc8 r11 0xc4c1e3233c3f0777 r12 0x246 r13 0xffffffff82b76ff0 cpu_info_full_primary+0x1ff0 r14 0xffff800038dd1000 r15 0xffffffff82b76ff0 cpu_info_full_primary+0x1ff0 rip 0xffffffff81fbb35b done_flush+0x38 cs 0x8 rflags 0x10046 __ALIGN_SIZE+0xf046 rsp 0xffff800038e42c76 ss 0x10 done_flush+0x38: movl %eax,%dr6 ddb{0}> show proc PROC (syz-executor.7) tid=377790 pid=7257 tcnt=2 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=83, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 forw=0xffffffffffffffff, list=0xffff80002a1f82a8,0xffffffff82c60310 process=0xffff8000ffff10d8 user=0xffff800038e3e000, vmspace=0xfffffd8067299a20 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 7257 416598 88499 0 7 0 syz-executor.7 * 7257 377790 88499 0 7 0x4000000 syz-executor.7 31067 442995 46077 0 3 0x80 nanoslp syz-executor.6 31067 17136 46077 0 3 0x4000080 netio syz-executor.6 23089 518793 1 0 3 0x100083 ttyin getty 5639 5674 32552 0 3 0x2 biowait syz-executor.3 54820 48264 0 0 3 0x14200 bored sosplice 26766 232550 32552 0 3 0x82 nanoslp syz-executor.1 88499 301750 32552 0 3 0x82 nanoslp syz-executor.7 37092 138890 76411 0 3 0x100082 netio ndp 76411 64412 1 0 3 0x10008a sigsusp sh 76663 94163 32552 0 3 0x82 piperd syz-executor.4 82550 98178 32552 0 3 0x82 piperd syz-executor.2 60249 250413 32552 0 3 0x82 piperd syz-executor.5 46077 102642 32552 0 3 0x82 nanoslp syz-executor.6 68617 297399 32552 0 3 0x82 nanoslp syz-executor.0 32552 225358 43193 0 3 0x2000082 kqread syz-fuzzer 32552 381969 43193 0 3 0x6000082 nanoslp syz-fuzzer 32552 474860 43193 0 3 0x6000082 wait syz-fuzzer 32552 423090 43193 0 3 0x6000082 thrsleep syz-fuzzer 32552 55799 43193 0 3 0x6000082 wait syz-fuzzer 32552 29787 43193 0 3 0x6000082 wait syz-fuzzer 32552 479627 43193 0 3 0x6000082 wait syz-fuzzer 32552 199967 43193 0 3 0x6000082 wait syz-fuzzer 32552 427302 43193 0 3 0x6000082 thrsleep syz-fuzzer 32552 390145 43193 0 3 0x6000082 thrsleep syz-fuzzer 32552 506910 43193 0 3 0x6000082 wait syz-fuzzer 32552 180674 43193 0 3 0x6000082 wait syz-fuzzer 32552 223811 43193 0 3 0x6000082 wait syz-fuzzer 32552 481319 43193 0 3 0x6000082 thrsleep syz-fuzzer 32552 55199 43193 0 3 0x6000082 thrsleep syz-fuzzer 32552 295025 43193 0 3 0x6000082 thrsleep syz-fuzzer 43193 184659 90854 0 3 0x10008a sigsusp ksh 90854 67755 14912 0 3 0x9a kqread sshd 14912 226330 1 0 3 0x88 kqread sshd 61828 338679 80292 74 3 0x1100092 bpf pflogd 80292 163695 1 0 3 0x80 netio pflogd 34806 22716 31891 73 3 0x1100090 kqread syslogd 31891 195183 1 0 3 0x100082 netio syslogd 94715 520318 1 0 3 0x100080 kqread resolvd 37140 381875 67159 77 3 0x100092 kqread dhcpleased 20591 154152 67159 77 3 0x100092 kqread dhcpleased 67159 89332 1 0 3 0x80 kqread dhcpleased 64468 483495 0 0 3 0x14200 bored smr 57958 167249 0 0 3 0x14200 pgzero zerothread 24363 449933 0 0 3 0x14200 aiodoned aiodoned 89013 240029 0 0 3 0x14200 syncer update 12696 428947 0 0 3 0x14200 cleaner cleaner 13871 311585 0 0 3 0x14200 reaper reaper 35255 363221 0 0 3 0x14200 pgdaemon pagedaemon 59250 48476 0 0 3 0x14200 bored viomb 19189 8409 0 0 3 0x40014200 acpi0 acpi0 17100 181885 0 0 3 0x40014200 idle1 86737 390637 0 0 3 0x14200 bored softnet3 92355 18647 0 0 3 0x14200 bored softnet2 16771 301962 0 0 3 0x14200 bored softnet1 18006 215045 0 0 3 0x14200 bored softnet0 33038 140108 0 0 3 0x14200 bored systqmp 37113 208541 0 0 3 0x14200 bored systq 9749 139063 0 0 3 0x14200 tmoslp softclockmp 59065 438617 0 0 3 0x40014200 tmoslp softclock 86570 137489 0 0 3 0x40014200 idle0 1 141780 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 7257 (syz-executor.7) thread 0xffff80002a1f7ab0 (377790) exclusive rwlock vcpu r = 0 (0xffff800038dd13b8) #0 witness_lock+0x447 #1 vm_run+0x77 sys/arch/amd64/amd64/vmm_machdep.c:3668 #2 vmmioctl+0x2a1 sys/dev/vmm/vmm.c:242 #3 VOP_IOCTL+0x97 sys/kern/vfs_vops.c:264 #4 vn_ioctl+0xc0 sys/kern/vfs_vnops.c:525 #5 sys_ioctl+0x4a2 #6 syscall+0x50f mi_syscall sys/sys/syscall_mi.h:103 [inline] #6 syscall+0x50f sys/arch/amd64/amd64/trap.c:606 #7 Xsyscall+0x128 Process 5639 (syz-executor.3) thread 0xffff80002d6b7ff0 (5674) exclusive rrwlock inode r = 0 (0xfffffd806e43b4e8) #0 witness_lock+0x447 #1 rw_enter+0x3c8 sys/kern/kern_rwlock.c:309 #2 rrw_enter+0x8c sys/kern/kern_rwlock.c:464 #3 VOP_LOCK+0x8b sys/kern/vfs_vops.c:518 #4 ufs_ihashins+0x46 sys/ufs/ufs/ufs_ihash.c:140 #5 ffs_vget+0x141 sys/ufs/ffs/ffs_vfsops.c:1343 #6 ffs_inode_alloc+0x1c2 sys/ufs/ffs/ffs_alloc.c:394 #7 ufs_mkdir+0xf8 sys/ufs/ufs/ufs_vnops.c:1149 #8 VOP_MKDIR+0xc3 sys/kern/vfs_vops.c:388 #9 domkdirat+0x125 sys/kern/vfs_syscalls.c:3073 #10 syscall+0x4e6 sys/arch/amd64/amd64/trap.c:606 #11 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806e394d60) #0 witness_lock+0x447 #1 rw_enter+0x3c8 sys/kern/kern_rwlock.c:309 #2 rrw_enter+0x8c sys/kern/kern_rwlock.c:464 #3 VOP_LOCK+0x8b sys/kern/vfs_vops.c:518 #4 vn_lock+0x84 sys/kern/vfs_vnops.c:564 #5 vfs_lookup+0xd5 sys/kern/vfs_lookup.c:418 #6 namei+0x55a sys/kern/vfs_lookup.c:250 #7 domkdirat+0x79 sys/kern/vfs_syscalls.c:3058 #8 syscall+0x4e6 sys/arch/amd64/amd64/trap.c:606 #9 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10208 6486K 7002K 166960K 13165 0 pcb 13 8K 8K 166960K 46 0 rtable 232 6K 6K 166960K 424 0 pf 32 9K 10K 166960K 64 0 ifaddr 45 15K 15K 166960K 64 0 ifgroup 55 2K 2K 166960K 90 0 sysctl 2 0K 0K 166960K 2 0 counters 64 36K 36K 166960K 82 0 ioctlops 0 0K 4K 166960K 3752 0 iov 0 0K 16K 166960K 374 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1388 87K 87K 166960K 2183 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 20 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 1951 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 14 49K 81K 166960K 4642 0 sigio 0 0K 0K 166960K 9 0 proc 69 91K 115K 166960K 642 0 subproc 117 7K 7K 166960K 130 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 15 0 in_multi 99 7K 7K 166960K 121 0 ether_multi 1 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 115 519K 519K 166960K 115 0 exec 0 0K 1K 166960K 527 0 tdb 3 0K 0K 166960K 3 0 pagedep 1 8K 8K 166960K 1 0 inodedep 1 32K 32K 166960K 1 0 newblk 1 0K 0K 166960K 1 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 709 162K 167K 166960K 46897 0 UVM aobj 45 2K 2K 166960K 45 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 13 0 NDP 12 0K 1K 166960K 41 0 temp 74 5924K 6000K 166960K 14628 0 kqueue 12 18K 22K 166960K 84 0 SYN cache 2 16K 16K 166960K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 24 0 0 1 0 1 1 0 8 0 rtpcb 120 49 0 45 1 0 1 1 0 8 0 rtentry 112 138 0 29 4 0 4 4 0 8 0 unpcb 144 2592 0 2574 26 22 4 7 0 8 3 syncache 312 16 0 16 2 2 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 86 0 86 3 3 0 1 0 8 0 tcpcb 808 252 0 248 11 7 4 5 0 8 3 arp 120 25 0 7 1 0 1 1 0 8 0 inpcb 368 511 0 504 13 9 4 7 0 8 3 nd6 136 29 0 5 1 0 1 1 0 8 0 kcovpl 48 10 0 1 1 0 1 1 0 8 0 ppxss 1256 2 0 2 1 1 0 1 0 8 0 pffrag 232 5 0 5 1 1 0 1 0 482 0 pffrnode 88 5 0 5 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 pfstitem 24 54 0 43 1 0 1 1 0 8 0 pfstkey 128 54 0 43 1 0 1 1 0 8 0 pfstate 376 54 0 43 5 2 3 3 0 8 0 pfrule 1344 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 545 0 91 31 2 29 29 0 8 0 art_table 32 546 0 91 4 0 4 4 0 8 0 art_node 16 137 0 38 1 0 1 1 0 8 0 sysvmsgpl 40 19 0 19 2 2 0 1 0 8 0 semapl 112 1949 0 1939 1 0 1 1 0 8 0 shmpl 112 42 0 0 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 6240 0 4792 91 0 91 91 0 8 0 ffsino 272 6240 0 4792 97 0 97 97 0 8 0 nchpl 144 13350 0 11700 63 0 63 63 0 8 0 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 216 5926 0 0 330 0 330 330 0 8 0 namei 1024 37679 0 37678 4 3 1 2 0 8 0 percpumem 16 55 0 9 1 0 1 1 0 8 0 vcpupl 2048 514 0 2 65 0 65 65 0 8 0 vmpool 696 514 0 2 47 0 47 47 0 8 0 kstatmem 264 42 0 18 2 0 2 2 0 8 0 scxspl 216 34558 0 34557 14 13 1 8 1 8 0 plimitpl 152 71 0 54 1 0 1 1 0 8 0 sigapl 424 4965 0 4917 7 1 6 7 0 8 0 futexpl 64 50360 0 50360 2 1 1 1 0 8 1 knotepl 120 107 0 0 4 0 4 4 0 8 0 kqueuepl 216 220 0 212 5 4 1 5 0 8 0 pipepl 320 566 0 535 15 8 7 9 0 8 4 fdescpl 496 4946 0 4919 5 0 5 5 0 8 0 filepl 152 20364 0 20102 43 27 16 20 0 8 4 lockfpl 104 280 0 278 1 0 1 1 0 8 0 lockfspl 48 99 0 97 1 0 1 1 0 8 0 sessionpl 144 27 0 9 1 0 1 1 0 8 0 pgrppl 48 98 0 80 1 0 1 1 0 8 0 ucredpl 104 2990 0 2978 1 0 1 1 0 8 0 zombiepl 144 4919 0 4917 2 1 1 1 0 8 0 processpl 1072 4965 0 4917 4 0 4 4 0 8 0 procpl 680 12426 0 12361 9 1 8 8 0 8 1 srpgc 96 4 0 4 2 2 0 1 0 8 0 sosppl 168 7 0 7 2 2 0 1 0 8 0 sockpl 488 3161 0 3132 73 61 12 26 0 8 8 mcl64k 65536 14 0 0 2 0 2 2 0 8 0 mcl16k 16384 14 0 0 2 0 2 2 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 12 0 0 1 0 1 1 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 18 0 0 3 0 3 3 0 8 0 mcl2k2 2112 8 0 0 1 0 1 1 0 8 0 mcl2k 2048 440 0 0 54 0 54 54 0 8 0 mtagpl 96 79 0 0 2 0 2 2 0 8 0 mbufpl 256 457 0 0 29 0 29 29 0 8 0 bufpl 288 8944 0 2623 452 0 452 452 0 8 0 anonpl 24 534080 0 520387 115 24 91 105 0 186 0 amapchunkpl 152 153062 0 152250 57 15 42 47 0 158 4 amappl16 200 10965 0 10248 48 9 39 43 0 8 0 amappl15 192 9 0 9 1 1 0 1 0 8 0 amappl14 184 179 0 163 2 1 1 2 0 8 0 amappl13 176 20 0 19 1 0 1 1 0 8 0 amappl12 168 5656 0 5625 3 1 2 2 0 8 0 amappl11 160 85 0 71 1 0 1 1 0 8 0 amappl10 152 35 0 25 1 0 1 1 0 8 0 amappl9 144 187 0 186 1 0 1 1 0 8 0 amappl8 136 477 0 367 4 0 4 4 0 8 0 amappl7 128 232 0 204 2 0 2 2 0 8 0 amappl6 120 322 0 310 1 0 1 1 0 8 0 amappl5 112 176 0 165 1 0 1 1 0 8 0 amappl4 104 543 0 512 2 1 1 2 0 8 0 amappl3 96 29134 0 29059 4 1 3 3 0 8 0 amappl2 88 5709 0 5633 3 1 2 3 0 8 0 amappl1 80 26148 0 25575 23 9 14 23 0 8 0 amappl 88 45936 0 45726 7 0 7 7 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 72 44 0 0 1 0 1 1 0 8 0 uaddrrnd 24 5460 0 4921 4 0 4 4 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 5460 0 4921 4 0 4 4 0 8 0 vmmpekpl 168 33209 0 33132 4 0 4 4 0 8 0 vmmpepl 168 298941 0 296186 169 34 135 135 0 357 3 vmsppl 464 5459 0 4921 70 1 69 69 0 8 0 rwobjpl 56 81481 0 73630 113 1 112 112 0 8 0 pdppl 4096 10928 0 10354 674 88 586 586 0 8 12 pvpl 32 42248 0 0 342 1 341 341 0 265 0 pmappl 248 5459 0 4921 36 1 35 35 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1550 0 115 42 0 42 42 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace done_flush() at done_flush+0x38 vm_run(ffff800038e430c0) at vm_run+0x169 vmmioctl(a00,c0205602,ffff800038e430c0,1,ffff80002a1f7ab0) at vmmioctl+0x2a1 sys/dev/vmm/vmm.c:242 VOP_IOCTL(fffffd806ef566c8,c0205602,ffff800038e430c0,1,fffffd807f7d6478,ffff80002a1f7ab0) at VOP_IOCTL+0x97 sys/kern/vfs_vops.c:264 vn_ioctl(fffffd8068399bf0,c0205602,ffff800038e430c0,ffff80002a1f7ab0) at vn_ioctl+0xc0 sys/kern/vfs_vnops.c:525 sys_ioctl(ffff80002a1f7ab0,ffff800038e431d0,ffff800038e43220) at sys_ioctl+0x4a2 syscall(ffff800038e432a0) at syscall+0x50f mi_syscall sys/sys/syscall_mi.h:103 [inline] syscall(ffff800038e432a0) at syscall+0x50f sys/arch/amd64/amd64/trap.c:606 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd8f96c50670, count: -8 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1e: addq $0x8,%rsp ddb{1}> trace x86_ipi_db(ffff800029d2bff0) at x86_ipi_db+0x1e sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 end of kernel end trace frame: 0x77ff5d4e4c70, count: -3