uvm_fault(0xfffffd806bcceb60, 0x20, 0, 1) -> e kernel: page fault trap, code=0 Stopped at mtx_enter_try+0x65: movl 0x8(%r14),%r15d TID PID UID PRFLAGS PFLAGS CPU COMMAND 294668 56316 0 0 0 1 syz-executor mtx_enter_try(18) at mtx_enter_try+0x65 sys/kern/kern_lock.c:265 mtx_enter(18) at mtx_enter+0x60 sys/kern/kern_lock.c:239 clockintr_unbind(ffff8000015c5530,1) at clockintr_unbind+0x56 sys/kern/kern_clockintr.c:375 dt_ioctl_record_stop(ffff800000b57000) at dt_ioctl_record_stop+0xbc sys/dev/dt/dt_dev.c:575 dtclose(41e5f,81,2000,ffff80002a2bc800) at dtclose+0x105 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(41e5f,81,2000,ffff80002a2bc800) at dtclose+0x105 sys/dev/dt/dt_dev.c:232 spec_close(ffff80002ffd7ce0) at spec_close+0x45f sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd8064f0da30,81,fffffd807f7d3478,ffff80002a2bc800) at VOP_CLOSE+0x133 sys/kern/vfs_vops.c:156 vn_closefile(fffffd806b84da58,ffff80002a2bc800) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd806b84da58,ffff80002a2bc800) at vn_closefile+0x12b sys/kern/vfs_vnops.c:615 fdrop(fffffd806b84da58,ffff80002a2bc800) at fdrop+0x126 sys/kern/kern_descrip.c:1265 closef(fffffd806b84da58,ffff80002a2bc800) at closef+0x192 sys/kern/kern_descrip.c:1249 fdfree(ffff80002a2bc800) at fdfree+0x116 sys/kern/kern_descrip.c:1181 exit1(ffff80002a2bc800,0,0,1) at exit1+0x58f sys/kern/kern_exit.c:214 sys_exit(ffff80002a2bc800,ffff80002ffd8050,ffff80002ffd7fa0) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80002ffd8050) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002ffd8050) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:579 end trace frame: 0xffff80002ffd80d0, count: 0 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic *cpu0: uvm_fault(0xfffffd806bcceb60, 0x20, 0, 1) -> e ddb{0}> trace mtx_enter_try(18) at mtx_enter_try+0x65 sys/kern/kern_lock.c:265 mtx_enter(18) at mtx_enter+0x60 sys/kern/kern_lock.c:239 clockintr_unbind(ffff8000015c5530,1) at clockintr_unbind+0x56 sys/kern/kern_clockintr.c:375 dt_ioctl_record_stop(ffff800000b57000) at dt_ioctl_record_stop+0xbc sys/dev/dt/dt_dev.c:575 dtclose(41e5f,81,2000,ffff80002a2bc800) at dtclose+0x105 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(41e5f,81,2000,ffff80002a2bc800) at dtclose+0x105 sys/dev/dt/dt_dev.c:232 spec_close(ffff80002ffd7ce0) at spec_close+0x45f sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd8064f0da30,81,fffffd807f7d3478,ffff80002a2bc800) at VOP_CLOSE+0x133 sys/kern/vfs_vops.c:156 vn_closefile(fffffd806b84da58,ffff80002a2bc800) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd806b84da58,ffff80002a2bc800) at vn_closefile+0x12b sys/kern/vfs_vnops.c:615 fdrop(fffffd806b84da58,ffff80002a2bc800) at fdrop+0x126 sys/kern/kern_descrip.c:1265 closef(fffffd806b84da58,ffff80002a2bc800) at closef+0x192 sys/kern/kern_descrip.c:1249 fdfree(ffff80002a2bc800) at fdfree+0x116 sys/kern/kern_descrip.c:1181 exit1(ffff80002a2bc800,0,0,1) at exit1+0x58f sys/kern/kern_exit.c:214 sys_exit(ffff80002a2bc800,ffff80002ffd8050,ffff80002ffd7fa0) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80002ffd8050) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002ffd8050) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x753193523580, count: -15 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff80002ffd7b50 rbx 0xffffffff82208a90 dtclose rdx 0 rcx 0xffff80002a2bc800 rax 0xffffffff838a1ff0 cpu_info_full_primary+0x1ff0 r8 0 r9 0 r10 0xbb45df700d330f2c r11 0xa9fb732a4ca940a1 r12 0 r13 0xffffffff838a1ff0 cpu_info_full_primary+0x1ff0 r14 0x18 r15 0 rip 0xffffffff8252dba5 mtx_enter_try+0x65 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80002ffd7b10 ss 0x10 mtx_enter_try+0x65: movl 0x8(%r14),%r15d ddb{0}> show proc PROC (syz-executor) tid=140117 pid=26654 tcnt=0 stat=onproc flags process=1008 proc=2000 runpri=32, usrpri=81, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80002a2bc800 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff80003c44b7e8,0xffff80002a2bbd70 process=0xffff80003c4a0e68 user=0xffff80002ffd3000, vmspace=0xfffffd806bcceb60 estcpu=31, cpticks=1, pctcpu=0.8, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 56316 294668 63925 0 7 0 syz-executor 56316 402342 63925 0 3 0x4000000 clonelk syz-executor 59631 506333 15730 0 3 0x80 nanoslp syz-executor 59631 289547 15730 0 3 0x4000000 smrbar syz-executor 59631 372703 15730 0 3 0x4000080 fsleep syz-executor 34783 356877 29133 0 3 0x80 nanoslp syz-executor 34783 213572 29133 0 3 0x4000080 kqread syz-executor 34783 253034 29133 0 3 0x4000080 fsleep syz-executor 67093 217547 0 0 3 0x14200 acct acct 89891 96200 29572 0 3 0x80 nanoslp syz-executor 89891 304900 29572 0 3 0x4000080 sbwait syz-executor 89891 446487 29572 0 3 0x4000080 fsleep syz-executor 34615 212339 19801 0 3 0x80 nanoslp syz-executor 34615 366534 19801 0 3 0x4000080 sbwait syz-executor 34615 447887 19801 0 3 0x4000080 fsleep syz-executor 49263 271750 23403 0 3 0x80 nanoslp syz-executor 49263 262146 23403 0 3 0x4000080 kqread syz-executor 49263 383393 23403 0 3 0x4000080 fsleep syz-executor 15730 359234 59849 0 3 0x82 nanoslp syz-executor 9583 2172 59849 0 3 0x82 nanoslp syz-executor 29133 257439 59849 0 3 0x82 nanoslp syz-executor 23403 133258 59849 0 3 0x82 nanoslp syz-executor 29572 123476 59849 0 3 0x82 nanoslp syz-executor 4466 340454 1 0 3 0x100083 ttyin getty 19801 276508 59849 0 3 0x82 nanoslp syz-executor 47178 381448 0 0 3 0x14200 bored sosplice 14877 268061 59849 0 3 0x82 nanoslp syz-executor 63925 192805 59849 0 3 0x82 nanoslp syz-executor 59849 306309 58130 0 3 0x82 kqread syz-executor 58130 364602 57938 0 3 0x10008a sigsusp ksh 57938 386116 32054 0 3 0x98 kqread sshd-session 32054 313451 10322 0 3 0x92 kqread sshd-session 10322 226291 1 0 3 0x88 kqread sshd 3715 501712 15868 74 3 0x1100092 bpf pflogd 15868 162552 1 0 3 0x80 sbwait pflogd 71803 343795 2148 73 3 0x1100090 kqread syslogd 2148 223816 1 0 3 0x100082 sbwait syslogd 24577 66308 1 0 3 0x100080 kqread resolvd 37101 120615 19169 77 3 0x100092 kqread dhcpleased 96847 54723 19169 77 3 0x100092 kqread dhcpleased 19169 433502 1 0 3 0x80 kqread dhcpleased 24484 311462 0 0 3 0x14200 bored smr 51261 117057 0 0 3 0x14200 pgzero zerothread 96231 56559 0 0 3 0x14200 aiodoned aiodoned 50747 295836 0 0 3 0x14200 syncer update 26485 116803 0 0 3 0x14200 cleaner cleaner 69060 57176 0 0 3 0x14200 reaper reaper 45252 469433 0 0 3 0x14200 pgdaemon pagedaemon 21632 89728 0 0 3 0x14200 bored viomb 31330 444794 0 0 3 0x40014200 acpi0 acpi0 83438 490717 0 0 3 0x40014200 idle1 8890 478057 0 0 3 0x14200 bored softnet3 94208 427167 0 0 3 0x14200 bored softnet2 74971 307219 0 0 3 0x14200 bored softnet1 69566 511984 0 0 3 0x14200 bored softnet0 38283 148881 0 0 3 0x14200 bored systqmp 93104 98695 0 0 3 0x14200 bored systq 18159 473921 0 0 3 0x14200 tmoslp softclockmp 18888 405922 0 0 3 0x40014200 tmoslp softclock 23223 142570 0 0 3 0x40014200 idle0 1 317105 0 0 3 0x80082 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{0}> show all locks Process 59631 (syz-executor) thread 0xffff80002a2bb2c0 (289547) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10222 11144K 12443K 166960K 13385 0 pcb 19 18K 20K 166960K 433 0 rtable 175 8K 9K 166960K 732 0 pf 34 17K 19K 166960K 127 0 ifaddr 31 4K 7K 166960K 115 0 ifgroup 55 2K 2K 166960K 176 0 sysctl 4 1K 2K 166960K 5 0 counters 64 36K 37K 166960K 170 0 ioctlops 0 0K 4K 166960K 1677 0 iov 0 0K 28K 166960K 195 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1431 90K 90K 166960K 2414 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 5K 13K 166960K 27 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 78 0 dirhash 12 2K 2K 166960K 30 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 236K 166960K 1410 0 sigio 0 0K 0K 166960K 18 0 proc 72 91K 115K 166960K 851 0 subproc 72 4K 4K 166960K 138 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 2 0K 0K 166960K 197 0 in_multi 54 4K 7K 166960K 219 0 ether_multi 1 0K 0K 166960K 4 0 mrt 1 0K 0K 166960K 7 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 115 519K 519K 166960K 115 0 exec 0 0K 1K 166960K 603 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 3 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 254 160K 176K 166960K 14101 0 UVM aobj 36 2K 2K 166960K 39 0 pinsyscall 43 86K 104K 166960K 2704 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 82 0 NDP 14 0K 2K 166960K 80 0 temp 78 8692K 8948K 166960K 52255 0 kqueue 18 28K 30K 166960K 224 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 26 0 0 1 0 1 1 0 8 0 rtpcb 120 171 0 166 2 0 2 2 0 8 1 rtentry 176 218 0 147 6 0 6 6 0 8 0 unpcb 144 888 0 867 5 1 4 4 0 8 3 syncache 336 5 0 5 2 1 1 1 0 8 1 tcpqe 32 1 0 1 1 0 1 1 0 8 1 tcpcb 808 397 0 392 11 7 4 7 0 8 3 arp 128 39 0 21 1 0 1 1 0 8 0 inpcb 384 1530 0 1517 14 4 10 12 0 8 8 nd6 144 53 0 37 1 0 1 1 0 8 0 pkpcb 40 10 0 10 1 0 1 1 0 8 1 kcovpl 48 15 0 7 1 0 1 1 0 8 0 mppekey 1024 1 0 1 1 1 0 1 0 8 0 ppxss 1192 33 0 33 1 0 1 1 0 8 1 pppxif 1504 6 0 6 2 1 1 1 0 8 1 pffrag 232 6 0 0 1 0 1 1 0 482 0 pffrnode 88 5 0 0 1 0 1 1 0 8 0 pffrent 40 8 0 2 1 0 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 97 0 20 1 0 1 1 0 8 0 pfstkey 128 97 0 20 3 0 3 3 0 8 0 pfstate 384 97 0 20 9 0 9 9 0 8 0 pfrule 1344 22 0 17 2 1 1 2 0 8 0 rttmr 136 1 0 1 1 1 0 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 869 0 600 30 2 28 29 0 8 8 art_table 32 871 0 600 4 0 4 4 0 8 0 art_node 16 214 0 155 1 0 1 1 0 8 0 sysvmsgpl 40 65 0 65 1 1 0 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 75 0 65 1 0 1 1 0 8 0 shmpl 112 36 0 3 1 0 1 1 0 8 0 dirhash 1024 29 0 12 3 0 3 3 0 8 0 dino2pl 256 3829 0 2309 96 0 96 96 0 8 0 ffsino 288 3829 0 2309 109 0 109 109 0 8 0 nchpl 144 5656 0 3944 64 0 64 64 0 8 0 rtmask 32 8 0 8 2 1 1 1 0 8 1 uvmvnodes 80 4503 0 0 92 0 92 92 0 8 0 vnodes 216 4503 0 0 251 0 251 251 0 8 0 namei 1024 19032 0 19032 1 0 1 1 0 8 1 percpumem 16 100 0 53 1 0 1 1 0 8 0 kstatmem 264 98 0 74 3 1 2 3 0 8 0 scsiplug 72 3 0 3 1 1 0 1 0 8 0 scxspl 216 19152 0 19152 10 9 1 8 1 8 1 plimitpl 152 389 0 372 1 0 1 1 0 8 0 sigapl 424 1721 0 1669 9 2 7 9 0 8 0 futexpl 64 18255 0 18250 1 0 1 1 0 8 0 knotepl 120 533 0 0 16 0 16 16 0 8 0 kqueuepl 224 449 0 435 6 1 5 5 0 8 4 pipepl 336 240 0 211 3 0 3 3 0 8 0 fdescpl 520 1676 0 1644 3 0 3 3 0 8 0 filepl 160 10028 0 9797 18 3 15 16 0 8 2 lockfpl 104 382 0 380 1 0 1 1 0 8 0 lockfspl 48 166 0 164 1 0 1 1 0 8 0 sessionpl 144 32 0 23 1 0 1 1 0 8 0 pgrppl 48 57 0 40 1 0 1 1 0 8 0 ucredpl 104 1406 0 1393 1 0 1 1 0 8 0 zombiepl 144 1671 0 1669 1 0 1 1 0 8 0 processpl 1216 1721 0 1669 6 0 6 6 0 8 0 procpl 680 3725 0 3662 8 1 7 8 0 8 0 srpgc 96 20 0 20 2 1 1 1 0 8 1 sosppl 168 9 0 9 2 1 1 1 0 8 1 sockpl 728 2626 0 2587 16 4 12 13 0 8 8 mcl64k 65536 5 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 129 0 0 17 0 17 17 0 8 0 mcl2k 2048 39 0 0 4 0 4 4 0 8 0 mtagpl 96 33 0 0 1 0 1 1 0 8 0 mbufpl 256 474 0 0 29 0 29 29 0 8 0 bufpl 280 5685 0 133 397 0 397 397 0 8 0 anonpl 32 7623 0 0 63 1 62 62 0 246 0 amapchunkpl 152 45675 0 45070 37 1 36 36 0 158 11 amappl16 200 2570 0 2501 20 6 14 15 0 8 7 amappl15 192 15 0 15 1 1 0 1 0 8 0 amappl14 184 127 0 115 1 0 1 1 0 8 0 amappl13 176 10 0 10 1 1 0 1 0 8 0 amappl12 168 2445 0 2413 3 1 2 2 0 8 0 amappl11 160 46 0 32 1 0 1 1 0 8 0 amappl10 152 2 0 2 2 2 0 1 0 8 0 amappl9 144 259 0 259 1 1 0 1 0 8 0 amappl8 136 52 0 49 1 0 1 1 0 8 0 amappl7 128 124 0 111 1 0 1 1 0 8 0 amappl6 120 262 0 259 1 0 1 1 0 8 0 amappl5 112 156 0 146 1 0 1 1 0 8 0 amappl4 104 352 0 331 1 0 1 1 0 8 0 amappl3 96 9461 0 9345 5 1 4 4 0 8 0 amappl2 88 762 0 698 2 0 2 2 0 8 0 amappl1 80 14262 0 13659 17 2 15 15 0 8 1 amappl 88 13042 0 12860 5 0 5 5 0 92 0 dma32768 32768 1 0 1 1 1 0 1 0 8 0 dma16384 16384 1 0 1 1 1 0 1 0 8 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 9 0 9 3 2 1 1 0 8 1 dma128 128 253 0 253 1 1 0 1 0 8 0 dma64 64 8 0 8 2 1 1 1 0 8 1 dma32 32 8 0 8 2 2 0 1 0 8 0 dma16 16 19 0 18 1 0 1 1 0 8 0 aobjpl 72 38 0 3 1 0 1 1 0 8 0 uaddrrnd 24 1676 0 1644 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1676 0 1644 1 0 1 1 0 8 0 vmmpekpl 168 14530 0 14474 3 0 3 3 0 8 0 vmmpepl 168 107402 0 105300 102 2 100 101 0 357 7 vmsppl 480 1675 0 1644 5 0 5 5 0 8 0 rwobjpl 72 31612 0 26083 101 0 101 101 0 8 0 pdppl 4096 3359 0 3288 111 38 73 83 0 8 2 pvpl 32 15447 0 0 125 0 125 125 0 265 0 pmappl 256 1675 0 1644 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 440 0 55 11 0 11 11 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace mtx_enter_try(18) at mtx_enter_try+0x65 sys/kern/kern_lock.c:265 mtx_enter(18) at mtx_enter+0x60 sys/kern/kern_lock.c:239 clockintr_unbind(ffff8000015c5530,1) at clockintr_unbind+0x56 sys/kern/kern_clockintr.c:375 dt_ioctl_record_stop(ffff800000b57000) at dt_ioctl_record_stop+0xbc sys/dev/dt/dt_dev.c:575 dtclose(41e5f,81,2000,ffff80002a2bc800) at dtclose+0x105 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(41e5f,81,2000,ffff80002a2bc800) at dtclose+0x105 sys/dev/dt/dt_dev.c:232 spec_close(ffff80002ffd7ce0) at spec_close+0x45f sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd8064f0da30,81,fffffd807f7d3478,ffff80002a2bc800) at VOP_CLOSE+0x133 sys/kern/vfs_vops.c:156 vn_closefile(fffffd806b84da58,ffff80002a2bc800) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd806b84da58,ffff80002a2bc800) at vn_closefile+0x12b sys/kern/vfs_vnops.c:615 fdrop(fffffd806b84da58,ffff80002a2bc800) at fdrop+0x126 sys/kern/kern_descrip.c:1265 closef(fffffd806b84da58,ffff80002a2bc800) at closef+0x192 sys/kern/kern_descrip.c:1249 fdfree(ffff80002a2bc800) at fdfree+0x116 sys/kern/kern_descrip.c:1181 exit1(ffff80002a2bc800,0,0,1) at exit1+0x58f sys/kern/kern_exit.c:214 sys_exit(ffff80002a2bc800,ffff80002ffd8050,ffff80002ffd7fa0) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80002ffd8050) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002ffd8050) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x753193523580, count: -15 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffff8000299ddff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 end of kernel end trace frame: 0x73a138e515a0, count: 12 ddb{1}> trace x86_ipi_db(ffff8000299ddff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 end of kernel end trace frame: 0x73a138e515a0, count: -3