uvm_fault(0xfffffd806b7ee5b8, 0x18, 0, 1) -> e kernel: page fault trap, code=0 Stopped at mtx_enter+0x59: movq 0(%r14),%rax TID PID UID PRFLAGS PFLAGS CPU COMMAND mtx_enter(18) at mtx_enter+0x59 sys/kern/kern_lock.c:303 clockintr_unbind(ffff800001509630,1) at clockintr_unbind+0x56 sys/kern/kern_clockintr.c:375 dt_ioctl_record_stop(ffff800001495880) at dt_ioctl_record_stop+0xbc sys/dev/dt/dt_dev.c:575 dtclose(11e5f,81,2000,ffff80002a7f07d0) at dtclose+0xd5 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff80002a7f07d0) at dtclose+0xd5 sys/dev/dt/dt_dev.c:232 spec_close(ffff80003c97b160) at spec_close+0x45f sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd806c2351e0,81,fffffd807f7d74e0,ffff80002a7f07d0) at VOP_CLOSE+0x12a sys/kern/vfs_vops.c:156 vn_closefile(fffffd80698e46a8,ffff80002a7f07d0) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd80698e46a8,ffff80002a7f07d0) at vn_closefile+0x11d sys/kern/vfs_vnops.c:615 fdrop(fffffd80698e46a8,ffff80002a7f07d0) at fdrop+0x126 sys/kern/kern_descrip.c:1265 closef(fffffd80698e46a8,ffff80002a7f07d0) at closef+0x18d sys/kern/kern_descrip.c:1249 fdfree(ffff80002a7f07d0) at fdfree+0x115 sys/kern/kern_descrip.c:1181 exit1(ffff80002a7f07d0,0,0,1) at exit1+0x58f sys/kern/kern_exit.c:214 sys_exit(ffff80002a7f07d0,ffff80003c97b4d0,ffff80003c97b420) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80003c97b4d0) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c97b4d0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x778398b1a350, count: 1 https://www.openbsd.org/ddb.html describes the minimum info required in bug reports. Insufficient info makes it difficult to find and fix bugs. ddb> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic *cpu0: uvm_fault(0xfffffd806b7ee5b8, 0x18, 0, 1) -> e ddb> trace mtx_enter(18) at mtx_enter+0x59 sys/kern/kern_lock.c:303 clockintr_unbind(ffff800001509630,1) at clockintr_unbind+0x56 sys/kern/kern_clockintr.c:375 dt_ioctl_record_stop(ffff800001495880) at dt_ioctl_record_stop+0xbc sys/dev/dt/dt_dev.c:575 dtclose(11e5f,81,2000,ffff80002a7f07d0) at dtclose+0xd5 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff80002a7f07d0) at dtclose+0xd5 sys/dev/dt/dt_dev.c:232 spec_close(ffff80003c97b160) at spec_close+0x45f sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd806c2351e0,81,fffffd807f7d74e0,ffff80002a7f07d0) at VOP_CLOSE+0x12a sys/kern/vfs_vops.c:156 vn_closefile(fffffd80698e46a8,ffff80002a7f07d0) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd80698e46a8,ffff80002a7f07d0) at vn_closefile+0x11d sys/kern/vfs_vnops.c:615 fdrop(fffffd80698e46a8,ffff80002a7f07d0) at fdrop+0x126 sys/kern/kern_descrip.c:1265 closef(fffffd80698e46a8,ffff80002a7f07d0) at closef+0x18d sys/kern/kern_descrip.c:1249 fdfree(ffff80002a7f07d0) at fdfree+0x115 sys/kern/kern_descrip.c:1181 exit1(ffff80002a7f07d0,0,0,1) at exit1+0x58f sys/kern/kern_exit.c:214 sys_exit(ffff80002a7f07d0,ffff80003c97b4d0,ffff80003c97b420) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80003c97b4d0) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c97b4d0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x778398b1a350, count: -14 ddb> show registers rdi 0 rsi 0 rbp 0xffff80003c97b010 rbx 0xffffffff82f2fcc0 dtclose rdx 0 rcx 0xffff80002a7f07d0 rax 0xffff80002a7f07d0 r8 0 r9 0 r10 0xf81c01d832abbedd r11 0x47ece99a93868e89 r12 0 r13 0 r14 0x18 r15 0 rip 0xffffffff81366a49 mtx_enter+0x59 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c97afe0 ss 0x10 mtx_enter+0x59: movq 0(%r14),%rax ddb> show proc PROC (syz-executor) tid=94698 pid=91710 tcnt=0 stat=onproc flags process=1008 proc=2000 runpri=32, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80002a7f07d0 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff80002a7f14a0,0xffffffff83987158 process=0xffff80003a117890 user=0xffff80003c976000, vmspace=0xfffffd806b7ee5b8 estcpu=36, cpticks=2, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 2273 39866 65986 0 2 0 syz-executor 2273 295058 65986 0 3 0x4000080 fsleep syz-executor 80972 464728 40624 0 2 0 syz-executor 80972 295701 40624 0 3 0x4000080 ttyin syz-executor 85706 27592 79360 0 3 0x80 nanoslp syz-executor 85706 58475 79360 0 3 0x4000080 sbwait syz-executor 85706 179751 79360 0 3 0x4000080 fsleep syz-executor 20352 59394 72556 60928 2 0x10 syz-executor 20352 238863 72556 60928 3 0x4000090 fsleep syz-executor 74353 454278 63876 60929 2 0x10 syz-executor 74353 167533 63876 60929 3 0x4000090 kqpoll syz-executor 2783 35726 45328 0 3 0x80 nanoslp syz-executor 2783 202403 45328 0 3 0x4000080 kqsel syz-executor 2783 480743 45328 0 3 0x4000080 kqsel syz-executor 2783 170522 45328 0 3 0x4000080 fsleep syz-executor 40624 312398 17467 0 3 0x82 nanoslp syz-executor 79360 157609 17467 0 3 0x82 nanoslp syz-executor 72556 387871 17467 0 3 0x82 nanoslp syz-executor 97770 216908 17467 0 2 0x2 syz-executor 65986 512679 17467 0 3 0x82 nanoslp syz-executor 7906 208642 17467 0 3 0x82 nanoslp syz-executor 45328 170188 17467 0 3 0x82 nanoslp syz-executor 63876 136717 17467 0 3 0x82 nanoslp syz-executor 17467 177021 73365 0 3 0x82 kqread syz-executor 73365 123031 55325 0 3 0x10008a sigsusp ksh 55325 477304 32998 0 3 0x98 kqread sshd-session 32998 27378 67176 0 3 0x92 kqread sshd-session 90530 84093 1 0 3 0x100083 ttyin getty 67176 162426 1 0 3 0x88 kqread sshd 32327 105382 30677 73 3 0x1100090 kqread syslogd 30677 470334 1 0 3 0x100082 sbwait syslogd 9378 344246 1 0 3 0x100080 kqread resolvd 45690 132539 57478 77 3 0x100092 kqread dhcpleased 11133 218486 57478 77 3 0x100092 kqread dhcpleased 57478 291416 1 0 3 0x80 kqread dhcpleased 37619 106933 0 0 3 0x14200 bored smr 11110 111948 0 0 2 0x14200 zerothread 95862 438040 0 0 3 0x14200 aiodoned aiodoned 91728 72820 0 0 3 0x14200 syncer update 98903 186600 0 0 3 0x14200 cleaner cleaner 6177 479268 0 0 3 0x14200 reaper reaper 73528 326407 0 0 3 0x14200 pgdaemon pagedaemon 16986 18713 0 0 3 0x14200 bored viomb 90038 21688 0 0 3 0x40014200 acpi0 acpi0 6829 220182 0 0 3 0x14200 bored softnet3 39294 261845 0 0 3 0x14200 bored softnet2 44872 109492 0 0 3 0x14200 bored softnet1 36735 74161 0 0 3 0x14200 bored softnet0 15841 220390 0 0 3 0x14200 bored systqmp 62139 15608 0 0 3 0x14200 bored systq 95415 486504 0 0 3 0x40014200 tmoslp softclock 11323 259328 0 0 3 0x40014200 idle0 1 487923 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10197 11207K 11438K 166960K 11446 0 pcb 18 12K 12K 166960K 39 0 rtable 231 7K 7K 166960K 415 0 pf 33 13K 13K 166960K 37 0 ifaddr 41 7K 7K 166960K 51 0 ifgroup 51 2K 2K 166960K 59 0 sysctl 1 1K 1K 166960K 1 0 counters 31 17K 17K 166960K 33 0 ioctlops 0 0K 4K 166960K 46 0 iov 0 0K 2K 166960K 4 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1341 84K 84K 166960K 1496 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 1K 166960K 2 0 VM map 2 1K 1K 166960K 2 0 sem 8 0K 0K 166960K 10 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 97K 166960K 286 0 sigio 1 0K 0K 166960K 6 0 proc 60 59K 100K 166960K 513 0 subproc 72 4K 4K 166960K 81 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 34 0 in_multi 89 6K 7K 166960K 117 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 1 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 362 0 fusefs mount 1 32K 32K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 219 159K 169K 166960K 3976 0 UVM aobj 6 2K 2K 166960K 6 0 pinsyscall 38 76K 94K 166960K 1334 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 2 0K 0K 166960K 7 0 NDP 13 0K 2K 166960K 31 0 temp 42 8671K 8735K 166960K 4487 0 kqueue 16 26K 28K 166960K 53 0 SYN cache 2 16K 16K 166960K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 50 0 45 1 0 1 1 0 8 0 rtentry 136 129 0 23 4 0 4 4 0 8 0 unpcb 144 107 0 89 2 0 2 2 0 8 0 syncache 336 3 0 3 1 0 1 1 0 8 1 tcpcb 808 37 0 33 1 0 1 1 0 8 0 arp 88 22 0 4 1 0 1 1 0 8 0 inpcb 344 193 0 180 4 0 4 4 0 8 2 nd6 104 27 0 6 1 0 1 1 0 8 0 kcovpl 48 9 0 1 1 0 1 1 0 8 0 ppxss 1072 1 0 0 1 0 1 1 0 8 0 pppxif 1384 1 0 0 1 0 1 1 0 8 0 pfstscr 40 1 0 0 1 0 1 1 0 8 0 pfstitem 24 2 0 0 1 0 1 1 0 8 0 pfstkey 128 8 0 6 1 0 1 1 0 8 0 pfstate 344 4 0 3 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 512 0 88 29 0 29 29 0 8 2 art_table 32 513 0 88 4 0 4 4 0 8 0 art_node 16 128 0 32 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 1 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 7 0 1 1 0 1 1 0 8 0 shmpl 112 3 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1832 0 332 95 0 95 95 0 8 0 ffsino 248 1832 0 332 95 0 95 95 0 8 0 nchpl 144 2200 0 508 63 0 63 63 0 8 0 uvmvnodes 80 1995 0 0 41 0 41 41 0 8 0 vnodes 216 1995 0 0 111 0 111 111 0 8 0 namei 1024 6668 0 6668 2 0 2 2 0 8 2 kstatmem 264 26 0 4 2 0 2 2 0 8 0 scsiplug 72 3 0 3 1 0 1 1 0 8 1 scxspl 216 6779 0 6779 2 0 2 2 1 8 2 plimitpl 152 80 0 63 1 0 1 1 0 8 0 sigapl 424 561 0 516 7 0 7 7 0 8 1 futexpl 64 2334 0 2330 1 0 1 1 0 8 0 knotepl 120 14357 0 14235 8 0 8 8 0 8 4 kqueuepl 184 63 0 48 1 0 1 1 0 8 0 pipepl 296 110 0 83 3 0 3 3 0 8 0 fdescpl 440 545 0 516 5 0 5 5 0 8 1 filepl 120 2176 0 1947 8 0 8 8 0 8 0 lockfpl 104 79 0 75 1 0 1 1 0 8 0 lockfspl 48 31 0 27 1 0 1 1 0 8 0 sessionpl 144 22 0 14 1 0 1 1 0 8 0 pgrppl 48 31 0 15 1 0 1 1 0 8 0 ucredpl 104 231 0 218 1 0 1 1 0 8 0 zombiepl 144 517 0 516 1 0 1 1 0 8 0 processpl 1112 561 0 516 4 0 4 4 0 8 0 procpl 656 762 0 708 6 0 6 6 0 8 0 sockpl 528 352 0 318 5 0 5 5 0 8 2 mcl64k 65536 4 0 3 1 0 1 1 0 8 0 mcl9k 9216 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 6 0 6 1 0 1 1 0 8 1 mcl4k 4096 2569 0 2513 15 0 15 15 0 8 7 mcl2k2 2112 3 0 3 1 0 1 1 0 8 1 mcl2k 2048 261 0 244 3 0 3 3 0 8 0 mtagpl 96 11 0 4 1 0 1 1 0 8 0 mbufpl 256 5355 0 5145 14 0 14 14 0 8 0 bufpl 280 2410 0 117 164 0 164 164 0 8 0 anonpl 24 89129 0 86005 45 0 45 45 0 187 23 amapchunkpl 152 11436 0 10991 25 0 25 25 0 158 5 amappl16 200 1315 0 1287 20 5 15 15 0 8 13 amappl15 192 4 0 4 1 0 1 1 0 8 1 amappl14 184 103 0 93 1 0 1 1 0 8 0 amappl13 176 3 0 3 1 0 1 1 0 8 1 amappl12 168 1166 0 1137 3 0 3 3 0 8 1 amappl11 160 48 0 38 1 0 1 1 0 8 0 amappl10 152 16 0 16 1 0 1 1 0 8 1 amappl9 144 245 0 245 1 0 1 1 0 8 1 amappl8 136 24 0 23 1 0 1 1 0 8 0 amappl7 128 95 0 85 1 0 1 1 0 8 0 amappl6 120 177 0 173 1 0 1 1 0 8 0 amappl5 112 123 0 116 1 0 1 1 0 8 0 amappl4 104 280 0 263 1 0 1 1 0 8 0 amappl3 96 2060 0 1959 4 0 4 4 0 8 0 amappl2 88 612 0 558 2 0 2 2 0 8 0 amappl1 80 8478 0 7934 13 0 13 13 0 8 1 amappl 88 3298 0 3144 5 0 5 5 0 92 1 dma4096 4096 1 0 1 1 0 1 1 0 8 1 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 7 0 7 1 0 1 1 0 8 1 dma128 128 253 0 253 1 0 1 1 0 8 1 dma64 64 6 0 6 1 0 1 1 0 8 1 dma32 32 7 0 7 1 0 1 1 0 8 1 dma16 16 19 0 18 1 0 1 1 0 8 0 aobjpl 72 5 0 0 1 0 1 1 0 8 0 uaddrrnd 24 545 0 516 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 545 0 516 1 0 1 1 0 8 0 vmmpekpl 168 5802 0 5765 2 0 2 2 0 8 0 vmmpepl 168 39556 0 37735 94 0 94 94 0 357 11 vmsppl 360 544 0 516 4 0 4 4 0 8 1 rwobjpl 32 14708 0 11888 25 0 25 25 0 8 1 pdppl 4096 1096 0 1032 98 30 68 82 0 8 4 pvpl 32 239035 0 230239 112 0 112 112 0 265 35 pmappl 216 544 0 516 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 267 0 30 8 0 8 8 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace mtx_enter(18) at mtx_enter+0x59 sys/kern/kern_lock.c:303 clockintr_unbind(ffff800001509630,1) at clockintr_unbind+0x56 sys/kern/kern_clockintr.c:375 dt_ioctl_record_stop(ffff800001495880) at dt_ioctl_record_stop+0xbc sys/dev/dt/dt_dev.c:575 dtclose(11e5f,81,2000,ffff80002a7f07d0) at dtclose+0xd5 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff80002a7f07d0) at dtclose+0xd5 sys/dev/dt/dt_dev.c:232 spec_close(ffff80003c97b160) at spec_close+0x45f sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd806c2351e0,81,fffffd807f7d74e0,ffff80002a7f07d0) at VOP_CLOSE+0x12a sys/kern/vfs_vops.c:156 vn_closefile(fffffd80698e46a8,ffff80002a7f07d0) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd80698e46a8,ffff80002a7f07d0) at vn_closefile+0x11d sys/kern/vfs_vnops.c:615 fdrop(fffffd80698e46a8,ffff80002a7f07d0) at fdrop+0x126 sys/kern/kern_descrip.c:1265 closef(fffffd80698e46a8,ffff80002a7f07d0) at closef+0x18d sys/kern/kern_descrip.c:1249 fdfree(ffff80002a7f07d0) at fdfree+0x115 sys/kern/kern_descrip.c:1181 exit1(ffff80002a7f07d0,0,0,1) at exit1+0x58f sys/kern/kern_exit.c:214 sys_exit(ffff80002a7f07d0,ffff80003c97b4d0,ffff80003c97b420) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80003c97b4d0) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c97b4d0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x778398b1a350, count: -14 ddb> machine ddbcpu 1 No such command ddb> trace mtx_enter(18) at mtx_enter+0x59 sys/kern/kern_lock.c:303 clockintr_unbind(ffff800001509630,1) at clockintr_unbind+0x56 sys/kern/kern_clockintr.c:375 dt_ioctl_record_stop(ffff800001495880) at dt_ioctl_record_stop+0xbc sys/dev/dt/dt_dev.c:575 dtclose(11e5f,81,2000,ffff80002a7f07d0) at dtclose+0xd5 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff80002a7f07d0) at dtclose+0xd5 sys/dev/dt/dt_dev.c:232 spec_close(ffff80003c97b160) at spec_close+0x45f sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd806c2351e0,81,fffffd807f7d74e0,ffff80002a7f07d0) at VOP_CLOSE+0x12a sys/kern/vfs_vops.c:156 vn_closefile(fffffd80698e46a8,ffff80002a7f07d0) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd80698e46a8,ffff80002a7f07d0) at vn_closefile+0x11d sys/kern/vfs_vnops.c:615 fdrop(fffffd80698e46a8,ffff80002a7f07d0) at fdrop+0x126 sys/kern/kern_descrip.c:1265 closef(fffffd80698e46a8,ffff80002a7f07d0) at closef+0x18d sys/kern/kern_descrip.c:1249 fdfree(ffff80002a7f07d0) at fdfree+0x115 sys/kern/kern_descrip.c:1181 exit1(ffff80002a7f07d0,0,0,1) at exit1+0x58f sys/kern/kern_exit.c:214 sys_exit(ffff80002a7f07d0,ffff80003c97b4d0,ffff80003c97b420) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80003c97b4d0) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c97b4d0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x778398b1a350, count: -14