uvm_fault(0xfffffd8079bb2a20, 0x18, 0, 1) -> e kernel: page fault trap, code=0 Stopped at mtx_enter+0x6e: movq 0(%r14),%rax TID PID UID PRFLAGS PFLAGS CPU COMMAND *440441 84578 0 0 0x4000000 0 syz-executor mtx_enter(18) at mtx_enter+0x6e sys/kern/kern_lock.c:335 clockintr_unbind(ffff800001488f30,1) at clockintr_unbind+0x56 sys/kern/kern_clockintr.c:375 dt_ioctl_record_stop(ffff8000015e2680) at dt_ioctl_record_stop+0xbc sys/dev/dt/dt_dev.c:582 dtclose(11e5f,81,2000,ffff80002a7f8020) at dtclose+0xd9 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff80002a7f8020) at dtclose+0xd9 sys/dev/dt/dt_dev.c:232 spec_close(ffff80003694f130) at spec_close+0x466 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd80641a2108,81,fffffd8007bfb548,ffff80002a7f8020) at VOP_CLOSE+0x129 sys/kern/vfs_vops.c:156 vn_closefile(fffffd805cfc9a60,ffff80002a7f8020) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd805cfc9a60,ffff80002a7f8020) at vn_closefile+0x11d sys/kern/vfs_vnops.c:615 fdrop(fffffd805cfc9a60,ffff80002a7f8020) at fdrop+0x121 sys/kern/kern_descrip.c:1280 closef(fffffd805cfc9a60,ffff80002a7f8020) at closef+0x190 sys/kern/kern_descrip.c:1264 syscall(ffff80003694f380) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003694f380) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f6587273d0, count: 4 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(0xfffffd8079bb2a20, 0x18, 0, 1) -> e ddb> trace mtx_enter(18) at mtx_enter+0x6e sys/kern/kern_lock.c:335 clockintr_unbind(ffff800001488f30,1) at clockintr_unbind+0x56 sys/kern/kern_clockintr.c:375 dt_ioctl_record_stop(ffff8000015e2680) at dt_ioctl_record_stop+0xbc sys/dev/dt/dt_dev.c:582 dtclose(11e5f,81,2000,ffff80002a7f8020) at dtclose+0xd9 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff80002a7f8020) at dtclose+0xd9 sys/dev/dt/dt_dev.c:232 spec_close(ffff80003694f130) at spec_close+0x466 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd80641a2108,81,fffffd8007bfb548,ffff80002a7f8020) at VOP_CLOSE+0x129 sys/kern/vfs_vops.c:156 vn_closefile(fffffd805cfc9a60,ffff80002a7f8020) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd805cfc9a60,ffff80002a7f8020) at vn_closefile+0x11d sys/kern/vfs_vnops.c:615 fdrop(fffffd805cfc9a60,ffff80002a7f8020) at fdrop+0x121 sys/kern/kern_descrip.c:1280 closef(fffffd805cfc9a60,ffff80002a7f8020) at closef+0x190 sys/kern/kern_descrip.c:1264 syscall(ffff80003694f380) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003694f380) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f6587273d0, count: -11 ddb> show registers rdi 0 rsi 0 rbp 0xffff80003694efe0 rbx 0 rdx 0 rcx 0xffff80002a7f8020 rax 0xffff80002a7f8000 r8 0xffffffff830fb160 uvm_map_inentry_sp r9 0x1 r10 0 r11 0x33f768635ba754fb r12 0x1 r13 0 r14 0x18 r15 0 rip 0xffffffff81cc896e mtx_enter+0x6e cs 0x8 rflags 0x10297 __ALIGN_SIZE+0xf297 rsp 0xffff80003694efb0 ss 0x10 mtx_enter+0x6e: movq 0(%r14),%rax ddb> show proc PROC (syz-executor) tid=440441 pid=84578 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=84, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a7f94e0,0xffff80002a7f9a20 process=0xffff80003ca4fb60 user=0xffff80003694a000, vmspace=0xfffffd8079bb2a20 estcpu=34, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 84072 72632 58386 0 2 0 syz-executor 83974 79482 81564 0 2 0 syz-executor 83974 327241 81564 0 2 0x4000000 syz-executor 84578 476012 82974 0 2 0 syz-executor *84578 440441 82974 0 7 0x4000000 syz-executor 84578 5594 82974 0 3 0x4000080 fsleep syz-executor 84578 77308 82974 0 3 0x4000080 fsleep syz-executor 33258 109497 50029 0 2 0 syz-executor 33258 341303 50029 0 2 0x4000000 syz-executor 81457 389878 75773 0 3 0x3000 suspend syz-executor 81457 234755 75773 0 2 0x4081000 syz-executor 61149 21588 32973 0 2 0 syz-executor 61149 70409 32973 0 3 0x4000080 fsleep syz-executor 61149 289895 32973 0 3 0x4000080 fsleep syz-executor 13639 269386 60417 0 2 0x2 syz-executor 57161 413068 1 0 3 0x100083 ttyin getty 16476 480356 0 0 3 0x14200 acct acct 48876 193992 60417 0 3 0x82 nanoslp syz-executor 80018 42989 0 0 3 0x14200 bored sosplice 58386 505241 60417 0 3 0x82 nanoslp syz-executor 50029 147858 60417 0 3 0x82 nanoslp syz-executor 81564 47722 60417 0 3 0x82 nanoslp syz-executor 75773 235247 60417 0 3 0x82 nanoslp syz-executor 32973 11368 60417 0 3 0x82 nanoslp syz-executor 82974 106666 60417 0 3 0x82 nanoslp syz-executor 60417 434209 52329 0 3 0x82 kqread syz-executor 52329 266739 88066 0 3 0x10008a sigsusp ksh 88066 331069 19046 0 3 0x98 kqread sshd-session 19046 312203 1662 0 3 0x92 kqread sshd-session 1662 187549 1 0 3 0x88 kqread sshd 23391 202926 30217 73 3 0x1100090 kqread syslogd 30217 300737 1 0 3 0x100082 sbwait syslogd 21995 351362 1 0 3 0x100080 kqread resolvd 31129 82374 80758 77 3 0x100092 kqread dhcpleased 42997 165705 80758 77 3 0x100092 kqread dhcpleased 80758 72490 1 0 3 0x80 kqread dhcpleased 71411 62849 0 0 3 0x14200 bored smr 85604 443166 0 0 2 0x14200 zerothread 29233 60698 0 0 3 0x14200 aiodoned aiodoned 239 470389 0 0 3 0x14200 syncer update 94572 292158 0 0 3 0x14200 cleaner cleaner 93665 415331 0 0 3 0x14200 reaper reaper 32788 107738 0 0 3 0x14200 pgdaemon pagedaemon 24361 67510 0 0 3 0x14200 bored viomb 51336 67128 0 0 3 0x40014200 acpi0 acpi0 8333 35342 0 0 3 0x14200 bored softnet7 32709 51478 0 0 3 0x14200 bored softnet6 38568 262604 0 0 3 0x14200 bored softnet5 64611 99027 0 0 3 0x14200 bored softnet4 81677 8253 0 0 3 0x14200 bored softnet3 78525 365757 0 0 3 0x14200 bored softnet2 68526 369543 0 0 3 0x14200 bored softnet1 70960 493133 0 0 3 0x14200 bored softnet0 47298 273880 0 0 3 0x14200 bored systqmp 18764 127384 0 0 3 0x14200 bored systq 81022 192217 0 0 3 0x40014200 tmoslp softclock 26977 297055 0 0 3 0x40014200 idle0 1 43360 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10201 11082K 12150K 166960K 13490 0 pcb 17 16K 21K 166960K 508 0 rtable 119 8K 9K 166960K 506 0 pf 32 13K 22K 166960K 851 0 ifaddr 23 3K 7K 166960K 119 0 ifgroup 50 2K 2K 166960K 180 0 sysctl 4 1K 9K 166960K 51 0 counters 32 17K 18K 166960K 182 0 ioctlops 0 0K 4K 166960K 719 0 iov 0 0K 16K 166960K 113 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1468 92K 93K 166960K 3389 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 13 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 50 0 dirhash 12 2K 2K 166960K 39 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 85K 166960K 1881 0 sigio 0 0K 0K 166960K 12 0 proc 60 59K 108K 166960K 636 0 subproc 72 4K 4K 166960K 91 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 129 0 in_multi 29 2K 7K 166960K 177 0 ether_multi 1 0K 0K 166960K 12 0 mrt 0 0K 0K 166960K 9 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 97 440K 440K 166960K 97 0 exec 0 0K 1K 166960K 567 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 5 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 228 152K 169K 166960K 19333 0 UVM aobj 24 2K 2K 166960K 27 0 pinsyscall 39 78K 90K 166960K 2995 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 63 0 NDP 11 0K 2K 166960K 88 0 temp 77 8644K 8712K 166960K 78923 0 kqueue 13 20K 31K 166960K 355 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 166 0 163 1 0 1 1 0 8 0 rtentry 136 177 0 144 4 0 4 4 0 8 1 unpcb 144 1283 0 1268 4 0 4 4 0 8 3 syncache 336 9 0 9 2 1 1 1 0 8 1 tcpqe 32 5 0 5 1 0 1 1 0 8 1 tcpcb 736 683 0 679 7 0 7 7 0 8 6 arp 88 15 0 11 1 0 1 1 0 8 0 ipq 40 4 0 4 1 0 1 1 0 8 1 ipqe 40 7 0 7 1 0 1 1 0 8 1 inpcb 328 1725 0 1717 10 1 9 10 0 8 7 ip6q 72 6 0 5 1 0 1 1 0 8 0 ip6af 40 8 0 7 1 0 1 1 0 8 0 nd6 104 48 0 43 1 0 1 1 0 8 0 pkpcb 40 156 0 156 1 0 1 1 0 8 1 kcovpl 48 10 0 2 1 0 1 1 0 8 0 ppxss 1072 142 0 142 1 0 1 1 0 8 1 pppxif 1384 2 0 2 1 0 1 1 0 8 1 pfstscr 40 2 0 1 1 0 1 1 0 8 0 pfanchor 1288 23 0 0 2 0 2 2 0 8 0 pftag 88 4 0 0 1 0 1 1 0 8 0 pfstitem 24 2 0 0 1 0 1 1 0 8 0 pfstkey 128 42 0 40 1 0 1 1 0 8 0 pfstate 384 38 0 37 1 0 1 1 0 8 0 pfrule 1344 73 0 73 2 1 1 1 0 8 1 art_heap8 4096 4 0 0 4 0 4 4 0 8 0 art_heap4 256 948 0 741 28 5 23 28 0 8 6 art_table 40 952 0 741 5 0 5 5 0 8 1 art_node 32 169 0 140 1 0 1 1 0 8 0 sysvmsgpl 40 47 0 45 1 0 1 1 0 8 0 semupl 112 2 0 2 1 0 1 1 0 8 1 semapl 112 48 0 38 1 0 1 1 0 8 0 shmpl 112 24 0 3 1 0 1 1 0 8 0 dirhash 1024 35 0 18 3 0 3 3 0 8 0 dino2pl 256 5139 0 3641 95 0 95 95 0 8 0 ffsino 256 5139 0 3641 95 0 95 95 0 8 0 nchpl 144 7752 0 6068 63 0 63 63 0 8 0 rtmask 32 14 0 14 1 0 1 1 0 8 1 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 24941 0 24940 4 2 2 2 0 8 1 kstatmem 264 130 0 108 3 0 3 3 0 8 0 scsiplug 72 12 0 12 1 0 1 1 0 8 1 scxspl 216 22920 0 22920 15 7 8 8 1 8 8 plimitpl 152 431 0 412 1 0 1 1 0 8 0 sigapl 424 2189 0 2138 9 0 9 9 0 8 2 knotepl 120 93163 0 93116 53 42 11 24 0 8 8 kqueuepl 184 765 0 754 3 0 3 3 0 8 2 pipepl 304 264 0 236 8 0 8 8 0 8 5 fdescpl 448 2148 0 2118 4 0 4 4 0 8 0 filepl 120 13429 0 13206 12 0 12 12 0 8 3 lockfpl 104 568 0 565 1 0 1 1 0 8 0 lockfspl 48 262 0 259 1 0 1 1 0 8 0 sessionpl 144 29 0 21 1 0 1 1 0 8 0 pgrppl 48 126 0 110 1 0 1 1 0 8 0 ucredpl 104 2540 0 2529 1 0 1 1 0 8 0 zombiepl 144 3483 0 3481 1 0 1 1 0 8 0 processpl 1168 2190 0 2138 6 0 6 6 0 8 1 procpl 664 5351 0 5291 8 0 8 8 0 8 1 sosppl 168 8 0 8 1 0 1 1 0 8 1 sockpl 552 3397 0 3371 10 0 10 10 0 8 7 mcl64k 65536 508 0 508 4 1 3 3 0 8 3 mcl16k 16384 143 0 143 2 1 1 1 0 8 1 mcl12k 12288 59 0 59 2 1 1 1 0 8 1 mcl9k 9216 14 0 14 2 1 1 1 0 8 1 mcl8k 8192 138 0 138 2 1 1 1 0 8 1 mcl4k 4096 6026 0 5976 14 6 8 13 0 8 1 mcl2k2 2112 11 0 11 1 0 1 1 0 8 1 mcl2k 2048 2155 0 2154 3 1 2 2 0 8 1 mtagpl 96 15 0 12 2 1 1 1 0 8 0 mbufpl 256 24775 0 24677 22 3 19 21 0 8 8 bufpl 280 6607 0 379 446 0 446 446 0 8 0 anonpl 24 350215 0 347073 67 11 56 56 0 187 24 amapchunkpl 152 68241 0 67748 37 4 33 34 0 158 10 amappl16 200 4628 0 4599 28 17 11 15 0 8 8 amappl15 192 3 0 3 1 1 0 1 0 8 0 amappl14 184 120 0 110 1 0 1 1 0 8 0 amappl13 176 4 0 4 1 1 0 1 0 8 0 amappl12 168 2815 0 2786 2 0 2 2 0 8 0 amappl11 160 42 0 32 1 0 1 1 0 8 0 amappl10 152 8 0 8 1 1 0 1 0 8 0 amappl9 144 249 0 249 1 1 0 1 0 8 0 amappl8 136 23 0 22 1 0 1 1 0 8 0 amappl7 128 107 0 97 1 0 1 1 0 8 0 amappl6 120 198 0 195 1 0 1 1 0 8 0 amappl5 112 134 0 127 1 0 1 1 0 8 0 amappl4 104 281 0 266 1 0 1 1 0 8 0 amappl3 96 13484 0 13372 4 0 4 4 0 8 0 amappl2 88 690 0 635 2 0 2 2 0 8 0 amappl1 80 15831 0 15285 14 1 13 13 0 8 0 amappl 88 18318 0 18154 5 0 5 5 0 92 0 dma16384 16384 1 0 1 1 0 1 1 0 8 1 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 23 0 22 1 0 1 1 0 8 0 aobjpl 72 26 0 3 1 0 1 1 0 8 0 uaddrrnd 24 2147 0 2118 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2147 0 2118 1 0 1 1 0 8 0 vmmpekpl 168 18076 0 18043 3 0 3 3 0 8 0 vmmpepl 168 137108 0 135238 95 0 95 95 0 357 10 vmsppl 368 2146 0 2118 4 0 4 4 0 8 1 rwobjpl 40 41010 0 34203 69 0 69 69 0 8 0 pdppl 4096 4301 0 4236 115 48 67 77 0 8 2 pvpl 32 1024339 0 1015261 158 14 144 144 0 265 46 pmappl 216 2146 0 2118 2 0 2 2 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 418 0 71 10 0 10 10 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace mtx_enter(18) at mtx_enter+0x6e sys/kern/kern_lock.c:335 clockintr_unbind(ffff800001488f30,1) at clockintr_unbind+0x56 sys/kern/kern_clockintr.c:375 dt_ioctl_record_stop(ffff8000015e2680) at dt_ioctl_record_stop+0xbc sys/dev/dt/dt_dev.c:582 dtclose(11e5f,81,2000,ffff80002a7f8020) at dtclose+0xd9 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff80002a7f8020) at dtclose+0xd9 sys/dev/dt/dt_dev.c:232 spec_close(ffff80003694f130) at spec_close+0x466 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd80641a2108,81,fffffd8007bfb548,ffff80002a7f8020) at VOP_CLOSE+0x129 sys/kern/vfs_vops.c:156 vn_closefile(fffffd805cfc9a60,ffff80002a7f8020) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd805cfc9a60,ffff80002a7f8020) at vn_closefile+0x11d sys/kern/vfs_vnops.c:615 fdrop(fffffd805cfc9a60,ffff80002a7f8020) at fdrop+0x121 sys/kern/kern_descrip.c:1280 closef(fffffd805cfc9a60,ffff80002a7f8020) at closef+0x190 sys/kern/kern_descrip.c:1264 syscall(ffff80003694f380) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003694f380) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f6587273d0, count: -11 ddb> machine ddbcpu 1 No such command ddb> trace mtx_enter(18) at mtx_enter+0x6e sys/kern/kern_lock.c:335 clockintr_unbind(ffff800001488f30,1) at clockintr_unbind+0x56 sys/kern/kern_clockintr.c:375 dt_ioctl_record_stop(ffff8000015e2680) at dt_ioctl_record_stop+0xbc sys/dev/dt/dt_dev.c:582 dtclose(11e5f,81,2000,ffff80002a7f8020) at dtclose+0xd9 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff80002a7f8020) at dtclose+0xd9 sys/dev/dt/dt_dev.c:232 spec_close(ffff80003694f130) at spec_close+0x466 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd80641a2108,81,fffffd8007bfb548,ffff80002a7f8020) at VOP_CLOSE+0x129 sys/kern/vfs_vops.c:156 vn_closefile(fffffd805cfc9a60,ffff80002a7f8020) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd805cfc9a60,ffff80002a7f8020) at vn_closefile+0x11d sys/kern/vfs_vnops.c:615 fdrop(fffffd805cfc9a60,ffff80002a7f8020) at fdrop+0x121 sys/kern/kern_descrip.c:1280 closef(fffffd805cfc9a60,ffff80002a7f8020) at closef+0x190 sys/kern/kern_descrip.c:1264 syscall(ffff80003694f380) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003694f380) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f6587273d0, count: -11