uvm_fault(0xfffffd806ffcf180, 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 * 80831 76568 0 0 0x4000000 0 syz-executor mtx_enter(18) at mtx_enter+0x59 sys/kern/kern_lock.c:335 clockintr_unbind(ffff8000014c1030,1) at clockintr_unbind+0x56 sys/kern/kern_clockintr.c:375 dt_ioctl_record_stop(ffff80000148d700) at dt_ioctl_record_stop+0xbc sys/dev/dt/dt_dev.c:576 dtclose(11e5f,81,2000,ffff80002a85e2b8) at dtclose+0xd5 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff80002a85e2b8) at dtclose+0xd5 sys/dev/dt/dt_dev.c:232 spec_close(ffff8000335196f0) at spec_close+0x45f sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd80787a8b58,81,fffffd8007bfb618,ffff80002a85e2b8) at VOP_CLOSE+0x12a sys/kern/vfs_vops.c:156 vn_closefile(fffffd806c073008,ffff80002a85e2b8) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd806c073008,ffff80002a85e2b8) at vn_closefile+0x11d sys/kern/vfs_vnops.c:615 fdrop(fffffd806c073008,ffff80002a85e2b8) at fdrop+0x126 sys/kern/kern_descrip.c:1267 closef(fffffd806c073008,ffff80002a85e2b8) at closef+0x18d sys/kern/kern_descrip.c:1251 syscall(ffff800033519950) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff800033519950) at syscall+0x97e sys/arch/amd64/amd64/trap.c:732 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xbb5a1847fa0, 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(0xfffffd806ffcf180, 0x18, 0, 1) -> e ddb> trace mtx_enter(18) at mtx_enter+0x59 sys/kern/kern_lock.c:335 clockintr_unbind(ffff8000014c1030,1) at clockintr_unbind+0x56 sys/kern/kern_clockintr.c:375 dt_ioctl_record_stop(ffff80000148d700) at dt_ioctl_record_stop+0xbc sys/dev/dt/dt_dev.c:576 dtclose(11e5f,81,2000,ffff80002a85e2b8) at dtclose+0xd5 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff80002a85e2b8) at dtclose+0xd5 sys/dev/dt/dt_dev.c:232 spec_close(ffff8000335196f0) at spec_close+0x45f sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd80787a8b58,81,fffffd8007bfb618,ffff80002a85e2b8) at VOP_CLOSE+0x12a sys/kern/vfs_vops.c:156 vn_closefile(fffffd806c073008,ffff80002a85e2b8) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd806c073008,ffff80002a85e2b8) at vn_closefile+0x11d sys/kern/vfs_vnops.c:615 fdrop(fffffd806c073008,ffff80002a85e2b8) at fdrop+0x126 sys/kern/kern_descrip.c:1267 closef(fffffd806c073008,ffff80002a85e2b8) at closef+0x18d sys/kern/kern_descrip.c:1251 syscall(ffff800033519950) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff800033519950) at syscall+0x97e sys/arch/amd64/amd64/trap.c:732 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xbb5a1847fa0, count: -11 ddb> show registers rdi 0 rsi 0 rbp 0xffff8000335195a0 rbx 0xffffffff81883e60 dtclose rdx 0 rcx 0xffff80002a85e2b8 rax 0xffff80002a85e2b8 r8 0xffffffff83110170 uvm_map_inentry_sp r9 0x1 r10 0 r11 0xb85d2bba746608 r12 0 r13 0 r14 0x18 r15 0 rip 0xffffffff82b47b59 mtx_enter+0x59 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff800033519570 ss 0x10 mtx_enter+0x59: movq 0(%r14),%rax ddb> show proc PROC (syz-executor) tid=80831 pid=76568 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=80, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a7f1730,0xffff80002a85ea78 process=0xffff800033917b00 user=0xffff800033514000, vmspace=0xfffffd806ffcf180 estcpu=30, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 76568 515048 5299 0 2 0 syz-executor *76568 80831 5299 0 7 0x4000000 syz-executor 76568 475902 5299 0 3 0x4000080 fsleep syz-executor 76568 139306 5299 0 3 0x4000080 fsleep syz-executor 99566 500476 55955 0 2 0 syz-executor 99566 430422 55955 0 3 0x4000000 smrbar syz-executor 4206 35033 88162 -1 2 0x10 syz-executor 4206 263033 88162 -1 2 0x4000010 syz-executor 4206 290351 88162 -1 3 0x4000090 fsleep syz-executor 81039 417377 87535 0 2 0 syz-executor 81039 398523 87535 0 3 0x4000080 fsleep syz-executor 31555 481731 69065 0 2 0 syz-executor 31555 360179 69065 0 3 0x4000080 sbwait syz-executor 31555 309165 69065 0 3 0x4000080 fsleep syz-executor 31555 427361 69065 0 2 0x4000000 syz-executor 38234 185140 33 0 2 0 syz-executor 38234 376187 33 0 2 0x4000000 syz-executor 38234 289915 33 0 3 0x4000080 fsleep syz-executor 97783 307438 22785 0 2 0 syz-executor 97783 22447 22785 0 3 0x4000080 fsleep syz-executor 97783 67758 22785 0 3 0x4000080 fsleep syz-executor 69358 371612 0 0 3 0x14200 bored sosplice 22785 109839 96433 0 3 0x82 nanoslp syz-executor 64213 421795 14910 0 3 0x82 sbwait sshd-session 55955 413817 96433 0 3 0x82 nanoslp syz-executor 49592 451009 96433 0 2 0x2 syz-executor 88162 368265 96433 0 3 0x82 nanoslp syz-executor 5299 19837 96433 0 3 0x82 nanoslp syz-executor 87535 421457 96433 0 3 0x82 nanoslp syz-executor 69065 50106 96433 0 3 0x82 nanoslp syz-executor 33 36443 96433 0 3 0x82 nanoslp syz-executor 96433 308144 83711 0 3 0x82 kqread syz-executor 83711 463264 21818 0 3 0x10008a sigsusp ksh 21818 182945 16897 0 3 0x98 kqread sshd-session 16897 52917 14910 0 3 0x92 kqread sshd-session 47152 97232 1 0 3 0x100083 ttyopn getty 14910 267569 1 0 3 0x88 kqread sshd 5509 331994 34632 73 3 0x1100090 kqread syslogd 34632 275619 1 0 3 0x100082 sbwait syslogd 26481 476043 1 0 3 0x100080 kqread resolvd 54916 51568 81197 77 3 0x100092 kqread dhcpleased 65424 295157 81197 77 3 0x100092 kqread dhcpleased 81197 324266 1 0 3 0x80 kqread dhcpleased 89533 142148 0 0 3 0x14200 bored smr 49020 503005 0 0 2 0x14200 zerothread 8944 445858 0 0 3 0x14200 aiodoned aiodoned 58506 439421 0 0 3 0x14200 syncer update 69913 192172 0 0 3 0x14200 cleaner cleaner 63883 195430 0 0 3 0x14200 reaper reaper 99352 224885 0 0 3 0x14200 pgdaemon pagedaemon 69516 373491 0 0 3 0x14200 bored viomb 81090 293446 0 0 3 0x40014200 acpi0 acpi0 92563 126162 0 0 3 0x14200 bored softnet3 74492 458789 0 0 3 0x14200 bored softnet2 94871 182150 0 0 3 0x14200 bored softnet1 46597 428500 0 0 3 0x14200 bored softnet0 7041 522192 0 0 3 0x14200 bored systqmp 9514 478054 0 0 3 0x14200 bored systq 13841 125909 0 0 3 0x40014200 tmoslp softclock 8187 210111 0 0 3 0x40014200 idle0 1 83572 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 10192 11071K 11510K 166960K 12135 0 pcb 19 16K 21K 166960K 286 0 rtable 181 8K 9K 166960K 440 0 pf 38 14K 16K 166960K 70 0 ifaddr 36 5K 7K 166960K 69 0 ifgroup 52 2K 2K 166960K 93 0 sysctl 4 1K 9K 166960K 11 0 counters 33 17K 18K 166960K 53 0 ioctlops 0 0K 4K 166960K 126 0 iov 1 4K 12K 166960K 23 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1376 87K 87K 166960K 1717 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 14 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 26 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 89K 166960K 535 0 sigio 0 0K 0K 166960K 2 0 proc 60 59K 91K 166960K 544 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 1 0K 0K 166960K 45 0 in_multi 74 5K 7K 166960K 130 0 ether_multi 1 0K 0K 166960K 8 0 mrt 1 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 85 387K 387K 166960K 85 0 exec 0 0K 1K 166960K 465 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 238 160K 174K 166960K 6332 0 UVM aobj 15 2K 2K 166960K 17 0 pinsyscall 40 80K 94K 166960K 1588 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 17 0 NDP 12 0K 2K 166960K 43 0 temp 47 8676K 8750K 166960K 9942 0 kqueue 15 24K 27K 166960K 103 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 75 0 72 1 0 1 1 0 8 0 rtentry 136 134 0 59 4 0 4 4 0 8 0 unpcb 144 612 0 588 6 5 1 6 0 8 0 syncache 336 4 0 4 1 1 0 1 0 8 0 tcpqe 32 1 0 1 1 1 0 1 0 8 0 tcpcb 736 86 0 80 2 1 1 2 0 8 0 arp 88 20 0 6 1 0 1 1 0 8 0 ipq 40 2 0 0 1 0 1 1 0 8 0 ipqe 40 2 0 0 1 0 1 1 0 8 0 inpcb 328 603 0 587 18 11 7 12 0 8 5 ip6q 72 5 0 3 1 0 1 1 0 8 0 ip6af 40 8 0 6 1 0 1 1 0 8 0 nd6 104 30 0 11 1 0 1 1 0 8 0 pkpcb 40 2 0 2 2 1 1 1 0 8 1 kcovpl 48 9 0 1 1 0 1 1 0 8 0 ppxss 1072 15 0 14 2 1 1 1 0 8 0 pppxif 1384 4 0 4 2 1 1 1 0 8 1 pfstscr 40 1 0 1 1 0 1 1 0 8 1 pfrktable 1344 1 0 0 1 0 1 1 0 8 0 pftag 88 2 0 0 1 0 1 1 0 8 0 pfstitem 24 2 0 0 1 0 1 1 0 8 0 pfstkey 128 5 0 3 2 1 1 1 0 8 0 pfstate 384 3 0 2 2 1 1 1 0 8 0 pfrule 1344 2 0 1 1 0 1 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 583 0 251 31 4 27 31 0 8 2 art_table 32 585 0 251 4 0 4 4 0 8 0 art_node 16 131 0 64 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 4 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 23 0 13 1 0 1 1 0 8 0 shmpl 112 14 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2245 0 744 95 0 95 95 0 8 0 ffsino 248 2245 0 744 95 0 95 95 0 8 0 nchpl 144 3015 0 1329 63 0 63 63 0 8 0 rtmask 32 2 0 2 1 1 0 1 0 8 0 uvmvnodes 80 2578 0 0 53 0 53 53 0 8 0 vnodes 216 2578 0 0 144 0 144 144 0 8 0 namei 1024 9721 0 9720 4 2 2 2 0 8 1 kstatmem 264 50 0 26 2 0 2 2 0 8 0 scsiplug 72 4 0 4 2 1 1 1 0 8 1 scxspl 216 10296 0 10296 9 7 2 8 1 8 2 plimitpl 152 87 0 70 1 0 1 1 0 8 0 sigapl 424 833 0 786 8 1 7 8 0 8 0 knotepl 120 18273 0 18216 18 8 10 10 0 8 8 kqueuepl 184 190 0 179 1 0 1 1 0 8 0 pipepl 296 134 0 107 3 0 3 3 0 8 0 fdescpl 440 795 0 765 5 1 4 5 0 8 0 filepl 120 4460 0 4224 11 2 9 11 0 8 1 lockfpl 104 176 0 174 1 0 1 1 0 8 0 lockfspl 48 84 0 82 1 0 1 1 0 8 0 sessionpl 144 23 0 14 1 0 1 1 0 8 0 pgrppl 48 36 0 19 1 0 1 1 0 8 0 ucredpl 104 554 0 541 1 0 1 1 0 8 0 zombiepl 144 908 0 908 1 0 1 1 0 8 1 processpl 1160 833 0 786 5 1 4 5 0 8 0 procpl 656 1454 0 1393 7 1 6 7 0 8 0 sosppl 168 3 0 3 2 1 1 1 0 8 1 sockpl 528 1302 0 1259 16 9 7 12 0 8 4 mcl64k 65536 22 0 22 2 1 1 1 0 8 1 mcl9k 9216 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 9 0 8 1 0 1 1 0 8 0 mcl4k 4096 2938 0 2888 14 6 8 13 0 8 1 mcl2k 2048 642 0 638 4 2 2 3 0 8 1 mtagpl 96 85 0 4 2 0 2 2 0 8 0 mbufpl 256 8508 0 8263 18 0 18 18 0 8 0 bufpl 280 3445 0 116 238 0 238 238 0 8 0 anonpl 24 130056 0 126661 53 19 34 45 0 187 6 amapchunkpl 152 20641 0 20147 36 9 27 28 0 158 4 amappl16 200 2167 0 2134 8 5 3 7 0 8 1 amappl15 192 5 0 5 1 1 0 1 0 8 0 amappl14 184 109 0 98 1 0 1 1 0 8 0 amappl13 176 4 0 4 1 1 0 1 0 8 0 amappl12 168 1419 0 1389 2 0 2 2 0 8 0 amappl11 160 51 0 41 1 0 1 1 0 8 0 amappl10 152 7 0 7 1 1 0 1 0 8 0 amappl9 144 248 0 248 1 1 0 1 0 8 0 amappl8 136 80 0 79 1 0 1 1 0 8 0 amappl7 128 98 0 87 1 0 1 1 0 8 0 amappl6 120 180 0 176 1 0 1 1 0 8 0 amappl5 112 112 0 106 1 0 1 1 0 8 0 amappl4 104 288 0 271 1 0 1 1 0 8 0 amappl3 96 3825 0 3713 4 0 4 4 0 8 0 amappl2 88 636 0 574 2 0 2 2 0 8 0 amappl1 80 9735 0 9088 14 0 14 14 0 8 0 amappl 88 5602 0 5433 5 0 5 5 0 92 1 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 dma512 512 1 0 1 1 1 0 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 256 0 256 2 1 1 1 0 8 1 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 16 0 2 1 0 1 1 0 8 0 uaddrrnd 24 795 0 765 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 795 0 765 1 0 1 1 0 8 0 vmmpekpl 168 7700 0 7658 3 0 3 3 0 8 0 vmmpepl 168 55216 0 53201 97 5 92 94 0 357 1 vmsppl 360 794 0 765 4 1 3 4 0 8 0 rwobjpl 32 19043 0 15489 29 0 29 29 0 8 0 pdppl 4096 1596 0 1530 96 28 68 78 0 8 2 pvpl 32 358423 0 349101 146 36 110 130 0 265 14 pmappl 216 794 0 765 2 0 2 2 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 278 0 48 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:335 clockintr_unbind(ffff8000014c1030,1) at clockintr_unbind+0x56 sys/kern/kern_clockintr.c:375 dt_ioctl_record_stop(ffff80000148d700) at dt_ioctl_record_stop+0xbc sys/dev/dt/dt_dev.c:576 dtclose(11e5f,81,2000,ffff80002a85e2b8) at dtclose+0xd5 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff80002a85e2b8) at dtclose+0xd5 sys/dev/dt/dt_dev.c:232 spec_close(ffff8000335196f0) at spec_close+0x45f sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd80787a8b58,81,fffffd8007bfb618,ffff80002a85e2b8) at VOP_CLOSE+0x12a sys/kern/vfs_vops.c:156 vn_closefile(fffffd806c073008,ffff80002a85e2b8) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd806c073008,ffff80002a85e2b8) at vn_closefile+0x11d sys/kern/vfs_vnops.c:615 fdrop(fffffd806c073008,ffff80002a85e2b8) at fdrop+0x126 sys/kern/kern_descrip.c:1267 closef(fffffd806c073008,ffff80002a85e2b8) at closef+0x18d sys/kern/kern_descrip.c:1251 syscall(ffff800033519950) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff800033519950) at syscall+0x97e sys/arch/amd64/amd64/trap.c:732 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xbb5a1847fa0, 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(ffff8000014c1030,1) at clockintr_unbind+0x56 sys/kern/kern_clockintr.c:375 dt_ioctl_record_stop(ffff80000148d700) at dt_ioctl_record_stop+0xbc sys/dev/dt/dt_dev.c:576 dtclose(11e5f,81,2000,ffff80002a85e2b8) at dtclose+0xd5 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff80002a85e2b8) at dtclose+0xd5 sys/dev/dt/dt_dev.c:232 spec_close(ffff8000335196f0) at spec_close+0x45f sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd80787a8b58,81,fffffd8007bfb618,ffff80002a85e2b8) at VOP_CLOSE+0x12a sys/kern/vfs_vops.c:156 vn_closefile(fffffd806c073008,ffff80002a85e2b8) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd806c073008,ffff80002a85e2b8) at vn_closefile+0x11d sys/kern/vfs_vnops.c:615 fdrop(fffffd806c073008,ffff80002a85e2b8) at fdrop+0x126 sys/kern/kern_descrip.c:1267 closef(fffffd806c073008,ffff80002a85e2b8) at closef+0x18d sys/kern/kern_descrip.c:1251 syscall(ffff800033519950) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff800033519950) at syscall+0x97e sys/arch/amd64/amd64/trap.c:732 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xbb5a1847fa0, count: -11