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(ffff80002e3fb950) at vm_run+0x304 sys/arch/amd64/amd64/vmm.c:4297 vmmioctl(a00,c0205602,ffff80002e3fb950,1,ffff8000248a37b0) at vmmioctl+0x8f sys/arch/amd64/amd64/vmm.c:492 VOP_IOCTL(fffffd8075f22910,c0205602,ffff80002e3fb950,1,fffffd807f7d87e0,ffff8000248a37b0) at VOP_IOCTL+0x96 sys/kern/vfs_vops.c:264 vn_ioctl(fffffd8067fc0ef0,c0205602,ffff80002e3fb950,ffff8000248a37b0) at vn_ioctl+0xbc sys/kern/vfs_vnops.c:531 sys_ioctl(ffff8000248a37b0,ffff80002e3fba68,ffff80002e3fbac0) at sys_ioctl+0x4a2 syscall(ffff80002e3fbb30) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e3fbb30) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xeb74db46050, count: -8 ddb{0}> show registers rdi 0x6c14 __ALIGN_SIZE+0x5c14 rsi 0xffff80002121ee38 rbp 0xffff80002e3fb6c0 rbx 0x756e6547 rdx 0x49656e69 rcx 0x6c65746e rax 0x6cce2852a9957445 r8 0 r9 0x10000 __ALIGN_SIZE+0xf000 r10 0xf33f0135f7c71a3f r11 0x725d9e8ab9959705 r12 0xffffffff82965aa0 dt_prov_static r13 0x246 r14 0xffff80002121e800 r15 0xffff80002e3fb950 rip 0xffffffff82125b20 done_flush+0x38 cs 0x8 rflags 0x10046 __ALIGN_SIZE+0xf046 rsp 0xffff80002e3fb516 ss 0x10 done_flush+0x38: movl %eax,%dr6 ddb{0}> show proc PROC (syz-executor.4) pid=14284 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=83, nice=20 forw=0xffffffffffffffff, list=0xffff8000248a3510,0xffff8000248a3280 process=0xffff80002e470028 user=0xffff80002e3f6000, vmspace=0xfffffd8061d665e0 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 3551 278931 62970 0 2 0 syz-executor.5 82013 490323 89912 0 2 0 syz-executor.3 82013 278761 89912 0 2 0x4000000 syz-executor.3 50610 501216 55193 0 2 0 syz-executor.0 50610 111709 55193 0 2 0x4000000 syz-executor.0 7832 386857 35342 0 2 0 syz-executor.6 7832 278504 35342 0 2 0x4000000 syz-executor.6 46168 416634 48223 0 2 0 syz-executor.4 *46168 14284 48223 0 7 0x4000000 syz-executor.4 23754 478696 17676 0 2 0 syz-executor.2 23754 221942 17676 0 3 0x4000080 fsleep syz-executor.2 90622 57652 78844 0 2 0 syz-executor.1 90622 403555 78844 0 3 0x4000080 fsleep syz-executor.1 90622 34544 78844 0 3 0x4000080 fsleep syz-executor.1 90622 299371 78844 0 3 0x4000080 fsleep syz-executor.1 84982 66082 17016 0 2 0 syz-executor.7 84982 222058 17016 0 3 0x4000080 fsleep syz-executor.7 17676 193396 36274 0 3 0x82 nanoslp syz-executor.2 64648 467552 0 0 3 0x14200 acct acct 78844 363083 36274 0 3 0x82 nanoslp syz-executor.1 55193 273169 36274 0 3 0x82 nanoslp syz-executor.0 35342 370122 36274 0 3 0x82 nanoslp syz-executor.6 62970 151403 36274 0 3 0x82 nanoslp syz-executor.5 48223 101009 36274 0 3 0x82 nanoslp syz-executor.4 89912 389123 36274 0 3 0x82 nanoslp syz-executor.3 17016 385887 36274 0 3 0x82 nanoslp syz-executor.7 30356 364269 0 0 3 0x14200 bored sosplice 36274 88529 74874 0 3 0x82 thrsleep syz-fuzzer 36274 171565 74874 0 3 0x4000082 thrsleep syz-fuzzer 36274 278722 74874 0 3 0x4000082 thrsleep syz-fuzzer 36274 39499 74874 0 3 0x4000082 thrsleep syz-fuzzer 36274 298975 74874 0 3 0x4000082 thrsleep syz-fuzzer 36274 336517 74874 0 3 0x4000082 thrsleep syz-fuzzer 36274 239623 74874 0 3 0x4000082 kqread syz-fuzzer 36274 479278 74874 0 3 0x4000082 thrsleep syz-fuzzer 36274 207469 74874 0 3 0x4000082 thrsleep syz-fuzzer 74874 33316 66158 0 3 0x10008a sigsusp ksh 66158 135538 93384 0 3 0x9a poll sshd 87740 324341 1 0 3 0x100083 ttyin getty 93384 312792 1 0 3 0x88 poll sshd 15384 351565 69758 74 3 0x100092 bpf pflogd 69758 481664 1 0 3 0x80 netio pflogd 65177 417578 82461 73 3 0x100090 kqread syslogd 82461 135429 1 0 3 0x100082 netio syslogd 13086 142350 1 0 3 0x100080 kqread resolvd 47691 455274 8736 77 3 0x100092 kqread dhcpleased 18897 254372 8736 77 3 0x100092 kqread dhcpleased 8736 209704 1 0 3 0x80 kqread dhcpleased 84126 70247 0 0 3 0x14200 bored smr 21459 146421 0 0 2 0x14200 zerothread 78244 156900 0 0 3 0x14200 aiodoned aiodoned 93088 134995 0 0 3 0x14200 syncer update 8108 77714 0 0 3 0x14200 cleaner cleaner 80082 322160 0 0 3 0x14200 reaper reaper 18896 29350 0 0 3 0x14200 pgdaemon pagedaemon 80217 252672 0 0 3 0x14200 bored viomb 40231 259971 0 0 3 0x40014200 acpi0 acpi0 24135 480201 0 0 7 0x40014200 idle1 56651 5533 0 0 3 0x14200 bored softnet 51923 519992 0 0 3 0x14200 bored systqmp 71409 491955 0 0 3 0x14200 bored systq 15351 77248 0 0 3 0x40014200 bored softclock 59547 452241 0 0 3 0x40014200 idle0 1 45389 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 46168 (syz-executor.4) thread 0xffff8000248a37b0 (14284) exclusive rwlock vcpu r = 0 (0xffff80002121ebb0) #0 witness_lock+0x44d #1 vm_run+0x2e0 sys/arch/amd64/amd64/vmm.c:4264 #2 vmmioctl+0x8f sys/arch/amd64/amd64/vmm.c:492 #3 VOP_IOCTL+0x96 sys/kern/vfs_vops.c:264 #4 vn_ioctl+0xbc sys/kern/vfs_vnops.c:531 #5 sys_ioctl+0x4a2 #6 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] #6 syscall+0x489 sys/arch/amd64/amd64/trap.c:585 #7 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10210 6519K 7581K 78643K 71040 0 pcb 13 22K 24K 78643K 5900 0 rtable 300 31K 32K 78643K 4896 0 ifaddr 103 24K 26K 78643K 1646 0 sysctl 2 0K 2K 78643K 6 0 counters 58 35K 36K 78643K 462 0 ioctlops 0 0K 4K 78643K 8655 0 iov 0 0K 24K 78643K 1552 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 5 0 vnodes 1491 93K 94K 78643K 28350 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 208 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 6618 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12598 0 file desc 18 65K 85K 78643K 31279 0 sigio 0 0K 0K 78643K 1597 0 proc 71 87K 112K 78643K 2754 0 subproc 104 13K 13K 78643K 813 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 3227 0 in_multi 92 6K 7K 78643K 1368 0 ether_multi 1 0K 0K 78643K 219 0 mrt 1 0K 0K 78643K 70 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 187 837K 837K 78643K 187 0 exec 0 0K 2K 78643K 5988 0 pfkey data 0 0K 0K 78643K 8 0 tdb 3 0K 0K 78643K 3 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 720 1355K 1355K 78643K 401698 0 UVM aobj 135 8K 8K 78643K 169 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 5964 0 NDP 14 0K 2K 78643K 365 0 temp 149 4717K 8809K 78643K 201156 0 kqueue 10 14K 22K 78643K 808 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 plcache 128 22 0 0 1 0 1 1 0 8 0 rtpcb 120 1244 0 1241 13 12 1 5 0 8 0 rtentry 112 1316 0 1213 4 0 4 4 0 8 0 unpcb 136 13522 0 13507 134 131 3 9 0 8 2 syncache 296 129 0 129 22 22 0 1 0 8 0 sackhl 24 3 0 3 3 3 0 1 0 8 0 tcpqe 32 22 162 22 5 5 0 1 0 8 0 tcpcb 736 31551 0 31532 654 643 11 40 0 8 8 arp 120 158 0 141 1 0 1 1 0 8 0 inpcb 304 60772 0 60760 464 455 9 20 0 8 6 rttmr 72 17 0 17 6 6 0 1 0 8 0 nd6 48 235 0 205 1 0 1 1 0 8 0 pkpcb 40 147 0 147 11 11 0 1 0 8 0 kcovpl 48 62 0 54 1 0 1 1 0 8 0 ppxss 1248 26 0 26 7 7 0 1 0 8 0 pfstscr 40 91 0 91 9 9 0 1 0 8 0 pffrag 232 85 0 84 14 13 1 1 0 482 0 pffrnode 88 85 0 84 14 13 1 1 0 8 0 pffrent 40 1405 0 1404 14 13 1 1 0 8 0 pfosfp 40 1495 0 1494 6 5 1 5 0 8 0 pfosfpen 112 1495 0 1494 22 21 1 21 0 8 0 pfrke_plain 168 8 0 8 1 1 0 1 0 8 0 pfrktable 1344 578 0 550 16 13 3 3 0 8 0 pftag 88 6 0 0 1 0 1 1 0 8 0 pfqueue 264 1544 0 842 48 1 47 47 0 8 0 pfstitem 24 31 0 29 1 0 1 1 0 8 0 pfstkey 112 215 0 213 1 0 1 1 0 8 0 pfstate 320 119 0 117 2 1 1 2 0 8 0 pfrule 1360 1593 0 1292 33 7 26 26 0 8 0 art_heap8 4096 4 0 3 3 2 1 3 0 8 0 art_heap4 256 5826 0 5367 47 17 30 34 0 8 0 art_table 32 5830 0 5370 5 1 4 5 0 8 0 art_node 16 1305 0 1217 1 0 1 1 0 8 0 sysvmsgpl 40 50 0 16 1 0 1 1 0 8 0 semapl 112 6616 0 6606 1 0 1 1 0 8 0 shmpl 112 166 0 38 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 39269 0 37772 94 0 94 94 0 8 0 ffsino 272 39269 0 37772 101 0 101 101 0 8 0 nchpl 144 77935 0 76313 63 0 63 63 0 8 0 rtmask 32 6 0 6 1 1 0 1 0 8 0 uvmvnodes 80 7421 0 0 152 0 152 152 0 8 0 vnodes 224 7421 0 0 437 0 437 437 0 8 0 namei 1024 279610 0 279610 6 5 1 1 0 8 1 percpumem 16 243 0 202 1 0 1 1 0 8 0 vcpupl 2048 160 0 1 20 0 20 20 0 8 0 vmpool 560 225 0 66 12 0 12 12 0 8 0 pfiaddrpl 120 472 0 409 2 0 2 2 0 8 0 scsiplug 72 26 0 26 8 7 1 1 0 8 1 scxspl 216 267418 0 267418 24 23 1 8 0 8 1 plimitpl 152 3072 0 3057 1 0 1 1 0 8 0 sigapl 424 31515 0 31468 10 2 8 8 0 8 1 futexpl 64 304176 0 304171 8 7 1 1 0 8 0 knotepl 112 295 0 0 5 0 5 5 0 8 0 kqueuepl 216 7587 0 7577 129 124 5 5 0 8 4 pipepl 336 5733 0 5705 142 136 6 13 0 8 3 fdescpl 496 31455 0 31424 6 2 4 5 0 8 0 filepl 152 227689 0 227450 340 322 18 26 0 8 6 lockfpl 104 36394 0 36392 78 75 3 4 0 8 2 lockfspl 48 16972 0 16970 12 10 2 2 0 8 1 sessionpl 144 78 0 61 1 0 1 1 0 8 0 pgrppl 48 78 0 61 1 0 1 1 0 8 0 ucredpl 96 28667 0 28655 1 0 1 1 0 8 0 zombiepl 144 31468 0 31468 2 1 1 1 0 8 1 processpl 1064 31515 0 31468 6 1 5 5 0 8 0 procpl 672 92641 0 92577 63 55 8 9 0 8 1 srpgc 96 76 0 76 16 16 0 1 0 8 0 sosppl 168 164 0 164 28 28 0 1 0 8 0 sockpl 480 75714 0 75684 1198 1184 14 35 0 8 8 mcl64k 65536 33 0 0 3 0 3 3 0 8 0 mcl16k 16384 49 0 0 5 2 3 3 0 8 0 mcl12k 12288 65 0 0 2 0 2 2 0 8 0 mcl9k 9216 25 0 0 2 0 2 2 0 8 0 mcl8k 8192 53 0 0 5 2 3 3 0 8 0 mcl4k 4096 57 0 0 4 1 3 3 0 8 0 mcl2k2 2112 14 0 0 1 0 1 1 0 8 0 mcl2k 2048 1054 0 0 33 11 22 30 0 8 0 mtagpl 96 1753 0 0 20 1 19 19 0 8 0 mbufpl 256 3563 0 0 186 0 186 186 0 8 0 bufpl 288 44063 0 36641 531 0 531 531 0 8 0 anonpl 24 8936574 0 8911824 399 244 155 173 0 186 3 amapchunkpl 152 976752 0 975739 153 111 42 54 0 158 1 amappl16 200 84404 0 83544 141 92 49 57 0 8 0 amappl15 192 10651 0 10644 1 0 1 1 0 8 0 amappl14 184 5249 0 5244 3 2 1 1 0 8 0 amappl13 176 1366 0 1363 1 0 1 1 0 8 0 amappl12 168 2145 0 2133 1 0 1 1 0 8 0 amappl11 160 4168 0 4150 1 0 1 1 0 8 0 amappl10 152 954 0 948 1 0 1 1 0 8 0 amappl9 144 3089 0 3084 1 0 1 1 0 8 0 amappl8 136 11165 0 10974 8 1 7 7 0 8 0 amappl7 128 8708 0 8692 1 0 1 1 0 8 0 amappl6 120 2989 0 2954 2 0 2 2 0 8 0 amappl5 112 23157 0 23131 1 0 1 1 0 8 0 amappl4 104 14644 0 14604 10 8 2 2 0 8 0 amappl3 96 4590 0 4572 1 0 1 1 0 8 0 amappl2 88 3425 0 3358 2 0 2 2 0 8 0 amappl1 80 572906 0 572300 14 0 14 14 0 8 0 amappl 88 399655 0 399277 13 3 10 10 0 92 1 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 168 0 34 3 0 3 3 0 8 0 uaddrrnd 24 31680 0 31490 2 0 2 2 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 31680 0 31490 2 0 2 2 0 8 0 vmmpekpl 168 222805 0 222716 5 0 5 5 0 8 0 vmmpepl 168 2910845 0 2907378 482 319 163 180 0 357 5 vmsppl 368 31679 0 31490 19 1 18 18 0 8 0 rwobjpl 56 697011 0 687324 155 17 138 138 0 8 1 pdppl 4096 63367 0 63139 1315 1087 228 228 0 8 0 pvpl 32 15440488 0 15415930 645 430 215 325 0 265 0 pmappl 248 31679 0 31490 13 1 12 12 0 8 0 extentpl 40 57 0 38 1 0 1 1 0 8 0 phpool 112 3207 0 1916 37 0 37 37 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace done_flush() at done_flush+0x38 vm_run(ffff80002e3fb950) at vm_run+0x304 sys/arch/amd64/amd64/vmm.c:4297 vmmioctl(a00,c0205602,ffff80002e3fb950,1,ffff8000248a37b0) at vmmioctl+0x8f sys/arch/amd64/amd64/vmm.c:492 VOP_IOCTL(fffffd8075f22910,c0205602,ffff80002e3fb950,1,fffffd807f7d87e0,ffff8000248a37b0) at VOP_IOCTL+0x96 sys/kern/vfs_vops.c:264 vn_ioctl(fffffd8067fc0ef0,c0205602,ffff80002e3fb950,ffff8000248a37b0) at vn_ioctl+0xbc sys/kern/vfs_vnops.c:531 sys_ioctl(ffff8000248a37b0,ffff80002e3fba68,ffff80002e3fbac0) at sys_ioctl+0x4a2 syscall(ffff80002e3fbb30) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e3fbb30) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xeb74db46050, count: -8 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp ddb{1}> trace x86_ipi_db(ffff800020ce8ff0) at x86_ipi_db+0x1a 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+0x23 acpicpu_idle() at acpicpu_idle+0x312 sys/dev/acpi/acpicpu.c:1206 sched_idle(ffff800020ce8ff0) at sched_idle+0x417 sys/kern/kern_sched.c:178 end trace frame: 0x0, count: -5