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(ffff80002e422e20) at vm_run+0x304 sys/arch/amd64/amd64/vmm.c:4463 vmmioctl(a00,c0205602,ffff80002e422e20,1,ffff800021193a40) at vmmioctl+0x192 sys/arch/amd64/amd64/vmm.c:656 VOP_IOCTL(fffffd806e129d70,c0205602,ffff80002e422e20,1,fffffd807f7d8660,ffff800021193a40) at VOP_IOCTL+0x96 sys/kern/vfs_vops.c:264 vn_ioctl(fffffd806818b608,c0205602,ffff80002e422e20,ffff800021193a40) at vn_ioctl+0xbc sys/kern/vfs_vnops.c:531 sys_ioctl(ffff800021193a40,ffff80002e422f38,ffff80002e422f90) at sys_ioctl+0x4a2 syscall(ffff80002e423000) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e423000) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x96c3362fab0, count: -8 ddb{0}> show registers rdi 0x6c14 __ALIGN_SIZE+0x5c14 rsi 0xffff80002e32fe38 rbp 0xffff80002e422b80 rbx 0x756e6547 rdx 0x49656e69 rcx 0x6c65746e rax 0xfffffffffffffffe r8 0 r9 0x10000 __ALIGN_SIZE+0xf000 r10 0x754c973a88778a1b r11 0x11b8bce8f9bb33aa r12 0xffffffff828fb0c0 dt_prov_static r13 0x246 r14 0xffff80002e32f800 r15 0xffff80002e422e20 rip 0xffffffff81a6b490 done_flush+0x38 cs 0x8 rflags 0x10046 __ALIGN_SIZE+0xf046 rsp 0xffff80002e4229d6 ss 0x10 done_flush+0x38: movl %eax,%dr6 ddb{0}> show proc PROC (syz-executor.3) pid=54500 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=84, nice=20 forw=0xffffffffffffffff, list=0xffff800021193ce0,0xffff8000ffff42b0 process=0xffff8000fffee160 user=0xffff80002e41e000, vmspace=0xfffffd807391c198 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 20922 362890 60986 0 2 0 syz-executor.2 3577 451896 59014 0 2 0 syz-executor.0 43277 90003 43445 0 2 0 syz-executor.1 43277 137611 43445 0 3 0x4000080 fsleep syz-executor.1 43277 298490 43445 0 3 0x4000080 fsleep syz-executor.1 43277 47418 43445 0 2 0x4000000 syz-executor.1 88948 429750 99397 0 7 0 syz-executor.3 *88948 54500 99397 0 7 0x4000000 syz-executor.3 31191 34022 5653 0 2 0 syz-executor.4 31191 521120 5653 0 3 0x4000080 fsleep syz-executor.4 34130 246386 94798 0 2 0 syz-executor.5 34130 461566 94798 0 3 0x4000080 fsleep syz-executor.5 34130 260885 94798 0 3 0x4000080 fsleep syz-executor.5 34130 335765 94798 0 3 0x4000080 fsleep syz-executor.5 43445 421805 55651 0 3 0x82 nanoslp syz-executor.1 94798 278220 55651 0 3 0x82 nanoslp syz-executor.5 62211 440257 0 0 3 0x14200 acct acct 63430 174385 55651 0 3 0x2 biowait syz-executor.6 50165 117429 0 0 3 0x14200 bored sosplice 3208 499191 0 0 3 0x14280 nfsidl nfsio 53921 516984 0 0 3 0x14280 nfsidl nfsio 86908 308643 0 0 3 0x14280 nfsidl nfsio 79853 255496 0 0 3 0x14280 nfsidl nfsio 79282 286683 0 0 3 0x14280 nfsidl nfsio 74282 423957 0 0 3 0x14280 nfsidl nfsio 33111 77237 0 0 3 0x14280 nfsidl nfsio 37185 139442 0 0 3 0x14280 nfsidl nfsio 30436 361932 0 0 3 0x14280 nfsidl nfsio 10833 120249 0 0 3 0x14280 nfsidl nfsio 65985 490630 0 0 3 0x14280 nfsidl nfsio 33979 356843 0 0 3 0x14280 nfsidl nfsio 6393 121370 0 0 3 0x14280 nfsidl nfsio 90551 500050 0 0 3 0x14280 nfsidl nfsio 28017 468180 0 0 3 0x14280 nfsidl nfsio 70325 101447 0 0 3 0x14280 nfsidl nfsio 49693 53399 0 0 3 0x14280 nfsidl nfsio 15655 476510 0 0 3 0x14280 nfsidl nfsio 92983 340811 0 0 3 0x14280 nfsidl nfsio 23524 466641 0 0 3 0x14280 nfsidl nfsio 5653 261414 55651 0 3 0x82 nanoslp syz-executor.4 60986 138010 55651 0 3 0x82 nanoslp syz-executor.2 84975 31131 55651 0 3 0x82 nanoslp syz-executor.7 99397 376877 55651 0 3 0x82 nanoslp syz-executor.3 59014 195935 55651 0 3 0x82 nanoslp syz-executor.0 55651 89508 76231 0 3 0x82 thrsleep syz-fuzzer 55651 52896 76231 0 3 0x4000082 nanoslp syz-fuzzer 55651 341089 76231 0 3 0x4000082 nanoslp syz-fuzzer 55651 497093 76231 0 3 0x4000082 kqread syz-fuzzer 55651 522620 76231 0 3 0x4000082 thrsleep syz-fuzzer 55651 9347 76231 0 3 0x4000082 thrsleep syz-fuzzer 55651 442369 76231 0 3 0x4000082 thrsleep syz-fuzzer 55651 266599 76231 0 3 0x4000082 thrsleep syz-fuzzer 76231 29855 5813 0 3 0x10008a sigsusp ksh 5813 319499 24297 0 3 0x9a kqread sshd 55913 318143 1 0 3 0x100083 ttyin getty 24297 439782 1 0 3 0x88 kqread sshd 2582 403948 52566 74 3 0x1100092 bpf pflogd 52566 59372 1 0 3 0x80 netio pflogd 94118 239193 18380 73 3 0x1100090 kqread syslogd 18380 141290 1 0 3 0x100082 netio syslogd 6415 293443 1 0 3 0x100080 kqread resolvd 62184 5468 72898 77 3 0x100092 kqread dhcpleased 24647 354936 72898 77 3 0x100092 kqread dhcpleased 72898 34304 1 0 3 0x80 kqread dhcpleased 24551 42809 0 0 3 0x14200 bored smr 74849 356361 0 0 2 0x14200 zerothread 14090 231190 0 0 3 0x14200 aiodoned aiodoned 52605 515111 0 0 3 0x14200 syncer update 457 242508 0 0 3 0x14200 cleaner cleaner 86229 369168 0 0 2 0x14200 reaper 17231 473383 0 0 3 0x14200 pgdaemon pagedaemon 5362 454608 0 0 3 0x14200 bored viomb 82803 337559 0 0 3 0x40014200 acpi0 acpi0 64103 9940 0 0 3 0x40014200 idle1 8196 185547 0 0 3 0x14200 bored softnet 25408 509836 0 0 3 0x14200 bored systqmp 84970 229927 0 0 3 0x14200 bored systq 95877 238140 0 0 2 0x40014200 softclock 85758 375308 0 0 3 0x40014200 idle0 1 2151 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 88948 (syz-executor.3) thread 0xffff800021193a40 (54500) exclusive rwlock vcpu r = 0 (0xffff80002e32fbb0) #0 witness_lock+0x44d #1 vm_run+0x2e0 sys/arch/amd64/amd64/vmm.c:4430 #2 vmmioctl+0x192 sys/arch/amd64/amd64/vmm.c:656 #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 Process 63430 (syz-executor.6) thread 0xffff8000260a1ce8 (174385) exclusive rrwlock inode r = 0 (0xfffffd806e1ee3d0) #0 witness_lock+0x44d #1 rw_enter+0x3e1 sys/kern/kern_rwlock.c:310 #2 rrw_enter+0x8b sys/kern/kern_rwlock.c:461 #3 VOP_LOCK+0x87 sys/kern/vfs_vops.c:534 #4 ufs_ihashins+0x42 sys/ufs/ufs/ufs_ihash.c:140 #5 ffs_vget+0x141 sys/ufs/ffs/ffs_vfsops.c:1347 #6 ffs_inode_alloc+0x1be sys/ufs/ffs/ffs_alloc.c:394 #7 ufs_mkdir+0xf4 sys/ufs/ufs/ufs_vnops.c:1162 #8 VOP_MKDIR+0xbf sys/kern/vfs_vops.c:404 #9 domkdirat+0x121 sys/kern/vfs_syscalls.c:3101 #10 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] #10 syscall+0x489 sys/arch/amd64/amd64/trap.c:585 #11 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806d7892c0) #0 witness_lock+0x44d #1 rw_enter+0x3e1 sys/kern/kern_rwlock.c:310 #2 rrw_enter+0x8b sys/kern/kern_rwlock.c:461 #3 VOP_LOCK+0x87 sys/kern/vfs_vops.c:534 #4 vn_lock+0x84 sys/kern/vfs_vnops.c:579 #5 vfs_lookup+0xd1 sys/kern/vfs_lookup.c:413 #6 namei+0x36a sys/kern/vfs_lookup.c:245 #7 domkdirat+0x75 sys/kern/vfs_syscalls.c:3086 #8 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] #8 syscall+0x489 sys/arch/amd64/amd64/trap.c:585 #9 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10230 6569K 6798K 78643K 20001 0 pcb 13 12K 14K 78643K 1443 0 rtable 192 7K 9K 78643K 6814 0 ifaddr 90 29K 37K 78643K 2613 0 sysctl 2 0K 0K 78643K 2 0 counters 58 35K 36K 78643K 1228 0 ioctlops 0 0K 4K 78643K 2312 0 iov 0 0K 32K 78643K 888 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 5 0 vnodes 1343 84K 84K 78643K 5953 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 48 0 VM map 2 1K 1K 78643K 2 0 sem 12 2K 3K 78643K 16 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 17 61K 93K 78643K 7016 0 sigio 0 0K 0K 78643K 107 0 proc 70 87K 111K 78643K 976 0 subproc 104 6K 6K 78643K 242 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 226 0 in_multi 76 5K 6K 78643K 375 0 ether_multi 1 0K 0K 78643K 32 0 mrt 1 0K 0K 78643K 26 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 1538 0 pfkey data 0 0K 0K 78643K 6 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 405 286K 287K 78643K 91581 0 UVM aobj 108 3K 3K 78643K 111 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 816 0 NDP 14 0K 2K 78643K 647 0 temp 176 4785K 4857K 78643K 50669 0 kqueue 13 20K 26K 78643K 1312 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 4253 0 4245 32 29 3 5 0 8 2 rtentry 112 393 0 310 4 0 4 4 0 8 0 unpcb 136 6085 0 6070 54 48 6 8 0 8 5 syncache 296 7 0 7 2 2 0 1 0 8 0 tcpcb 736 2050 0 2045 55 52 3 8 0 8 2 arp 120 63 0 47 1 0 1 1 0 8 0 inpcb 312 7348 0 7308 78 71 7 11 0 8 3 rttmr 72 15 0 15 4 4 0 1 0 8 0 ip6q 72 2 0 2 1 1 0 1 0 8 0 ip6af 40 4 0 4 1 1 0 1 0 8 0 nd6 48 75 0 61 1 0 1 1 0 8 0 pkpcb 40 20 0 20 5 5 0 1 0 8 0 kcovpl 48 18 0 10 1 0 1 1 0 8 0 ppxss 1248 563 0 562 3 2 1 1 0 8 0 pfstscr 40 6 0 6 2 2 0 1 0 8 0 pffrag 232 128 0 127 5 4 1 1 0 482 0 pffrnode 88 128 0 127 5 4 1 1 0 8 0 pffrent 40 407 0 406 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 14 0 12 2 1 1 1 0 8 0 pftag 88 2 0 0 1 0 1 1 0 8 0 pfstitem 24 37 0 33 1 0 1 1 0 8 0 pfstkey 112 175 0 171 1 0 1 1 0 8 0 pfstate 320 107 0 104 2 1 1 2 0 8 0 pfrule 1360 294 0 290 5 4 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1455 0 1074 37 8 29 33 0 8 0 art_table 32 1456 0 1074 5 0 5 5 0 8 0 art_node 16 392 0 314 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 1 1 0 1 1 0 8 0 semupl 112 7 0 7 1 1 0 1 0 8 0 semapl 112 10 0 0 1 0 1 1 0 8 0 shmpl 112 108 0 3 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 13163 0 11728 91 0 91 91 0 8 0 ffsino 272 13163 0 11728 97 0 97 97 0 8 0 nchpl 144 21963 0 20341 63 0 63 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 73983 0 73982 3 2 1 2 0 8 0 percpumem 16 626 0 585 1 0 1 1 0 8 0 vcpupl 2048 22 0 0 3 0 3 3 0 8 0 vmpool 560 32 0 10 2 0 2 2 0 8 0 pfiaddrpl 120 9 0 6 2 1 1 1 0 8 0 scsiplug 72 10 0 10 2 2 0 1 0 8 0 scxspl 216 54967 0 54966 16 15 1 8 0 8 0 plimitpl 152 542 0 527 1 0 1 1 0 8 0 sigapl 424 7322 0 7256 8 0 8 8 0 8 0 futexpl 64 71213 0 71207 2 1 1 1 0 8 0 knotepl 120 645 0 0 11 0 11 11 0 8 0 kqueuepl 216 1945 0 1936 17 16 1 5 0 8 0 pipepl 336 2414 0 2383 53 45 8 8 0 8 5 fdescpl 496 7286 0 7256 5 1 4 5 0 8 0 filepl 152 55896 0 55609 94 76 18 20 0 8 6 lockfpl 104 1519 0 1517 5 4 1 2 0 8 0 lockfspl 48 371 0 369 1 0 1 1 0 8 0 sessionpl 144 34 0 17 1 0 1 1 0 8 0 pgrppl 48 289 0 272 1 0 1 1 0 8 0 ucredpl 96 9184 0 9172 1 0 1 1 0 8 0 zombiepl 144 7257 0 7256 2 1 1 1 0 8 0 processpl 1064 7322 0 7256 5 0 5 5 0 8 0 procpl 672 21052 0 20970 18 10 8 10 0 8 1 srpgc 96 22 0 22 7 6 1 1 0 8 1 sosppl 168 19 0 19 7 7 0 1 0 8 0 sockpl 480 17746 0 17683 347 327 20 29 0 8 12 mcl64k 65536 18 0 0 3 0 3 3 0 8 0 mcl16k 16384 33 0 0 5 2 3 3 0 8 0 mcl12k 12288 25 0 0 2 0 2 2 0 8 0 mcl9k 9216 17 0 0 2 0 2 2 0 8 0 mcl8k 8192 25 0 0 3 0 3 3 0 8 0 mcl4k 4096 97 0 0 11 7 4 11 0 8 0 mcl2k2 2112 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 218 0 0 19 1 18 19 0 8 0 mtagpl 96 475 0 0 9 0 9 9 0 8 0 mbufpl 256 9575 0 0 586 0 586 586 0 8 0 bufpl 288 12275 0 5939 453 0 453 453 0 8 0 anonpl 24 2004237 0 1981704 227 85 142 164 0 186 0 amapchunkpl 152 219801 0 218908 63 25 38 42 0 158 1 amappl16 200 17459 0 16678 78 35 43 52 0 8 1 amappl15 192 471 0 465 1 0 1 1 0 8 0 amappl14 184 1632 0 1627 1 0 1 1 0 8 0 amappl13 176 1031 0 1029 1 0 1 1 0 8 0 amappl12 168 23 0 22 2 1 1 1 0 8 0 amappl11 160 2882 0 2859 2 1 1 2 0 8 0 amappl10 152 609 0 599 1 0 1 1 0 8 0 amappl9 144 1298 0 1294 1 0 1 1 0 8 0 amappl8 136 1020 0 925 4 0 4 4 0 8 0 amappl7 128 236 0 223 1 0 1 1 0 8 0 amappl6 120 1073 0 1041 2 1 1 2 0 8 0 amappl5 112 5993 0 5976 1 0 1 1 0 8 0 amappl4 104 5907 0 5873 2 1 1 2 0 8 0 amappl3 96 804 0 793 1 0 1 1 0 8 0 amappl2 88 1932 0 1883 3 1 2 3 0 8 0 amappl1 80 135504 0 134918 19 5 14 19 0 8 0 amappl 88 90803 0 90521 9 1 8 8 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 110 0 3 2 0 2 2 0 8 0 uaddrrnd 24 7318 0 7266 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 7318 0 7266 1 0 1 1 0 8 0 vmmpekpl 168 64660 0 64589 5 1 4 4 0 8 0 vmmpepl 168 660121 0 657260 200 67 133 138 0 357 0 vmsppl 368 7317 0 7266 6 1 5 5 0 8 0 rwobjpl 56 164970 0 157105 115 3 112 114 0 8 0 pdppl 4096 14643 0 14554 323 232 91 91 0 8 2 pvpl 32 3407678 0 3383194 419 212 207 262 0 265 1 pmappl 248 7317 0 7266 4 0 4 4 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 1838 0 427 41 0 41 41 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace done_flush() at done_flush+0x38 vm_run(ffff80002e422e20) at vm_run+0x304 sys/arch/amd64/amd64/vmm.c:4463 vmmioctl(a00,c0205602,ffff80002e422e20,1,ffff800021193a40) at vmmioctl+0x192 sys/arch/amd64/amd64/vmm.c:656 VOP_IOCTL(fffffd806e129d70,c0205602,ffff80002e422e20,1,fffffd807f7d8660,ffff800021193a40) at VOP_IOCTL+0x96 sys/kern/vfs_vops.c:264 vn_ioctl(fffffd806818b608,c0205602,ffff80002e422e20,ffff800021193a40) at vn_ioctl+0xbc sys/kern/vfs_vnops.c:531 sys_ioctl(ffff800021193a40,ffff80002e422f38,ffff80002e422f90) at sys_ioctl+0x4a2 syscall(ffff80002e423000) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e423000) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x96c3362fab0, 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 end of kernel end trace frame: 0x7f7ffffd8f80, count: -3