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(ffff80002bab0810) at vm_run+0x169 vmmioctl(a00,c0205602,ffff80002bab0810,1,ffff80002f0bd800) at vmmioctl+0x2a1 sys/dev/vmm/vmm.c:242 VOP_IOCTL(fffffd806e027440,c0205602,ffff80002bab0810,1,fffffd807f7d72d8,ffff80002f0bd800) at VOP_IOCTL+0x97 sys/kern/vfs_vops.c:264 vn_ioctl(fffffd8071ad0db0,c0205602,ffff80002bab0810,ffff80002f0bd800) at vn_ioctl+0xc0 sys/kern/vfs_vnops.c:525 sys_ioctl(ffff80002f0bd800,ffff80002bab09f0,ffff80002bab0940) at sys_ioctl+0x4a2 syscall(ffff80002bab09f0) at syscall+0x5ae mi_syscall sys/sys/syscall_mi.h:183 [inline] syscall(ffff80002bab09f0) at syscall+0x5ae sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x30ecc647ac0, count: -8 ddb{0}> show registers rdi 0x6c14 __ALIGN_SIZE+0x5c14 rsi 0xffff8000373bbe50 rbp 0xffff80002bab0560 rbx 0x756e6547 rdx 0x49656e69 rcx 0x6c65746e rax 0x100000000000 r8 0 r9 0x10000 __ALIGN_SIZE+0xf000 r10 0xfd91ffe7f51585d7 r11 0x39fb442756947168 r12 0xffffffff82d3bff0 cpu_info_full_primary+0x1ff0 r13 0x246 r14 0xffff8000373bb800 r15 0xffff80002bab0810 rip 0xffffffff8138173d done_flush+0x38 cs 0x8 rflags 0x10046 __ALIGN_SIZE+0xf046 rsp 0xffff80002bab03f6 ss 0x10 done_flush+0x38: movl %eax,%dr6 ddb{0}> show proc PROC (syz-executor.3) tid=519005 pid=14505 tcnt=2 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=81, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 forw=0xffffffffffffffff, list=0xffff80002f0bdaa8,0xffff80002a172808 process=0xffff8000373a6c88 user=0xffff80002baab000, vmspace=0xfffffd807f003700 estcpu=31, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 3400 102708 52341 0 2 0 syz-executor.2 3400 282877 52341 0 3 0x4000080 fsleep syz-executor.2 3400 422726 52341 0 2 0x4000000 syz-executor.2 14505 290071 18288 0 7 0 syz-executor.3 *14505 519005 18288 0 7 0x4000000 syz-executor.3 61245 64394 96771 0 2 0 syz-executor.4 61245 12834 96771 0 2 0x4000000 syz-executor.4 99015 214797 49831 0 2 0 syz-executor.0 99015 209408 49831 0 2 0x4000000 syz-executor.0 53805 179328 57558 0 2 0 syz-executor.6 53805 121458 57558 0 3 0x4000080 kqread syz-executor.6 44838 466009 72571 0 3 0x80 nanoslp syz-executor.1 44838 303630 72571 0 2 0x4000000 syz-executor.1 44838 264163 72571 0 3 0x4000080 fsleep syz-executor.1 96771 513120 28698 0 2 0x482 syz-executor.4 90705 72630 28698 0 2 0x2 syz-executor.7 72571 404439 28698 0 3 0x82 nanoslp syz-executor.1 49831 57143 28698 0 2 0x2 syz-executor.0 57558 405008 28698 0 2 0x482 syz-executor.6 14273 275056 0 0 3 0x14200 acct acct 52341 147200 28698 0 2 0x482 syz-executor.2 16769 60485 0 0 3 0x14280 nfsidl nfsio 57229 261113 0 0 3 0x14280 nfsidl nfsio 86001 260693 0 0 3 0x14280 nfsidl nfsio 41157 476952 0 0 3 0x14280 nfsidl nfsio 6023 80528 0 0 3 0x14280 nfsidl nfsio 44099 361964 0 0 3 0x14280 nfsidl nfsio 6543 431356 0 0 3 0x14280 nfsidl nfsio 37032 256334 0 0 3 0x14280 nfsidl nfsio 86367 443156 0 0 3 0x14280 nfsidl nfsio 49586 60993 0 0 3 0x14280 nfsidl nfsio 6855 166162 0 0 3 0x14280 nfsidl nfsio 25077 449482 0 0 3 0x14280 nfsidl nfsio 13754 423015 0 0 3 0x14280 nfsidl nfsio 88303 159949 0 0 3 0x14280 nfsidl nfsio 43107 394498 0 0 3 0x14280 nfsidl nfsio 6516 256261 0 0 3 0x14280 nfsidl nfsio 53764 518619 0 0 3 0x14280 nfsidl nfsio 60452 150787 0 0 3 0x14280 nfsidl nfsio 79954 410639 0 0 3 0x14280 nfsidl nfsio 60350 13998 0 0 3 0x14280 nfsidl nfsio 2183 186981 0 0 3 0x14200 bored sosplice 93167 255489 28698 0 3 0x82 nanoslp syz-executor.5 18288 156010 28698 0 3 0x82 nanoslp syz-executor.3 28698 486924 12389 0 3 0x2000082 wait syz-fuzzer 28698 185977 12389 0 3 0x6000082 nanoslp syz-fuzzer 28698 41701 12389 0 3 0x6000082 wait syz-fuzzer 28698 113668 12389 0 3 0x6000082 thrsleep syz-fuzzer 28698 342796 12389 0 3 0x6000082 wait syz-fuzzer 28698 90269 12389 0 3 0x6000082 wait syz-fuzzer 28698 96534 12389 0 3 0x6000082 thrsleep syz-fuzzer 28698 351363 12389 0 3 0x6000082 wait syz-fuzzer 28698 22394 12389 0 3 0x6000082 thrsleep syz-fuzzer 28698 129500 12389 0 3 0x6000082 thrsleep syz-fuzzer 28698 251716 12389 0 3 0x6000082 wait syz-fuzzer 28698 288501 12389 0 3 0x6000082 wait syz-fuzzer 28698 253257 12389 0 3 0x6000082 thrsleep syz-fuzzer 28698 396549 12389 0 3 0x6000082 wait syz-fuzzer 28698 23776 12389 0 3 0x6000082 kqread syz-fuzzer 12389 402171 16515 0 3 0x10008a sigsusp ksh 16515 50501 70636 0 3 0x9a kqread sshd 17516 512795 1 0 3 0x100083 ttyin getty 70636 447330 1 0 3 0x88 kqread sshd 39689 313976 64122 74 3 0x1100092 bpf pflogd 64122 125828 1 0 3 0x80 netio pflogd 65817 415357 80849 73 3 0x1100090 kqread syslogd 80849 334123 1 0 3 0x100082 netio syslogd 52975 103913 1 0 3 0x100080 kqread resolvd 1262 235059 70004 77 3 0x100092 kqread dhcpleased 99486 115195 70004 77 3 0x100092 kqread dhcpleased 70004 241368 1 0 3 0x80 kqread dhcpleased 55808 272068 0 0 3 0x14200 bored smr 5429 5972 0 0 2 0x14200 zerothread 60190 159104 0 0 3 0x14200 aiodoned aiodoned 93166 378041 0 0 3 0x14200 syncer update 51570 457459 0 0 3 0x14200 cleaner cleaner 19160 376458 0 0 3 0x14200 reaper reaper 35730 514395 0 0 3 0x14200 pgdaemon pagedaemon 73514 433430 0 0 3 0x14200 bored viomb 82635 493968 0 0 3 0x40014200 acpi0 acpi0 84757 29402 0 0 3 0x40014200 idle1 70207 372188 0 0 3 0x14200 bored softnet3 12538 385690 0 0 3 0x14200 bored softnet2 77570 157645 0 0 3 0x14200 bored softnet1 96327 481590 0 0 3 0x14200 bored softnet0 66180 459155 0 0 3 0x14200 bored systqmp 64848 234883 0 0 3 0x14200 bored systq 48207 297348 0 0 3 0x14200 tmoslp softclockmp 77357 336549 0 0 3 0x40014200 tmoslp softclock 91011 391581 0 0 3 0x40014200 idle0 1 403782 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 14505 (syz-executor.3) thread 0xffff80002f0bd800 (519005) exclusive rwlock vcpu r = 0 (0xffff8000373bbbb8) #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 Process 90705 (syz-executor.7) thread 0xffff80002f0bdff8 (72630) exclusive rrwlock inode r = 0 (0xfffffd806625d918) #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 vget+0x200 sys/kern/vfs_subr.c:676 #6 ufs_ihashget+0x121 sys/ufs/ufs/ufs_ihash.c:119 #7 ffs_vget+0x7c sys/ufs/ffs/ffs_vfsops.c:1201 #8 ufs_lookup+0x1323 sys/ufs/ufs/ufs_lookup.c:478 #9 VOP_LOOKUP+0x5c sys/kern/vfs_vops.c:85 #10 vfs_lookup+0x6e2 sys/kern/vfs_lookup.c:566 #11 namei+0x55a sys/kern/vfs_lookup.c:250 #12 dounlinkat+0x9d sys/kern/vfs_syscalls.c:1847 #13 syscall+0x533 mi_syscall sys/sys/syscall_mi.h:183 [inline] #13 syscall+0x533 sys/arch/amd64/amd64/trap.c:577 #14 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806f102920) #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 vget+0x200 sys/kern/vfs_subr.c:676 #6 cache_lookup+0x2b4 sys/kern/vfs_cache.c:222 #7 ufs_lookup+0x1ac sys/ufs/ufs/ufs_lookup.c:160 #8 VOP_LOOKUP+0x5c sys/kern/vfs_vops.c:85 #9 vfs_lookup+0x6e2 sys/kern/vfs_lookup.c:566 #10 namei+0x55a sys/kern/vfs_lookup.c:250 #11 dounlinkat+0x9d sys/kern/vfs_syscalls.c:1847 #12 syscall+0x533 mi_syscall sys/sys/syscall_mi.h:183 [inline] #12 syscall+0x533 sys/arch/amd64/amd64/trap.c:577 #13 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10189 6491K 7539K 166960K 14229 0 pcb 15 14K 15K 166960K 227 0 rtable 219 14K 15K 166960K 653 0 pf 32 9K 10K 166960K 99 0 ifaddr 42 15K 15K 166960K 97 0 ifgroup 55 2K 2K 166960K 143 0 sysctl 3 0K 0K 166960K 3 0 counters 64 36K 36K 166960K 112 0 ioctlops 0 0K 4K 166960K 1530 0 iov 0 0K 28K 166960K 264 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1411 88K 89K 166960K 2346 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 16 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 201 0 dirhash 12 2K 2K 166960K 21 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 16 57K 89K 166960K 2139 0 sigio 0 0K 0K 166960K 64 0 proc 69 91K 128K 166960K 776 0 subproc 104 6K 6K 166960K 195 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 75 0 in_multi 88 6K 7K 166960K 204 0 ether_multi 1 0K 0K 166960K 8 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 67 307K 307K 166960K 67 0 exec 0 0K 1K 166960K 854 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 371 89K 99K 166960K 23153 0 UVM aobj 110 5K 5K 166960K 110 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 94 0 NDP 12 0K 2K 166960K 66 0 temp 74 6772K 6891K 166960K 29575 0 kqueue 13 20K 24K 166960K 148 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 145 0 142 3 2 1 3 0 8 0 rtentry 112 220 0 119 4 0 4 4 0 8 0 unpcb 144 1444 0 1425 24 22 2 10 0 8 1 syncache 336 17 0 17 5 5 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 127 0 127 3 3 0 1 0 8 0 tcpcb 808 726 0 709 28 19 9 9 0 8 6 arp 120 43 0 25 1 0 1 1 0 8 0 inpcb 392 1819 0 1798 49 40 9 14 0 8 5 nd6 136 48 0 27 1 0 1 1 0 8 0 pkpcb 40 8 0 8 2 2 0 1 0 8 0 kcovpl 48 15 0 7 1 0 1 1 0 8 0 ppxss 1168 8 0 8 3 3 0 1 0 8 0 pffrag 232 6 0 4 2 1 1 1 0 482 0 pffrnode 88 6 0 4 2 1 1 1 0 8 0 pffrent 40 19 0 17 3 2 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 pfstitem 24 83 0 61 1 0 1 1 0 8 0 pfstkey 128 83 0 61 2 0 2 2 0 8 0 pfstate 376 83 0 61 5 1 4 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 861 0 430 32 5 27 30 0 8 0 art_table 32 862 0 430 4 0 4 4 0 8 0 art_node 16 219 0 127 1 0 1 1 0 8 0 sysvmsgpl 40 10 0 3 1 0 1 1 0 8 0 semapl 112 196 0 186 1 0 1 1 0 8 0 shmpl 112 107 0 0 4 0 4 4 0 8 0 dirhash 1024 23 0 6 3 0 3 3 0 8 0 dino2pl 256 4033 0 2571 92 0 92 92 0 8 0 ffsino 272 4033 0 2571 98 0 98 98 0 8 0 nchpl 144 6948 0 5290 63 0 63 63 0 8 0 uvmvnodes 80 4874 0 0 100 0 100 100 0 8 0 vnodes 216 4874 0 0 271 0 271 271 0 8 0 namei 1024 23322 0 23322 2 1 1 2 0 8 1 percpumem 16 70 0 24 1 0 1 1 0 8 0 vcpupl 2048 7 0 0 1 0 1 1 0 8 0 vmpool 696 14 0 7 1 0 1 1 0 8 0 kstatmem 264 72 0 48 2 0 2 2 0 8 0 scxspl 216 21260 0 21260 13 12 1 8 1 8 1 plimitpl 152 350 0 333 1 0 1 1 0 8 0 sigapl 424 2472 0 2402 10 1 9 9 0 8 0 futexpl 64 16103 0 16101 1 0 1 1 0 8 0 knotepl 120 118 0 0 4 0 4 4 0 8 0 kqueuepl 216 413 0 404 11 10 1 5 0 8 0 pipepl 320 586 0 557 16 10 6 8 0 8 3 fdescpl 496 2432 0 2403 8 3 5 5 0 8 1 filepl 152 13628 0 13378 42 27 15 19 0 8 4 lockfpl 104 450 0 447 1 0 1 1 0 8 0 lockfspl 48 159 0 156 1 0 1 1 0 8 0 sessionpl 144 31 0 14 1 0 1 1 0 8 0 pgrppl 48 105 0 88 1 0 1 1 0 8 0 ucredpl 104 1693 0 1681 1 0 1 1 0 8 0 zombiepl 144 2403 0 2402 1 0 1 1 0 8 0 processpl 1136 2472 0 2402 6 0 6 6 0 8 0 procpl 680 5981 0 5889 9 0 9 9 0 8 0 srpgc 96 10 0 10 4 4 0 1 0 8 0 sosppl 168 32 0 32 6 6 0 1 0 8 0 sockpl 584 3416 0 3374 55 47 8 20 0 8 4 mcl64k 65536 9 0 0 2 0 2 2 0 8 0 mcl16k 16384 8 0 0 1 0 1 1 0 8 0 mcl12k 12288 12 0 0 2 0 2 2 0 8 0 mcl9k 9216 5 0 0 1 0 1 1 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 262 0 0 33 0 33 33 0 8 0 mtagpl 96 241 0 0 6 0 6 6 0 8 0 mbufpl 256 1123 0 0 66 0 66 66 0 8 0 bufpl 280 7150 0 829 452 0 452 452 0 8 0 anonpl 24 371024 0 357810 112 21 91 110 0 186 0 amapchunkpl 152 73239 0 72349 46 7 39 41 0 158 1 amappl16 200 8692 0 8274 35 9 26 34 0 8 0 amappl15 192 6 0 6 1 1 0 1 0 8 0 amappl14 184 179 0 164 2 1 1 2 0 8 0 amappl13 176 20 0 20 1 1 0 1 0 8 0 amappl12 168 3219 0 3186 3 1 2 2 0 8 0 amappl11 160 68 0 53 1 0 1 1 0 8 0 amappl10 152 48 0 33 1 0 1 1 0 8 0 amappl9 144 193 0 191 1 0 1 1 0 8 0 amappl8 136 284 0 215 3 0 3 3 0 8 0 amappl7 128 266 0 242 2 0 2 2 0 8 0 amappl6 120 388 0 377 1 0 1 1 0 8 0 amappl5 112 166 0 155 1 0 1 1 0 8 0 amappl4 104 517 0 490 2 1 1 2 0 8 0 amappl3 96 14677 0 14582 3 0 3 3 0 8 0 amappl2 88 2990 0 2914 3 1 2 3 0 8 0 amappl1 80 17502 0 16943 24 11 13 23 0 8 0 amappl 88 22479 0 22240 6 0 6 6 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 109 0 0 2 0 2 2 0 8 0 uaddrrnd 24 2446 0 2410 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2446 0 2410 1 0 1 1 0 8 0 vmmpekpl 168 23500 0 23426 4 0 4 4 0 8 0 vmmpepl 168 166410 0 164060 178 50 128 137 0 357 18 vmsppl 448 2445 0 2410 6 1 5 5 0 8 0 rwobjpl 56 51460 0 44946 95 3 92 92 0 8 0 pdppl 4096 4899 0 4827 208 132 76 81 0 8 4 pvpl 32 44269 0 0 358 0 358 358 0 265 0 pmappl 248 2445 0 2410 3 0 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 654 0 215 13 0 13 13 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace done_flush() at done_flush+0x38 vm_run(ffff80002bab0810) at vm_run+0x169 vmmioctl(a00,c0205602,ffff80002bab0810,1,ffff80002f0bd800) at vmmioctl+0x2a1 sys/dev/vmm/vmm.c:242 VOP_IOCTL(fffffd806e027440,c0205602,ffff80002bab0810,1,fffffd807f7d72d8,ffff80002f0bd800) at VOP_IOCTL+0x97 sys/kern/vfs_vops.c:264 vn_ioctl(fffffd8071ad0db0,c0205602,ffff80002bab0810,ffff80002f0bd800) at vn_ioctl+0xc0 sys/kern/vfs_vnops.c:525 sys_ioctl(ffff80002f0bd800,ffff80002bab09f0,ffff80002bab0940) at sys_ioctl+0x4a2 syscall(ffff80002bab09f0) at syscall+0x5ae mi_syscall sys/sys/syscall_mi.h:183 [inline] syscall(ffff80002bab09f0) at syscall+0x5ae sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x30ecc647ac0, 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 end of kernel end trace frame: 0x7cfb65b448d0, count: -3