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(ffff80002e4f39b0) at vm_run+0x215 sys/arch/amd64/amd64/vmm.c:4564 vmmioctl(a00,c0205602,ffff80002e4f39b0,1,ffff80002e58f268) at vmmioctl+0x192 sys/arch/amd64/amd64/vmm.c:685 VOP_IOCTL(fffffd806e16bd88,c0205602,ffff80002e4f39b0,1,fffffd807f7d7750,ffff80002e58f268) at VOP_IOCTL+0x96 sys/kern/vfs_vops.c:264 vn_ioctl(fffffd806a817b68,c0205602,ffff80002e4f39b0,ffff80002e58f268) at vn_ioctl+0xbc sys/kern/vfs_vnops.c:525 sys_ioctl(ffff80002e58f268,ffff80002e4f3ac8,ffff80002e4f3b10) at sys_ioctl+0x4a2 syscall(ffff80002e4f3b90) at syscall+0x4c3 mi_syscall sys/sys/syscall_mi.h:101 [inline] syscall(ffff80002e4f3b90) at syscall+0x4c3 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xfd1ab34dbf0, count: -8 ddb{0}> show registers rdi 0x6c14 __ALIGN_SIZE+0x5c14 rsi 0xffff80002e546e48 rbp 0xffff80002e4f3700 rbx 0x756e6547 rdx 0x49656e69 rcx 0x6c65746e rax 0x8000000000000001 r8 0 r9 0x10000 __ALIGN_SIZE+0xf000 r10 0x11367f5e5bfdd38d r11 0x5f105b1ef0521b86 r12 0xffff80002e546ba0 r13 0xffffffff8291cff0 cpu_info_full_primary+0x1ff0 r14 0xffff80002e546800 r15 0xffff80002e4f39b0 rip 0xffffffff81ad1740 done_flush+0x38 cs 0x8 rflags 0x10046 __ALIGN_SIZE+0xf046 rsp 0xffff80002e4f3556 ss 0x10 done_flush+0x38: movl %eax,%dr6 ddb{0}> show proc PROC (syz-executor.3) pid=443363 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff80002e58ed28,0xffff80002e58e558 process=0xffff80002e591d38 user=0xffff80002e4ee000, vmspace=0xfffffd806a93f010 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 99706 333993 75527 0 7 0 syz-executor.6 99706 392870 75527 0 2 0x4000000 syz-executor.6 83833 311225 83773 0 2 0 syz-executor.0 83833 409593 83773 0 3 0x4000080 fsleep syz-executor.0 6856 378657 71727 0 2 0 syz-executor.3 * 6856 443363 71727 0 7 0x4000000 syz-executor.3 70793 180248 22147 0 2 0 syz-executor.2 70793 102010 22147 0 3 0x4000080 fsleep syz-executor.2 5211 407900 83055 0 2 0 syz-executor.4 5211 85602 83055 0 3 0x4000080 fsleep syz-executor.4 43351 322660 35214 0 2 0 syz-executor.7 43351 341904 35214 0 3 0x4000080 fsleep syz-executor.7 83773 344581 81545 0 3 0x82 nanoslp syz-executor.0 65731 374987 81545 0 3 0x82 piperd syz-executor.5 22147 61274 81545 0 3 0x82 nanoslp syz-executor.2 71727 314218 81545 0 3 0x82 nanoslp syz-executor.3 94811 214427 0 0 3 0x14280 nfsidl nfsio 89083 77739 0 0 3 0x14280 nfsidl nfsio 96938 74533 0 0 3 0x14280 nfsidl nfsio 43227 220687 0 0 3 0x14280 nfsidl nfsio 97228 384071 0 0 3 0x14280 nfsidl nfsio 55404 41662 0 0 3 0x14280 nfsidl nfsio 61363 414785 0 0 3 0x14280 nfsidl nfsio 43638 354605 0 0 3 0x14280 nfsidl nfsio 27383 409933 0 0 3 0x14280 nfsidl nfsio 3468 258826 0 0 3 0x14280 nfsidl nfsio 69148 452079 0 0 3 0x14280 nfsidl nfsio 874 136153 0 0 3 0x14280 nfsidl nfsio 76813 190164 0 0 3 0x14280 nfsidl nfsio 3925 17720 0 0 3 0x14280 nfsidl nfsio 515 102910 0 0 3 0x14280 nfsidl nfsio 83480 241820 0 0 3 0x14280 nfsidl nfsio 74450 413786 0 0 3 0x14280 nfsidl nfsio 9073 36118 0 0 3 0x14280 nfsidl nfsio 52270 511680 0 0 3 0x14280 nfsidl nfsio 92206 379067 0 0 3 0x14280 nfsidl nfsio 56942 286855 0 0 3 0x14200 bored sosplice 35214 380306 81545 0 3 0x82 nanoslp syz-executor.7 75527 427596 81545 0 3 0x82 nanoslp syz-executor.6 83055 87969 81545 0 3 0x82 nanoslp syz-executor.4 10687 75917 81545 0 3 0x82 piperd syz-executor.1 81545 34890 31605 0 3 0x82 wait syz-fuzzer 81545 81833 31605 0 3 0x4000082 thrsleep syz-fuzzer 81545 172060 31605 0 3 0x4000082 wait syz-fuzzer 81545 228567 31605 0 3 0x4000082 thrsleep syz-fuzzer 81545 393130 31605 0 3 0x4000082 thrsleep syz-fuzzer 81545 110465 31605 0 3 0x4000082 kqread syz-fuzzer 81545 182981 31605 0 3 0x4000082 thrsleep syz-fuzzer 81545 178476 31605 0 3 0x4000082 thrsleep syz-fuzzer 81545 488202 31605 0 3 0x4000082 thrsleep syz-fuzzer 81545 221399 31605 0 3 0x4000082 wait syz-fuzzer 81545 272637 31605 0 3 0x4000082 wait syz-fuzzer 81545 226970 31605 0 3 0x4000082 thrsleep syz-fuzzer 81545 186905 31605 0 3 0x4000082 wait syz-fuzzer 81545 92030 31605 0 3 0x4000082 wait syz-fuzzer 81545 17662 31605 0 3 0x4000082 wait syz-fuzzer 81545 151566 31605 0 3 0x4000082 wait syz-fuzzer 31605 248798 50574 0 3 0x10008a sigsusp ksh 50574 217493 78374 0 3 0x9a kqread sshd 86677 109258 1 0 3 0x100083 ttyin getty 78374 237743 1 0 3 0x88 kqread sshd 57467 304792 82331 74 3 0x1100092 bpf pflogd 82331 168801 1 0 3 0x80 netio pflogd 700 139369 28057 73 3 0x1100090 kqread syslogd 28057 299879 1 0 3 0x100082 netio syslogd 44585 136764 1 0 3 0x100080 kqread resolvd 29360 503094 61732 77 3 0x100092 kqread dhcpleased 12463 51063 61732 77 3 0x100092 kqread dhcpleased 61732 248102 1 0 3 0x80 kqread dhcpleased 21970 285417 0 0 3 0x14200 bored smr 43794 394956 0 0 2 0x14200 zerothread 34648 156443 0 0 3 0x14200 aiodoned aiodoned 90054 302763 0 0 3 0x14200 syncer update 73147 286688 0 0 3 0x14200 cleaner cleaner 77724 381139 0 0 3 0x14200 reaper reaper 91392 184972 0 0 3 0x14200 pgdaemon pagedaemon 67327 343450 0 0 3 0x14200 bored viomb 42474 117898 0 0 3 0x40014200 acpi0 acpi0 8088 296068 0 0 3 0x40014200 idle1 91541 355119 0 0 3 0x14200 bored softnet 91536 300480 0 0 3 0x14200 bored softnet 55850 315127 0 0 3 0x14200 bored softnet 79621 203204 0 0 3 0x14200 bored softnet 17037 172820 0 0 3 0x14200 bored systqmp 36933 203752 0 0 3 0x14200 bored systq 66807 199697 0 0 3 0x40014200 bored softclock 56094 201377 0 0 3 0x40014200 idle0 1 338019 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 6856 (syz-executor.3) thread 0xffff80002e58f268 (443363) exclusive rwlock vcpu r = 0 (0xffff80002e546bb0) #0 witness_lock+0x44d #1 vm_run+0x100 sys/arch/amd64/amd64/vmm.c:4538 #2 vmmioctl+0x192 sys/arch/amd64/amd64/vmm.c:685 #3 VOP_IOCTL+0x96 sys/kern/vfs_vops.c:264 #4 vn_ioctl+0xbc sys/kern/vfs_vnops.c:525 #5 sys_ioctl+0x4a2 #6 syscall+0x4c3 mi_syscall sys/sys/syscall_mi.h:101 [inline] #6 syscall+0x4c3 sys/arch/amd64/amd64/trap.c:585 #7 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10192 6549K 6751K 78643K 19429 0 pcb 13 12K 14K 78643K 566 0 rtable 224 8K 11K 78643K 1390 0 ifaddr 87 18K 20K 78643K 439 0 sysctl 2 0K 0K 78643K 2 0 counters 54 35K 35K 78643K 80 0 ioctlops 0 0K 5K 78643K 26137 0 iov 0 0K 16K 78643K 260 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1336 83K 84K 78643K 2087 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 51 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 320 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 16 57K 97K 78643K 12294 0 sigio 0 0K 0K 78643K 1075 0 proc 70 91K 140K 78643K 908 0 subproc 104 6K 6K 78643K 208 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 153 0 in_multi 92 6K 7K 78643K 200 0 ether_multi 1 0K 0K 78643K 7 0 mrt 1 0K 0K 78643K 8 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 49 228K 228K 78643K 49 0 exec 0 0K 2K 78643K 1103 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 8 62K 64K 78643K 10 0 UVM amap 350 219K 264K 78643K 68261 0 UVM aobj 131 4K 4K 78643K 134 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 NDP 11 0K 2K 78643K 56 0 temp 125 4734K 4802K 78643K 58751 0 kqueue 12 18K 24K 78643K 471 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 125 0 122 2 1 1 2 0 8 0 rtentry 112 201 0 102 4 0 4 4 0 8 0 unpcb 144 1361 0 1346 20 18 2 10 0 8 1 syncache 296 13 0 13 2 2 0 1 0 8 0 tcpqe 32 418 0 418 3 3 0 1 0 8 0 tcpcb 768 587 0 582 39 27 12 14 0 8 11 arp 120 34 0 18 1 0 1 1 0 8 0 inpcb 368 1394 0 1387 54 45 9 13 0 8 8 nd6 48 48 0 27 1 0 1 1 0 8 0 pkpcb 40 4 0 4 1 1 0 1 0 8 0 kcovpl 48 16 0 8 1 0 1 1 0 8 0 ppxss 1256 4 0 4 1 1 0 1 0 8 0 pfosfp 40 3172 0 3131 5 4 1 5 0 8 0 pfosfpen 112 3172 0 1936 55 19 36 36 0 8 0 pfrktable 1344 388 0 384 1 0 1 1 0 8 0 pfanchor 1280 1 0 0 1 0 1 1 0 8 0 pftag 88 42 0 39 1 0 1 1 0 8 0 pfstitem 24 27 0 25 1 0 1 1 0 8 0 pfstkey 120 27 0 25 1 0 1 1 0 8 0 pfstate 336 27 0 25 3 2 1 3 0 8 0 pfrule 1360 139 0 125 4 2 2 2 0 8 0 rttmr 136 2 0 2 1 1 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 807 0 396 29 0 29 29 0 8 1 art_table 32 808 0 396 4 0 4 4 0 8 0 art_node 16 200 0 110 1 0 1 1 0 8 0 sysvmsgpl 40 7 0 3 2 1 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 317 0 307 1 0 1 1 0 8 0 shmpl 112 131 0 3 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 14490 0 13037 92 0 92 92 0 8 0 ffsino 272 14490 0 13037 98 0 98 98 0 8 0 nchpl 144 29543 0 27901 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 116855 0 116855 3 2 1 2 0 8 1 percpumem 16 52 0 13 1 0 1 1 0 8 0 vcpupl 2048 18 0 7 2 0 2 2 0 8 0 vmpool 568 18 0 7 2 0 2 2 0 8 0 pfiaddrpl 120 185 0 179 1 0 1 1 0 8 0 kstatmem 264 48 0 26 2 0 2 2 0 8 0 scxspl 216 88431 0 88431 10 9 1 8 0 8 1 plimitpl 152 152 0 136 1 0 1 1 0 8 0 sigapl 424 12642 0 12575 9 1 8 8 0 8 0 futexpl 64 83110 0 83106 1 0 1 1 0 8 0 knotepl 120 317 0 0 8 1 7 8 0 8 0 kqueuepl 216 882 0 873 11 10 1 5 0 8 0 pipepl 320 1927 0 1899 45 40 5 9 0 8 2 fdescpl 496 12564 0 12535 5 1 4 5 0 8 0 filepl 152 73506 0 73227 58 40 18 20 0 8 7 lockfpl 104 1788 0 1786 5 4 1 2 0 8 0 lockfspl 48 572 0 570 1 0 1 1 0 8 0 sessionpl 144 32 0 15 1 0 1 1 0 8 0 pgrppl 48 1128 0 1111 1 0 1 1 0 8 0 ucredpl 104 2211 0 2199 1 0 1 1 0 8 0 zombiepl 144 12575 0 12575 1 0 1 1 0 8 1 processpl 1064 12642 0 12575 5 0 5 5 0 8 0 procpl 672 31570 0 31482 11 2 9 9 0 8 0 srpgc 96 12 0 12 2 1 1 1 0 8 1 sosppl 168 3 0 3 1 0 1 1 0 8 1 sockpl 488 2884 0 2859 115 103 12 33 0 8 8 mcl64k 65536 11 0 0 2 0 2 2 0 8 0 mcl16k 16384 16 0 0 2 0 2 2 0 8 0 mcl12k 12288 25 0 0 2 0 2 2 0 8 0 mcl9k 9216 9 0 0 1 0 1 1 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 25 0 0 3 0 3 3 0 8 0 mcl2k2 2112 13 0 0 1 0 1 1 0 8 0 mcl2k 2048 459 0 0 57 1 56 57 0 8 0 mtagpl 96 197 0 0 5 0 5 5 0 8 0 mbufpl 256 615 0 0 32 0 32 32 0 8 0 bufpl 288 16498 0 10159 453 0 453 453 0 8 0 anonpl 24 2150834 0 2135275 180 60 120 152 0 186 4 amapchunkpl 152 196270 0 195563 46 15 31 41 0 158 0 amappl16 200 28044 0 27450 66 32 34 54 0 8 1 amappl15 192 1551 0 1548 1 0 1 1 0 8 0 amappl14 184 304 0 302 1 0 1 1 0 8 0 amappl13 176 132 0 131 1 0 1 1 0 8 0 amappl12 168 2967 0 2962 1 0 1 1 0 8 0 amappl11 160 4670 0 4642 2 0 2 2 0 8 0 amappl10 152 1594 0 1587 1 0 1 1 0 8 0 amappl9 144 2025 0 2023 1 0 1 1 0 8 0 amappl8 136 857 0 758 4 0 4 4 0 8 0 amappl7 128 173 0 151 1 0 1 1 0 8 0 amappl6 120 1779 0 1759 2 1 1 2 0 8 0 amappl5 112 10712 0 10696 1 0 1 1 0 8 0 amappl4 104 5786 0 5741 2 0 2 2 0 8 0 amappl3 96 38539 0 38476 2 0 2 2 0 8 0 amappl2 88 3804 0 3744 3 1 2 3 0 8 0 amappl1 80 305642 0 304839 23 5 18 23 0 8 0 amappl 88 67557 0 67359 6 1 5 5 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 133 0 3 3 0 3 3 0 8 0 uaddrrnd 24 12582 0 12542 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 12582 0 12542 1 0 1 1 0 8 0 vmmpekpl 168 84194 0 84126 4 0 4 4 0 8 0 vmmpepl 168 1179687 0 1176713 171 27 144 152 0 357 7 vmsppl 368 12581 0 12542 6 1 5 5 0 8 0 rwobjpl 56 282395 0 274502 116 2 114 115 0 8 0 pdppl 4096 25171 0 25095 224 144 80 85 0 8 4 pvpl 32 4181678 0 4161314 308 115 193 265 0 265 12 pmappl 248 12581 0 12542 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1075 0 200 26 0 26 26 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace done_flush() at done_flush+0x38 vm_run(ffff80002e4f39b0) at vm_run+0x215 sys/arch/amd64/amd64/vmm.c:4564 vmmioctl(a00,c0205602,ffff80002e4f39b0,1,ffff80002e58f268) at vmmioctl+0x192 sys/arch/amd64/amd64/vmm.c:685 VOP_IOCTL(fffffd806e16bd88,c0205602,ffff80002e4f39b0,1,fffffd807f7d7750,ffff80002e58f268) at VOP_IOCTL+0x96 sys/kern/vfs_vops.c:264 vn_ioctl(fffffd806a817b68,c0205602,ffff80002e4f39b0,ffff80002e58f268) at vn_ioctl+0xbc sys/kern/vfs_vnops.c:525 sys_ioctl(ffff80002e58f268,ffff80002e4f3ac8,ffff80002e4f3b10) at sys_ioctl+0x4a2 syscall(ffff80002e4f3b90) at syscall+0x4c3 mi_syscall sys/sys/syscall_mi.h:101 [inline] syscall(ffff80002e4f3b90) at syscall+0x4c3 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xfd1ab34dbf0, count: -8 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp ddb{1}> trace x86_ipi_db(ffff800020dd8ff0) 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 end of kernel end trace frame: 0x7f7ffffd1c70, count: -3