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(ffff800030b1a0f0) at vm_run+0x169 vmmioctl(a00,c0205602,ffff800030b1a0f0,1,ffff80002a22b2b8) at vmmioctl+0x2a1 sys/dev/vmm/vmm.c:242 VOP_IOCTL(fffffd806e8e06c8,c0205602,ffff800030b1a0f0,1,fffffd807f7d7548,ffff80002a22b2b8) at VOP_IOCTL+0x97 sys/kern/vfs_vops.c:264 vn_ioctl(fffffd806b693900,c0205602,ffff800030b1a0f0,ffff80002a22b2b8) at vn_ioctl+0xc0 sys/kern/vfs_vnops.c:525 sys_ioctl(ffff80002a22b2b8,ffff800030b1a2d0,ffff800030b1a220) at sys_ioctl+0x4a2 syscall(ffff800030b1a2d0) at syscall+0x5ae mi_syscall sys/sys/syscall_mi.h:183 [inline] syscall(ffff800030b1a2d0) at syscall+0x5ae sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x3a963d173c0, count: -8 ddb{0}> show registers rdi 0x6c14 __ALIGN_SIZE+0x5c14 rsi 0xffff80002a21ce50 rbp 0xffff800030b19e40 rbx 0x756e6547 rdx 0x49656e69 rcx 0x6c65746e rax 0xfffffffffffffffd r8 0 r9 0x10000 __ALIGN_SIZE+0xf000 r10 0x4df16d54f636890e r11 0x376c7dfe5ed9e9b5 r12 0xffffffff82c9aff0 cpu_info_full_primary+0x1ff0 r13 0x246 r14 0xffff80002a21c800 r15 0xffff800030b1a0f0 rip 0xffffffff8270b24d done_flush+0x38 cs 0x8 rflags 0x10046 __ALIGN_SIZE+0xf046 rsp 0xffff800030b19cd6 ss 0x10 done_flush+0x38: movl %eax,%dr6 ddb{0}> show proc PROC (syz-executor.5) tid=63056 pid=27534 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=0xffff80002a22bab0,0xffff80002a22c2b8 process=0xffff80002a216c90 user=0xffff800030b15000, vmspace=0xfffffd8071a7de00 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 93376 311270 11389 0 2 0 syz-executor.2 93376 171607 11389 0 3 0x4000080 fsleep syz-executor.2 22226 112757 53748 0 2 0 syz-executor.0 22226 12046 53748 0 3 0x4000080 fsleep syz-executor.0 27534 294481 46211 0 2 0 syz-executor.5 *27534 63056 46211 0 7 0x4000000 syz-executor.5 97050 519626 36051 0 2 0 syz-executor.6 7301 408716 73228 0 2 0 syz-executor.1 7301 337359 73228 0 3 0x4000080 fsleep syz-executor.1 7301 64072 73228 0 3 0x4000080 fsleep syz-executor.1 87068 187013 67077 0 2 0 syz-executor.3 87068 416438 67077 0 3 0x4000080 fsleep syz-executor.3 31567 191438 73210 0 2 0 syz-executor.7 31567 201633 73210 0 3 0x4000080 fsleep syz-executor.7 67077 282795 45616 0 3 0x82 nanoslp syz-executor.3 72749 325111 1 0 3 0x100083 ttyin getty 73228 238233 45616 0 3 0x82 nanoslp syz-executor.1 73210 344162 45616 0 3 0x82 nanoslp syz-executor.7 36051 155594 45616 0 3 0x82 nanoslp syz-executor.6 77687 501381 45616 0 3 0x82 nanoslp syz-executor.4 11389 470616 45616 0 3 0x82 nanoslp syz-executor.2 31165 184643 0 0 3 0x14200 acct acct 29856 3352 0 0 3 0x14280 nfsidl nfsio 72233 387364 0 0 3 0x14280 nfsidl nfsio 91723 61622 0 0 3 0x14280 nfsidl nfsio 32820 514827 0 0 3 0x14280 nfsidl nfsio 32416 45 0 0 3 0x14280 nfsidl nfsio 10913 119784 0 0 3 0x14280 nfsidl nfsio 86695 235213 0 0 3 0x14280 nfsidl nfsio 58222 389456 0 0 3 0x14280 nfsidl nfsio 20428 462005 0 0 3 0x14280 nfsidl nfsio 48129 1462 0 0 3 0x14280 nfsidl nfsio 55602 24663 0 0 3 0x14280 nfsidl nfsio 6131 148209 0 0 3 0x14280 nfsidl nfsio 18396 150508 0 0 3 0x14280 nfsidl nfsio 24293 235843 0 0 3 0x14280 nfsidl nfsio 18639 252408 0 0 3 0x14280 nfsidl nfsio 84776 127639 0 0 3 0x14280 nfsidl nfsio 24966 133230 0 0 3 0x14280 nfsidl nfsio 50703 64580 0 0 3 0x14280 nfsidl nfsio 23274 325514 0 0 3 0x14280 nfsidl nfsio 90036 811 0 0 3 0x14280 nfsidl nfsio 77123 352461 0 0 3 0x14200 bored sosplice 46211 245869 45616 0 3 0x82 nanoslp syz-executor.5 53748 117193 45616 0 3 0x82 nanoslp syz-executor.0 45616 390956 61202 0 3 0x2000082 thrsleep syz-fuzzer 45616 220795 61202 0 3 0x6000082 nanoslp syz-fuzzer 45616 79125 61202 0 3 0x6000082 thrsleep syz-fuzzer 45616 401806 61202 0 3 0x6000082 wait syz-fuzzer 45616 178342 61202 0 2 0x6000002 syz-fuzzer 45616 331609 61202 0 3 0x6000082 wait syz-fuzzer 45616 143932 61202 0 3 0x6000082 wait syz-fuzzer 45616 304188 61202 0 3 0x6000082 wait syz-fuzzer 45616 241131 61202 0 3 0x6000082 thrsleep syz-fuzzer 45616 301169 61202 0 3 0x6000082 wait syz-fuzzer 45616 421962 61202 0 3 0x6000082 thrsleep syz-fuzzer 45616 299979 61202 0 3 0x6000082 wait syz-fuzzer 45616 480432 61202 0 3 0x6000082 wait syz-fuzzer 45616 320298 61202 0 3 0x6000082 kqread syz-fuzzer 45616 395998 61202 0 3 0x6000082 wait syz-fuzzer 45616 69876 61202 0 3 0x6000082 thrsleep syz-fuzzer 45616 465075 61202 0 3 0x6000082 thrsleep syz-fuzzer 61202 123843 69804 0 3 0x10008a sigsusp ksh 69804 126925 62791 0 3 0x9a kqread sshd 62791 137766 1 0 3 0x88 kqread sshd 79473 258311 54782 74 3 0x1100092 bpf pflogd 54782 481465 1 0 3 0x80 netio pflogd 75298 2696 30672 73 3 0x1100090 kqread syslogd 30672 360547 1 0 3 0x100082 netio syslogd 30916 428592 1 0 3 0x100080 kqread resolvd 32298 368081 49828 77 3 0x100092 kqread dhcpleased 28375 18327 49828 77 3 0x100092 kqread dhcpleased 49828 393229 1 0 3 0x80 kqread dhcpleased 26479 154490 0 0 3 0x14200 bored smr 17970 237775 0 0 2 0x14200 zerothread 14910 447380 0 0 3 0x14200 aiodoned aiodoned 6004 148763 0 0 3 0x14200 syncer update 26608 353078 0 0 3 0x14200 cleaner cleaner 87893 357859 0 0 3 0x14200 reaper reaper 32381 262966 0 0 3 0x14200 pgdaemon pagedaemon 95855 213265 0 0 3 0x14200 bored viomb 65265 125927 0 0 3 0x40014200 acpi0 acpi0 37341 136108 0 0 7 0x40014200 idle1 59952 12317 0 0 3 0x14200 bored softnet3 48474 366866 0 0 3 0x14200 bored softnet2 50459 199062 0 0 3 0x14200 bored softnet1 51287 175498 0 0 3 0x14200 bored softnet0 37139 298940 0 0 3 0x14200 bored systqmp 45425 397389 0 0 3 0x14200 bored systq 88405 433162 0 0 3 0x14200 tmoslp softclockmp 88220 132211 0 0 3 0x40014200 tmoslp softclock 49998 74759 0 0 3 0x40014200 idle0 1 50263 0 0 3 0x80082 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 27534 (syz-executor.5) thread 0xffff80002a22b2b8 (63056) exclusive rwlock vcpu r = 0 (0xffff80002a21cbb8) #0 witness_lock+0x447 #1 vm_run+0x77 sys/arch/amd64/amd64/vmm_machdep.c:3667 #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+0x5ae mi_syscall sys/sys/syscall_mi.h:183 [inline] #6 syscall+0x5ae sys/arch/amd64/amd64/trap.c:577 #7 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10226 6556K 7612K 166960K 89793 0 pcb 15 16K 19K 166960K 644 0 rtable 248 15K 15K 166960K 1015 0 pf 35 10K 10K 166960K 202 0 ifaddr 47 16K 17K 166960K 162 0 ifgroup 62 2K 2K 166960K 310 0 sysctl 4 1K 2K 166960K 14 0 counters 66 36K 37K 166960K 202 0 ioctlops 0 0K 4K 166960K 1949 0 iov 0 0K 32K 166960K 1173 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1534 96K 96K 166960K 17426 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 101 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 1230 0 dirhash 12 2K 2K 166960K 48 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 17 61K 89K 166960K 21770 0 sigio 0 0K 0K 166960K 597 0 proc 81 92K 116K 166960K 1337 0 subproc 104 6K 6K 166960K 273 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 1882 0 in_multi 99 7K 7K 166960K 868 0 ether_multi 1 0K 0K 166960K 43 0 mrt 1 0K 0K 166960K 17 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 235 1049K 1049K 166960K 235 0 exec 0 0K 1K 166960K 1178 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 488 242K 271K 166960K 193310 0 UVM aobj 131 8K 8K 166960K 142 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 445 0 NDP 13 0K 2K 166960K 123 0 temp 74 6772K 7412K 166960K 133441 0 kqueue 13 20K 32K 166960K 2046 0 SYN cache 2 36K 44K 166960K 3 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 273 0 270 1 0 1 1 0 8 0 rtentry 112 303 0 189 4 0 4 4 0 8 0 unpcb 144 9656 0 9640 109 103 6 10 0 8 5 syncache 336 146 0 146 20 19 1 1 0 8 1 tcpqe 32 257 99232 257 7 7 0 1 0 8 0 tcpcb 808 4502 0 4479 97 90 7 14 0 8 2 arp 120 61 0 42 1 0 1 1 0 8 0 ipq 40 1 0 1 1 1 0 1 0 8 0 ipqe 40 3 0 3 1 1 0 1 0 8 0 inpcb 392 11205 0 11177 140 133 7 20 0 8 2 nd6 136 66 0 41 1 0 1 1 0 8 0 pkpcb 40 18 0 18 8 8 0 1 0 8 0 kcovpl 48 21 0 13 1 0 1 1 0 8 0 ppxss 1168 22 0 22 8 8 0 1 0 8 0 pffrag 232 65 0 65 4 3 1 1 0 482 1 pffrnode 88 65 0 65 4 3 1 1 0 8 1 pffrent 40 176 0 176 4 3 1 1 0 8 1 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 248 0 234 1 0 1 1 0 8 0 pfstkey 128 254 0 240 2 1 1 2 0 8 0 pfstate 376 254 0 240 7 4 3 4 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 1118 0 652 45 15 30 31 0 8 0 art_table 32 1119 0 652 4 0 4 4 0 8 0 art_node 16 289 0 186 1 0 1 1 0 8 0 sysvmsgpl 40 81 0 79 1 0 1 1 0 8 0 semupl 112 20 0 20 1 1 0 1 0 8 0 semapl 112 1228 0 1218 1 0 1 1 0 8 0 shmpl 112 139 0 11 5 1 4 4 0 8 0 dirhash 1024 41 0 24 3 0 3 3 0 8 0 dino2pl 256 27055 0 25587 92 0 92 92 0 8 0 ffsino 272 27055 0 25587 99 0 99 99 0 8 0 nchpl 144 52940 0 51292 64 0 64 64 0 8 0 uvmvnodes 80 6296 0 0 129 0 129 129 0 8 0 vnodes 216 6296 0 0 350 0 350 350 0 8 0 namei 1024 151906 0 151906 7 6 1 2 0 8 1 percpumem 16 115 0 68 1 0 1 1 0 8 0 vcpupl 2048 33 0 1 4 0 4 4 0 8 0 vmpool 696 33 0 1 3 0 3 3 0 8 0 kstatmem 264 162 0 136 3 1 2 3 0 8 0 scxspl 216 167464 0 167464 20 19 1 8 1 8 1 plimitpl 152 1029 0 1013 1 0 1 1 0 8 0 sigapl 424 22111 0 22040 14 6 8 9 0 8 0 futexpl 64 160456 0 160450 1 0 1 1 0 8 0 knotepl 120 1115 0 0 34 5 29 34 0 8 0 kqueuepl 216 3157 0 3148 35 34 1 7 0 8 0 pipepl 320 1556 0 1528 46 40 6 8 0 8 3 fdescpl 496 22056 0 22026 12 8 4 5 0 8 0 filepl 152 91441 0 91196 157 138 19 23 0 8 7 lockfpl 104 3584 0 3582 8 6 2 2 0 8 1 lockfspl 48 1326 0 1324 1 0 1 1 0 8 0 sessionpl 144 40 0 23 1 0 1 1 0 8 0 pgrppl 48 179 0 162 1 0 1 1 0 8 0 ucredpl 104 10347 0 10335 1 0 1 1 0 8 0 zombiepl 144 22041 0 22040 2 1 1 1 0 8 0 processpl 1136 22111 0 22040 7 1 6 6 0 8 0 procpl 680 49471 0 49377 15 6 9 10 0 8 0 srpgc 96 17 0 17 7 7 0 1 0 8 0 sosppl 168 148 0 142 2 1 1 1 0 8 0 sockpl 584 21167 0 21117 180 167 13 23 0 8 6 mcl64k 65536 10 0 0 2 0 2 2 0 8 0 mcl16k 16384 9 0 0 2 0 2 2 0 8 0 mcl12k 12288 4 0 0 1 0 1 1 0 8 0 mcl9k 9216 4 0 0 1 0 1 1 0 8 0 mcl8k 8192 18 0 0 3 0 3 3 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 9 0 0 1 0 1 1 0 8 0 mcl2k 2048 736 0 0 32 5 27 32 0 8 0 mtagpl 96 1746 0 0 40 0 40 40 0 8 0 mbufpl 256 2731 0 0 130 0 130 130 0 8 0 bufpl 280 33905 0 27587 452 0 452 452 0 8 0 anonpl 24 1786102 0 1773741 226 133 93 155 0 186 0 amapchunkpl 152 610560 0 609736 133 96 37 64 0 158 0 amappl16 200 34370 0 33871 114 85 29 39 0 8 0 amappl15 192 49 0 48 1 0 1 1 0 8 0 amappl14 184 233 0 210 5 3 2 2 0 8 0 amappl13 176 27 0 27 4 4 0 1 0 8 0 amappl12 168 22944 0 22909 3 1 2 2 0 8 0 amappl11 160 65 0 51 1 0 1 1 0 8 0 amappl10 152 49 0 33 1 0 1 1 0 8 0 amappl9 144 220 0 219 2 1 1 1 0 8 0 amappl8 136 835 0 659 8 1 7 7 0 8 0 amappl7 128 269 0 240 3 1 2 3 0 8 0 amappl6 120 517 0 502 1 0 1 1 0 8 0 amappl5 112 327 0 315 1 0 1 1 0 8 0 amappl4 104 630 0 597 2 1 1 2 0 8 0 amappl3 96 122002 0 121910 3 0 3 3 0 8 0 amappl2 88 22922 0 22830 4 1 3 3 0 8 0 amappl1 80 85737 0 85170 23 10 13 23 0 8 0 amappl 88 192296 0 192047 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 141 0 11 3 0 3 3 0 8 0 uaddrrnd 24 22089 0 22027 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 22089 0 22027 1 0 1 1 0 8 0 vmmpekpl 168 120989 0 120907 4 0 4 4 0 8 0 vmmpepl 168 1228613 0 1225957 393 271 122 150 0 357 0 vmsppl 448 22088 0 22027 10 3 7 7 0 8 0 rwobjpl 56 268875 0 260699 123 7 116 118 0 8 0 pdppl 4096 44185 0 44086 591 490 101 101 0 8 2 pvpl 32 45588 0 0 369 1 368 368 0 265 0 pmappl 248 22088 0 22027 5 1 4 4 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1347 0 811 16 0 16 16 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace done_flush() at done_flush+0x38 vm_run(ffff800030b1a0f0) at vm_run+0x169 vmmioctl(a00,c0205602,ffff800030b1a0f0,1,ffff80002a22b2b8) at vmmioctl+0x2a1 sys/dev/vmm/vmm.c:242 VOP_IOCTL(fffffd806e8e06c8,c0205602,ffff800030b1a0f0,1,fffffd807f7d7548,ffff80002a22b2b8) at VOP_IOCTL+0x97 sys/kern/vfs_vops.c:264 vn_ioctl(fffffd806b693900,c0205602,ffff800030b1a0f0,ffff80002a22b2b8) at vn_ioctl+0xc0 sys/kern/vfs_vnops.c:525 sys_ioctl(ffff80002a22b2b8,ffff800030b1a2d0,ffff800030b1a220) at sys_ioctl+0x4a2 syscall(ffff800030b1a2d0) at syscall+0x5ae mi_syscall sys/sys/syscall_mi.h:183 [inline] syscall(ffff800030b1a2d0) at syscall+0x5ae sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x3a963d173c0, count: -8 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1e: addq $0x8,%rsp ddb{1}> trace x86_ipi_db(ffff800029cebff0) 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 acpicpu_idle() at acpicpu_idle+0x312 sys/dev/acpi/acpicpu.c:1206 sched_idle(ffff800029cebff0) at sched_idle+0x41e sys/kern/kern_sched.c:183 end trace frame: 0x0, count: -5