uvm_fault(0xfffffd80722ad720, 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 *125769 96813 0 0 0x4000000 0 syz-executor mtx_enter(18) at mtx_enter+0x59 sys/kern/kern_lock.c:335 clockintr_unbind(ffff8000014a2330,1) at clockintr_unbind+0x56 sys/kern/kern_clockintr.c:375 dt_ioctl_record_stop(ffff800001491600) at dt_ioctl_record_stop+0xbc sys/dev/dt/dt_dev.c:576 dtclose(11e5f,81,2000,ffff80002a7f0540) at dtclose+0xd5 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff80002a7f0540) at dtclose+0xd5 sys/dev/dt/dt_dev.c:232 spec_close(ffff800031d078f0) at spec_close+0x45f sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd806633ad88,81,fffffd8007bfb618,ffff80002a7f0540) at VOP_CLOSE+0x12a sys/kern/vfs_vops.c:156 vn_closefile(fffffd8064793c48,ffff80002a7f0540) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd8064793c48,ffff80002a7f0540) at vn_closefile+0x11d sys/kern/vfs_vnops.c:615 fdrop(fffffd8064793c48,ffff80002a7f0540) at fdrop+0x126 sys/kern/kern_descrip.c:1267 closef(fffffd8064793c48,ffff80002a7f0540) at closef+0x18d sys/kern/kern_descrip.c:1251 syscall(ffff800031d07b50) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff800031d07b50) at syscall+0x97e sys/arch/amd64/amd64/trap.c:732 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xad420d10850, 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(0xfffffd80722ad720, 0x18, 0, 1) -> e ddb> trace mtx_enter(18) at mtx_enter+0x59 sys/kern/kern_lock.c:335 clockintr_unbind(ffff8000014a2330,1) at clockintr_unbind+0x56 sys/kern/kern_clockintr.c:375 dt_ioctl_record_stop(ffff800001491600) at dt_ioctl_record_stop+0xbc sys/dev/dt/dt_dev.c:576 dtclose(11e5f,81,2000,ffff80002a7f0540) at dtclose+0xd5 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff80002a7f0540) at dtclose+0xd5 sys/dev/dt/dt_dev.c:232 spec_close(ffff800031d078f0) at spec_close+0x45f sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd806633ad88,81,fffffd8007bfb618,ffff80002a7f0540) at VOP_CLOSE+0x12a sys/kern/vfs_vops.c:156 vn_closefile(fffffd8064793c48,ffff80002a7f0540) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd8064793c48,ffff80002a7f0540) at vn_closefile+0x11d sys/kern/vfs_vnops.c:615 fdrop(fffffd8064793c48,ffff80002a7f0540) at fdrop+0x126 sys/kern/kern_descrip.c:1267 closef(fffffd8064793c48,ffff80002a7f0540) at closef+0x18d sys/kern/kern_descrip.c:1251 syscall(ffff800031d07b50) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff800031d07b50) at syscall+0x97e sys/arch/amd64/amd64/trap.c:732 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xad420d10850, count: -11 ddb> show registers rdi 0 rsi 0 rbp 0xffff800031d077a0 rbx 0xffffffff81883e60 dtclose rdx 0 rcx 0xffff80002a7f0540 rax 0xffff80002a7f0540 r8 0xffffffff83110170 uvm_map_inentry_sp r9 0x1 r10 0 r11 0xa3d39e40425b9915 r12 0 r13 0 r14 0x18 r15 0 rip 0xffffffff82b47b59 mtx_enter+0x59 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff800031d07770 ss 0x10 mtx_enter+0x59: movq 0(%r14),%rax ddb> show proc PROC (syz-executor) tid=125769 pid=96813 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a7f1210,0xffff80002a7f0a70 process=0xffff8000ffff6d70 user=0xffff800031d02000, vmspace=0xfffffd80722ad720 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 26940 86643 79977 0 2 0 syz-executor 26940 382044 79977 0 3 0x4000080 fsleep syz-executor 96813 53672 67893 0 2 0 syz-executor *96813 125769 67893 0 7 0x4000000 syz-executor 96813 44310 67893 0 3 0x4000080 fsleep syz-executor 2753 480991 0 0 3 0x14200 bored sosplice 9912 30553 58309 0 2 0 syz-executor 9912 160933 58309 0 3 0x4000080 fifow syz-executor 83311 396131 89646 0 3 0x80 nanoslp syz-executor 83311 238309 89646 0 3 0x4000080 ttyin syz-executor 83311 402787 89646 0 3 0x4000080 fsleep syz-executor 83311 343848 89646 0 3 0x4000080 fsleep syz-executor 71587 130678 83664 0 3 0x80 nanoslp syz-executor 71587 214710 83664 0 3 0x4000080 pipewr syz-executor 71587 367169 83664 0 3 0x4000080 pipewr syz-executor 34710 103867 4209 0 3 0x80 nanoslp syz-executor 34710 495416 4209 0 3 0x4000080 fsleep syz-executor 34710 98159 4209 0 3 0x4000080 kqsel syz-executor 73871 113744 0 0 3 0x14280 nfsidl nfsio 57611 155794 0 0 3 0x14280 nfsidl nfsio 38575 368815 0 0 3 0x14280 nfsidl nfsio 61992 342336 0 0 3 0x14280 nfsidl nfsio 59011 253866 0 0 3 0x14280 nfsidl nfsio 62935 62574 0 0 3 0x14280 nfsidl nfsio 72528 59337 0 0 3 0x14280 nfsidl nfsio 44788 247233 0 0 3 0x14280 nfsidl nfsio 98156 203077 0 0 3 0x14280 nfsidl nfsio 16093 380524 0 0 3 0x14280 nfsidl nfsio 26533 357707 0 0 3 0x14280 nfsidl nfsio 68734 361678 0 0 3 0x14280 nfsidl nfsio 18070 24103 0 0 3 0x14280 nfsidl nfsio 73313 74332 0 0 3 0x14280 nfsidl nfsio 92204 351956 0 0 3 0x14280 nfsidl nfsio 39072 485257 0 0 3 0x14280 nfsidl nfsio 20565 78330 0 0 3 0x14280 nfsidl nfsio 65848 380694 0 0 3 0x14280 nfsidl nfsio 21076 413206 0 0 3 0x14280 nfsidl nfsio 7986 480641 0 0 3 0x14280 nfsidl nfsio 89191 412816 85309 0 3 0x82 nanoslp syz-executor 4209 427685 85309 0 3 0x82 nanoslp syz-executor 77662 351003 85309 0 3 0x82 nanoslp syz-executor 67893 263899 85309 0 3 0x82 nanoslp syz-executor 58309 372530 85309 0 3 0x82 nanoslp syz-executor 83664 280745 85309 0 3 0x82 nanoslp syz-executor 89646 342131 85309 0 3 0x82 nanoslp syz-executor 79977 18633 85309 0 3 0x82 nanoslp syz-executor 85309 393618 24795 0 3 0x82 kqread syz-executor 24795 196173 91926 0 3 0x10008a sigsusp ksh 91926 334486 82084 0 3 0x98 kqread sshd-session 82084 308884 92245 0 3 0x92 kqread sshd-session 78620 33252 1 0 3 0x100083 ttyin getty 92245 137803 1 0 3 0x88 kqread sshd 39165 150951 14535 73 3 0x1100090 kqread syslogd 14535 145131 1 0 3 0x100082 sbwait syslogd 93566 341936 1 0 3 0x100080 kqread resolvd 79008 456562 25515 77 3 0x100092 kqread dhcpleased 81324 362469 25515 77 3 0x100092 kqread dhcpleased 25515 85247 1 0 3 0x80 kqread dhcpleased 86324 468596 0 0 3 0x14200 bored smr 25828 263636 0 0 2 0x14200 zerothread 28226 227797 0 0 3 0x14200 aiodoned aiodoned 1883 54987 0 0 3 0x14200 syncer update 68844 253072 0 0 3 0x14200 cleaner cleaner 55659 8384 0 0 3 0x14200 reaper reaper 79629 514681 0 0 3 0x14200 pgdaemon pagedaemon 1879 175933 0 0 3 0x14200 bored viomb 41354 490203 0 0 3 0x40014200 acpi0 acpi0 40408 475682 0 0 3 0x14200 bored softnet3 45903 57183 0 0 3 0x14200 bored softnet2 59347 347322 0 0 3 0x14200 bored softnet1 24063 346600 0 0 3 0x14200 bored softnet0 55573 356648 0 0 3 0x14200 bored systqmp 23139 259910 0 0 3 0x14200 bored systq 66588 249566 0 0 3 0x40014200 tmoslp softclock 60226 218151 0 0 3 0x40014200 idle0 1 184763 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 10198 11138K 11565K 166960K 11440 0 pcb 18 12K 12K 166960K 26 0 rtable 237 7K 8K 166960K 369 0 pf 43 15K 15K 166960K 47 0 ifaddr 47 7K 8K 166960K 54 0 ifgroup 68 2K 2K 166960K 76 0 sysctl 2 1K 9K 166960K 8 0 counters 39 18K 18K 166960K 40 0 ioctlops 0 0K 4K 166960K 45 0 iov 0 0K 16K 166960K 10 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1347 85K 85K 166960K 1456 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 4 0K 0K 166960K 7 0 dirhash 12 2K 2K 166960K 18 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 89K 166960K 236 0 proc 59 59K 91K 166960K 479 0 subproc 72 4K 4K 166960K 72 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 7 0 in_multi 99 7K 7K 166960K 101 0 ether_multi 1 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 61 281K 281K 166960K 61 0 exec 0 0K 1K 166960K 349 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 238 143K 152K 166960K 3498 0 UVM aobj 4 2K 2K 166960K 5 0 pinsyscall 39 78K 94K 166960K 1238 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 5 0 NDP 16 0K 2K 166960K 33 0 temp 42 8679K 8743K 166960K 8671 0 kqueue 14 22K 28K 166960K 41 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 40 0 36 1 0 1 1 0 8 0 rtentry 136 114 0 5 4 0 4 4 0 8 0 unpcb 144 94 0 71 1 0 1 1 0 8 0 syncache 336 4 0 4 1 0 1 1 0 8 1 tcpcb 736 33 0 28 1 0 1 1 0 8 0 arp 88 18 0 0 1 0 1 1 0 8 0 inpcb 328 117 0 106 2 0 2 2 0 8 1 nd6 104 24 0 0 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1072 4 0 0 1 0 1 1 0 8 0 pppxif 1384 2 0 0 1 0 1 1 0 8 0 pfstitem 24 2 0 0 1 0 1 1 0 8 0 pfstkey 128 2 0 0 1 0 1 1 0 8 0 pfstate 384 1 0 0 1 0 1 1 0 8 0 pfrule 1344 1 0 1 1 0 1 1 0 8 1 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 459 0 6 29 0 29 29 0 8 0 art_table 32 461 0 6 4 0 4 4 0 8 0 art_node 16 112 0 13 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 3 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 4 0 2 1 0 1 1 0 8 0 shmpl 112 2 0 1 1 0 1 1 0 8 0 dirhash 1024 21 0 4 3 0 3 3 0 8 0 dino2pl 256 1754 0 247 95 0 95 95 0 8 0 ffsino 248 1754 0 247 95 0 95 95 0 8 0 nchpl 144 2055 0 367 63 0 63 63 0 8 0 uvmvnodes 80 1892 0 0 39 0 39 39 0 8 0 vnodes 216 1892 0 0 106 0 106 106 0 8 0 namei 1024 6393 0 6393 2 0 2 2 0 8 2 kstatmem 264 34 0 2 3 0 3 3 0 8 0 scsiplug 72 1 0 1 1 0 1 1 0 8 1 scxspl 216 6597 0 6597 2 0 2 2 1 8 2 plimitpl 152 37 0 20 1 0 1 1 0 8 0 sigapl 424 528 0 461 8 0 8 8 0 8 0 knotepl 120 6723 0 6674 17 7 10 17 0 8 7 kqueuepl 184 54 0 39 1 0 1 1 0 8 0 pipepl 296 103 0 75 3 0 3 3 0 8 0 fdescpl 440 491 0 461 5 0 5 5 0 8 1 filepl 120 1876 0 1643 10 0 10 10 0 8 2 lockfpl 104 36 0 34 1 0 1 1 0 8 0 lockfspl 48 19 0 17 1 0 1 1 0 8 0 sessionpl 144 21 0 13 1 0 1 1 0 8 0 pgrppl 48 30 0 14 1 0 1 1 0 8 0 ucredpl 104 267 0 256 1 0 1 1 0 8 0 zombiepl 144 463 0 461 1 0 1 1 0 8 0 processpl 1160 528 0 461 5 0 5 5 0 8 0 procpl 656 686 0 608 8 0 8 8 0 8 1 sockpl 528 252 0 214 3 0 3 3 0 8 0 mcl64k 65536 9 0 9 1 0 1 1 0 8 1 mcl16k 16384 3 0 3 1 0 1 1 0 8 1 mcl12k 12288 1 0 1 1 0 1 1 0 8 1 mcl9k 9216 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 7 0 7 1 0 1 1 0 8 1 mcl4k 4096 2561 0 2509 14 0 14 14 0 8 7 mcl2k2 2112 1 0 1 1 0 1 1 0 8 1 mcl2k 2048 209 0 209 1 0 1 1 0 8 1 mtagpl 96 5 0 3 1 0 1 1 0 8 0 mbufpl 256 6025 0 5872 74 0 74 74 0 8 64 bufpl 280 2499 0 120 170 0 170 170 0 8 0 anonpl 24 101921 0 98677 44 0 44 44 0 187 23 amapchunkpl 152 10550 0 10034 29 0 29 29 0 158 9 amappl16 200 2002 0 1977 14 4 10 14 0 8 8 amappl15 192 5 0 5 1 0 1 1 0 8 1 amappl14 184 103 0 93 1 0 1 1 0 8 0 amappl13 176 4 0 4 1 0 1 1 0 8 1 amappl12 168 1125 0 1095 2 0 2 2 0 8 0 amappl11 160 69 0 59 1 0 1 1 0 8 0 amappl10 152 7 0 7 1 0 1 1 0 8 1 amappl9 144 246 0 245 1 0 1 1 0 8 0 amappl8 136 61 0 60 1 0 1 1 0 8 0 amappl7 128 94 0 83 1 0 1 1 0 8 0 amappl6 120 188 0 185 1 0 1 1 0 8 0 amappl5 112 125 0 119 1 0 1 1 0 8 0 amappl4 104 272 0 254 1 0 1 1 0 8 0 amappl3 96 1822 0 1708 3 0 3 3 0 8 0 amappl2 88 597 0 542 2 0 2 2 0 8 0 amappl1 80 8139 0 7588 13 0 13 13 0 8 1 amappl 88 2872 0 2698 5 0 5 5 0 92 0 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 6 0 6 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 18 0 17 1 0 1 1 0 8 0 aobjpl 72 4 0 1 1 0 1 1 0 8 0 uaddrrnd 24 491 0 461 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 491 0 461 1 0 1 1 0 8 0 vmmpekpl 168 5468 0 5434 2 0 2 2 0 8 0 vmmpepl 168 37426 0 35532 92 0 92 92 0 357 9 vmsppl 360 490 0 461 4 0 4 4 0 8 1 rwobjpl 32 14723 0 11977 23 0 23 23 0 8 0 pdppl 4096 988 0 922 92 26 66 78 0 8 0 pvpl 32 237785 0 228861 102 0 102 102 0 265 25 pmappl 216 490 0 461 2 0 2 2 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 320 0 26 9 0 9 9 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace mtx_enter(18) at mtx_enter+0x59 sys/kern/kern_lock.c:335 clockintr_unbind(ffff8000014a2330,1) at clockintr_unbind+0x56 sys/kern/kern_clockintr.c:375 dt_ioctl_record_stop(ffff800001491600) at dt_ioctl_record_stop+0xbc sys/dev/dt/dt_dev.c:576 dtclose(11e5f,81,2000,ffff80002a7f0540) at dtclose+0xd5 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff80002a7f0540) at dtclose+0xd5 sys/dev/dt/dt_dev.c:232 spec_close(ffff800031d078f0) at spec_close+0x45f sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd806633ad88,81,fffffd8007bfb618,ffff80002a7f0540) at VOP_CLOSE+0x12a sys/kern/vfs_vops.c:156 vn_closefile(fffffd8064793c48,ffff80002a7f0540) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd8064793c48,ffff80002a7f0540) at vn_closefile+0x11d sys/kern/vfs_vnops.c:615 fdrop(fffffd8064793c48,ffff80002a7f0540) at fdrop+0x126 sys/kern/kern_descrip.c:1267 closef(fffffd8064793c48,ffff80002a7f0540) at closef+0x18d sys/kern/kern_descrip.c:1251 syscall(ffff800031d07b50) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff800031d07b50) at syscall+0x97e sys/arch/amd64/amd64/trap.c:732 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xad420d10850, count: -11 ddb> machine ddbcpu 1 No such command ddb> trace mtx_enter(18) at mtx_enter+0x59 sys/kern/kern_lock.c:335 clockintr_unbind(ffff8000014a2330,1) at clockintr_unbind+0x56 sys/kern/kern_clockintr.c:375 dt_ioctl_record_stop(ffff800001491600) at dt_ioctl_record_stop+0xbc sys/dev/dt/dt_dev.c:576 dtclose(11e5f,81,2000,ffff80002a7f0540) at dtclose+0xd5 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff80002a7f0540) at dtclose+0xd5 sys/dev/dt/dt_dev.c:232 spec_close(ffff800031d078f0) at spec_close+0x45f sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd806633ad88,81,fffffd8007bfb618,ffff80002a7f0540) at VOP_CLOSE+0x12a sys/kern/vfs_vops.c:156 vn_closefile(fffffd8064793c48,ffff80002a7f0540) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd8064793c48,ffff80002a7f0540) at vn_closefile+0x11d sys/kern/vfs_vnops.c:615 fdrop(fffffd8064793c48,ffff80002a7f0540) at fdrop+0x126 sys/kern/kern_descrip.c:1267 closef(fffffd8064793c48,ffff80002a7f0540) at closef+0x18d sys/kern/kern_descrip.c:1251 syscall(ffff800031d07b50) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff800031d07b50) at syscall+0x97e sys/arch/amd64/amd64/trap.c:732 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xad420d10850, count: -11