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(ffff80002d545fe0) at vm_run+0x304 sys/arch/amd64/amd64/vmm.c:4297 vmmioctl(a00,c0205602,ffff80002d545fe0,1,ffff800021181ce0) at vmmioctl+0x8f sys/arch/amd64/amd64/vmm.c:492 VOP_IOCTL(fffffd806e887d70,c0205602,ffff80002d545fe0,1,fffffd807f7d8720,ffff800021181ce0) at VOP_IOCTL+0x96 sys/kern/vfs_vops.c:264 vn_ioctl(fffffd8064b3f150,c0205602,ffff80002d545fe0,ffff800021181ce0) at vn_ioctl+0xbc sys/kern/vfs_vnops.c:531 sys_ioctl(ffff800021181ce0,ffff80002d5460f8,ffff80002d546150) at sys_ioctl+0x4a2 syscall(ffff80002d5461c0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002d5461c0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa60dbbcc050, count: -8 ddb{0}> show registers rdi 0x6c14 __ALIGN_SIZE+0x5c14 rsi 0xffff80002e377e38 rbp 0xffff80002d545d50 rbx 0x756e6547 rdx 0x49656e69 rcx 0x6c65746e rax 0x8000000000000001 r8 0 r9 0x10000 __ALIGN_SIZE+0xf000 r10 0xd20b209cc506e56d r11 0xde9eddcb22ed7db2 r12 0xffffffff829a6900 dt_prov_static r13 0x246 r14 0xffff80002e377800 r15 0xffff80002d545fe0 rip 0xffffffff82292f60 done_flush+0x38 cs 0x8 rflags 0x10046 __ALIGN_SIZE+0xf046 rsp 0xffff80002d545ba6 ss 0x10 done_flush+0x38: movl %eax,%dr6 ddb{0}> show proc PROC (syz-executor.2) pid=95468 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=83, nice=20 forw=0xffffffffffffffff, list=0xffff8000211817a0,0xffffffff82a9b040 process=0xffff8000fffed910 user=0xffff80002d541000, vmspace=0xfffffd807e3635c0 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 28614 467944 67076 0 2 0 syz-executor.2 *28614 95468 67076 0 7 0x4000000 syz-executor.2 12818 505219 72389 0 2 0 syz-executor.0 12818 20621 72389 0 3 0x4000080 fsleep syz-executor.0 72362 254561 31435 0 2 0 syz-executor.5 72362 249368 31435 0 3 0x4000080 fsleep syz-executor.5 47385 187405 23477 0 2 0 syz-executor.1 47385 42739 23477 0 3 0x4000080 fsleep syz-executor.1 63400 212305 85298 0 2 0 syz-executor.6 63400 319201 85298 0 3 0x4000080 fsleep syz-executor.6 63400 151443 85298 0 3 0x4000080 fsleep syz-executor.6 71849 264128 59662 0 2 0 syz-executor.3 71849 256009 59662 0 3 0x4000080 fsleep syz-executor.3 71849 463077 59662 0 3 0x4000080 fsleep syz-executor.3 61492 442005 74223 0 3 0x80 nanoslp syz-executor.7 61492 78832 74223 0 3 0x4000080 fsleep syz-executor.7 31435 370279 62162 0 3 0x82 nanoslp syz-executor.5 85298 484867 62162 0 3 0x82 nanoslp syz-executor.6 59662 327048 62162 0 3 0x82 nanoslp syz-executor.3 74223 264969 62162 0 3 0x82 nanoslp syz-executor.7 13741 250656 62162 0 3 0x82 nanoslp syz-executor.4 67076 462010 62162 0 3 0x82 nanoslp syz-executor.2 72389 520898 62162 0 3 0x82 nanoslp syz-executor.0 16290 487752 1 0 3 0x100083 ttyopn getty 23477 253072 62162 0 3 0x82 nanoslp syz-executor.1 54125 74795 0 0 3 0x14200 bored sosplice 23633 482224 0 0 3 0x14280 nfsidl nfsio 87223 455962 0 0 3 0x14280 nfsidl nfsio 57952 197725 0 0 3 0x14280 nfsidl nfsio 22657 513438 0 0 3 0x14280 nfsidl nfsio 53354 391371 0 0 3 0x14280 nfsidl nfsio 84583 45976 0 0 3 0x14280 nfsidl nfsio 62162 230967 12014 0 3 0x82 kqread syz-fuzzer 62162 460600 12014 0 3 0x4000082 thrsleep syz-fuzzer 62162 119680 12014 0 3 0x4000082 thrsleep syz-fuzzer 62162 79129 12014 0 3 0x4000082 thrsleep syz-fuzzer 62162 354559 12014 0 3 0x4000082 thrsleep syz-fuzzer 62162 474395 12014 0 3 0x4000082 thrsleep syz-fuzzer 62162 19930 12014 0 3 0x4000082 thrsleep syz-fuzzer 62162 437179 12014 0 3 0x4000082 thrsleep syz-fuzzer 62162 401059 12014 0 3 0x4000082 thrsleep syz-fuzzer 12014 500155 74247 0 3 0x10008a sigsusp ksh 74247 404637 92517 0 3 0x9a kqread sshd 92517 469340 1 0 3 0x88 kqread sshd 65824 31634 49391 74 3 0x1100092 bpf pflogd 49391 148228 1 0 3 0x80 netio pflogd 68049 160691 57521 73 3 0x1100090 kqread syslogd 57521 352222 1 0 3 0x100082 netio syslogd 35009 215385 1 0 3 0x100080 kqread resolvd 57381 151832 2450 77 3 0x100092 kqread dhcpleased 97234 515391 2450 77 3 0x100092 kqread dhcpleased 2450 370726 1 0 3 0x80 kqread dhcpleased 56347 229276 0 0 3 0x14200 bored smr 65483 100865 0 0 2 0x14200 zerothread 31315 158421 0 0 3 0x14200 aiodoned aiodoned 2472 238087 0 0 3 0x14200 syncer update 94921 74774 0 0 3 0x14200 cleaner cleaner 3926 252225 0 0 3 0x14200 reaper reaper 42659 416713 0 0 3 0x14200 pgdaemon pagedaemon 43264 420797 0 0 3 0x14200 bored viomb 46111 461027 0 0 3 0x40014200 acpi0 acpi0 4406 195472 0 0 7 0x40014200 idle1 88460 488510 0 0 3 0x14200 bored softnet 87491 366744 0 0 3 0x14200 bored systqmp 29947 343600 0 0 3 0x14200 bored systq 59652 9745 0 0 3 0x40014200 bored softclock 82345 78501 0 0 3 0x40014200 idle0 1 448824 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 28614 (syz-executor.2) thread 0xffff800021181ce0 (95468) exclusive rwlock vcpu r = 0 (0xffff80002e377bb0) #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 10228 6510K 6966K 78643K 27747 0 pcb 78 24K 25K 78643K 1507 0 rtable 236 18K 26K 78643K 3566 0 ifaddr 103 23K 27K 78643K 1900 0 sysctl 2 0K 2K 78643K 10 0 counters 58 35K 36K 78643K 290 0 ioctlops 0 0K 6K 78643K 5287 0 iov 0 0K 32K 78643K 1260 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1392 87K 87K 78643K 8538 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 131 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 2156 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 17 61K 89K 78643K 11785 0 sigio 1 0K 0K 78643K 663 0 proc 79 99K 124K 78643K 2058 0 subproc 104 6K 6K 78643K 619 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 553 0 in_multi 97 6K 7K 78643K 1174 0 ether_multi 2 0K 0K 78643K 104 0 mrt 3 0K 0K 78643K 61 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 277 1235K 1235K 78643K 277 0 exec 0 0K 2K 78643K 2601 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 567 752K 752K 78643K 150277 0 UVM aobj 131 4K 4K 78643K 135 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 576 0 NDP 15 0K 2K 78643K 325 0 temp 155 4733K 4799K 78643K 71519 0 kqueue 12 18K 30K 78643K 1000 0 SYN cache 2 8K 16K 78643K 3 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 838 0 835 14 13 1 3 0 8 0 rtentry 112 879 0 782 4 0 4 4 0 8 0 unpcb 136 7396 0 7381 75 72 3 8 0 8 2 syncache 296 35 0 35 11 11 0 1 0 8 0 tcpqe 32 403 57 403 1 1 0 1 0 8 0 tcpcb 736 24755 0 24575 563 546 17 44 0 8 0 arp 120 110 0 94 1 0 1 1 0 8 0 inpcb 304 33415 0 33272 258 246 12 22 0 8 1 rttmr 72 18 0 18 6 6 0 1 0 8 0 nd6 48 254 0 228 1 0 1 1 0 8 0 pkpcb 40 85 0 85 7 7 0 1 0 8 0 kcovpl 48 47 0 39 1 0 1 1 0 8 0 ppxss 1248 54 0 54 12 12 0 1 0 8 0 pfstscr 40 34 0 34 6 6 0 1 0 8 0 pffrag 232 41 0 40 5 4 1 1 0 482 0 pffrnode 88 41 0 40 5 4 1 1 0 8 0 pffrent 40 308 0 307 5 4 1 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 457 0 453 2 1 1 2 0 8 0 pftag 88 26 0 17 1 0 1 1 0 8 0 pfqueue 264 6 0 6 2 2 0 1 0 8 0 pfstitem 24 52 0 50 1 0 1 1 0 8 0 pfstkey 112 230 0 228 1 0 1 1 0 8 0 pfstate 320 136 0 134 2 1 1 2 0 8 0 pfrule 1360 1120 0 1110 11 10 1 8 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 3401 0 2891 53 19 34 34 0 8 0 art_table 32 3402 0 2891 5 0 5 5 0 8 0 art_node 16 806 0 718 1 0 1 1 0 8 0 sysvmsgpl 40 120 0 112 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 2154 0 2144 1 0 1 1 0 8 0 shmpl 112 132 0 4 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 18234 0 16770 92 0 92 92 0 8 0 ffsino 272 18234 0 16770 98 0 98 98 0 8 0 nchpl 144 33096 0 31471 63 1 62 63 0 8 0 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 224 5926 0 0 349 0 349 349 0 8 0 namei 1024 121375 0 121375 5 4 1 2 0 8 1 percpumem 16 157 0 116 1 0 1 1 0 8 0 vcpupl 2048 119 0 1 15 0 15 15 0 8 0 vmpool 560 129 0 11 9 0 9 9 0 8 0 pfiaddrpl 120 162 0 156 2 1 1 2 0 8 0 scsiplug 72 3 0 3 1 1 0 1 0 8 0 scxspl 216 92767 0 92767 20 19 1 8 0 8 1 plimitpl 152 1062 0 1046 1 0 1 1 0 8 0 sigapl 424 12042 0 11990 8 1 7 8 0 8 0 futexpl 64 117420 0 117412 4 3 1 1 0 8 0 knotepl 120 590 0 0 8 0 8 8 0 8 0 kqueuepl 216 2914 0 2906 56 55 1 5 0 8 0 pipepl 336 4080 0 4051 104 99 5 13 0 8 2 fdescpl 496 12005 0 11975 6 2 4 5 0 8 0 filepl 152 110075 0 109699 164 146 18 23 0 8 3 lockfpl 104 2604 0 2601 6 4 2 2 0 8 1 lockfspl 48 723 0 720 1 0 1 1 0 8 0 sessionpl 144 64 0 47 1 0 1 1 0 8 0 pgrppl 48 112 0 95 1 0 1 1 0 8 0 ucredpl 96 17465 0 17453 1 0 1 1 0 8 0 zombiepl 144 11991 0 11990 1 0 1 1 0 8 0 processpl 1064 12042 0 11990 5 0 5 5 0 8 0 procpl 672 33870 0 33801 18 11 7 8 0 8 0 srpgc 96 42 0 42 13 13 0 1 0 8 0 sosppl 168 94 0 94 19 18 1 1 0 8 1 sockpl 480 41741 0 41579 781 760 21 38 0 8 0 mcl64k 65536 30 0 0 4 2 2 3 0 8 0 mcl16k 16384 22 0 0 3 1 2 3 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 22 0 0 2 0 2 2 0 8 0 mcl8k 8192 33 0 0 4 2 2 3 0 8 0 mcl4k 4096 33 0 0 3 0 3 3 0 8 0 mcl2k2 2112 12 0 0 1 0 1 1 0 8 0 mcl2k 2048 301 0 0 26 3 23 26 0 8 0 mtagpl 96 820 0 0 13 0 13 13 0 8 0 mbufpl 256 1344 0 0 66 0 66 66 0 8 0 bufpl 288 19474 0 13139 453 0 453 453 0 8 0 anonpl 24 4773562 0 4747310 501 300 201 228 0 186 13 amapchunkpl 152 369082 0 367808 131 80 51 78 0 158 1 amappl16 200 111208 0 110477 224 177 47 75 0 8 0 amappl15 192 2749 0 2743 1 0 1 1 0 8 0 amappl14 184 1186 0 1179 1 0 1 1 0 8 0 amappl13 176 834 0 831 1 0 1 1 0 8 0 amappl12 168 1693 0 1687 1 0 1 1 0 8 0 amappl11 160 857 0 840 1 0 1 1 0 8 0 amappl10 152 1173 0 1162 1 0 1 1 0 8 0 amappl9 144 3703 0 3697 1 0 1 1 0 8 0 amappl8 136 3017 0 2881 5 0 5 5 0 8 0 amappl7 128 1684 0 1667 1 0 1 1 0 8 0 amappl6 120 3532 0 3504 4 3 1 2 0 8 0 amappl5 112 10121 0 10101 1 0 1 1 0 8 0 amappl4 104 4436 0 4401 2 1 1 2 0 8 0 amappl3 96 3046 0 3034 1 0 1 1 0 8 0 amappl2 88 2351 0 2290 3 1 2 3 0 8 0 amappl1 80 217485 0 216870 28 14 14 19 0 8 0 amappl 88 148826 0 148476 10 1 9 9 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 134 0 4 3 0 3 3 0 8 0 uaddrrnd 24 12134 0 11986 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 12134 0 11986 1 0 1 1 0 8 0 vmmpekpl 168 95732 0 95655 4 0 4 4 0 8 0 vmmpepl 168 1175588 0 1172463 318 168 150 175 0 357 0 vmsppl 368 12133 0 11986 15 1 14 14 0 8 0 rwobjpl 56 347497 0 339537 129 13 116 121 0 8 0 pdppl 4096 24275 0 24090 565 378 187 187 0 8 2 pvpl 32 7147394 0 7122713 702 420 282 324 0 265 36 pmappl 248 12133 0 11986 11 1 10 10 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 2087 0 1067 30 0 30 30 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace done_flush() at done_flush+0x38 vm_run(ffff80002d545fe0) at vm_run+0x304 sys/arch/amd64/amd64/vmm.c:4297 vmmioctl(a00,c0205602,ffff80002d545fe0,1,ffff800021181ce0) at vmmioctl+0x8f sys/arch/amd64/amd64/vmm.c:492 VOP_IOCTL(fffffd806e887d70,c0205602,ffff80002d545fe0,1,fffffd807f7d8720,ffff800021181ce0) at VOP_IOCTL+0x96 sys/kern/vfs_vops.c:264 vn_ioctl(fffffd8064b3f150,c0205602,ffff80002d545fe0,ffff800021181ce0) at vn_ioctl+0xbc sys/kern/vfs_vnops.c:531 sys_ioctl(ffff800021181ce0,ffff80002d5460f8,ffff80002d546150) at sys_ioctl+0x4a2 syscall(ffff80002d5461c0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002d5461c0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa60dbbcc050, 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