uvm_fault(0xfffffd806ba1c018, 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 * 58605 54995 0 0 0x4000000 0 syz-executor mtx_enter(18) at mtx_enter+0x6e sys/kern/kern_lock.c:335 clockintr_unbind(ffff8000014df830,1) at clockintr_unbind+0x56 sys/kern/kern_clockintr.c:375 dt_ioctl_record_stop(ffff8000014f1500) at dt_ioctl_record_stop+0xbc sys/dev/dt/dt_dev.c:582 dtclose(21e5f,81,2000,ffff80003394dcb0) at dtclose+0xd9 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(21e5f,81,2000,ffff80003394dcb0) at dtclose+0xd9 sys/dev/dt/dt_dev.c:232 spec_close(ffff80003c95fa90) at spec_close+0x466 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd805bf9b888,81,fffffd8007bfb7b8,ffff80003394dcb0) at VOP_CLOSE+0x129 sys/kern/vfs_vops.c:156 vn_closefile(fffffd80094d5cb0,ffff80003394dcb0) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd80094d5cb0,ffff80003394dcb0) at vn_closefile+0x11d sys/kern/vfs_vnops.c:615 fdrop(fffffd80094d5cb0,ffff80003394dcb0) at fdrop+0x121 sys/kern/kern_descrip.c:1280 closef(fffffd80094d5cb0,ffff80003394dcb0) at closef+0x190 sys/kern/kern_descrip.c:1264 syscall(ffff80003c95fce0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c95fce0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xe25be063270, 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(0xfffffd806ba1c018, 0x18, 0, 1) -> e ddb> trace mtx_enter(18) at mtx_enter+0x6e sys/kern/kern_lock.c:335 clockintr_unbind(ffff8000014df830,1) at clockintr_unbind+0x56 sys/kern/kern_clockintr.c:375 dt_ioctl_record_stop(ffff8000014f1500) at dt_ioctl_record_stop+0xbc sys/dev/dt/dt_dev.c:582 dtclose(21e5f,81,2000,ffff80003394dcb0) at dtclose+0xd9 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(21e5f,81,2000,ffff80003394dcb0) at dtclose+0xd9 sys/dev/dt/dt_dev.c:232 spec_close(ffff80003c95fa90) at spec_close+0x466 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd805bf9b888,81,fffffd8007bfb7b8,ffff80003394dcb0) at VOP_CLOSE+0x129 sys/kern/vfs_vops.c:156 vn_closefile(fffffd80094d5cb0,ffff80003394dcb0) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd80094d5cb0,ffff80003394dcb0) at vn_closefile+0x11d sys/kern/vfs_vnops.c:615 fdrop(fffffd80094d5cb0,ffff80003394dcb0) at fdrop+0x121 sys/kern/kern_descrip.c:1280 closef(fffffd80094d5cb0,ffff80003394dcb0) at closef+0x190 sys/kern/kern_descrip.c:1264 syscall(ffff80003c95fce0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c95fce0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xe25be063270, count: -11 ddb> show registers rdi 0 rsi 0 rbp 0xffff80003c95f940 rbx 0 rdx 0 rcx 0xffff80003394dcb0 rax 0xffff80003394dc00 r8 0xffffffff83216e60 uvm_map_inentry_sp r9 0x1 r10 0 r11 0x138aee501ec1dc29 r12 0x1 r13 0 r14 0x18 r15 0 rip 0xffffffff82e36b0e mtx_enter+0x6e cs 0x8 rflags 0x10297 __ALIGN_SIZE+0xf297 rsp 0xffff80003c95f910 ss 0x10 mtx_enter+0x6e: movq 0(%r14),%rax ddb> show proc PROC (syz-executor) tid=58605 pid=54995 tcnt=3 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=0xffff80003394c2c0,0xffff80003394c568 process=0xffff80003393f1a0 user=0xffff80003c95a000, vmspace=0xfffffd806ba1c018 estcpu=30, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 51000 217028 29439 0 2 0 syz-executor 51000 100879 29439 0 3 0x4000080 fsleep syz-executor 51000 204315 29439 0 2 0x4000000 syz-executor 5876 343057 57022 0 2 0 syz-executor 5876 412263 57022 0 2 0x4000000 syz-executor 20053 142817 79278 0 2 0 syz-executor 20053 393108 79278 0 3 0x4000000 smrbar syz-executor 20053 122602 79278 0 2 0x4000000 syz-executor 54995 11605 60132 0 2 0 syz-executor *54995 58605 60132 0 7 0x4000000 syz-executor 54995 415246 60132 0 3 0x4000080 fsleep syz-executor 97213 355196 30117 0 2 0 syz-executor 97213 505914 30117 0 3 0x4000080 fsleep syz-executor 87441 515850 31239 0 3 0x82 sbwait sshd-session 37100 277523 0 0 3 0x14200 bored sosplice 60132 272964 45698 0 3 0x82 nanoslp syz-executor 79278 195752 45698 0 3 0x82 nanoslp syz-executor 29439 209361 45698 0 3 0x82 nanoslp syz-executor 33476 42334 45698 0 2 0x2 syz-executor 30117 243996 45698 0 3 0x82 nanoslp syz-executor 16184 453532 45698 0 3 0x82 nanoslp syz-executor 57022 504414 45698 0 3 0x82 nanoslp syz-executor 19842 317108 45698 0 3 0x82 wait syz-executor 45698 100266 17565 0 3 0x82 kqread syz-executor 17565 399019 86406 0 3 0x10008a sigsusp ksh 86406 509244 79130 0 3 0x98 kqread sshd-session 79130 84570 31239 0 3 0x92 kqread sshd-session 70624 209592 1 0 3 0x100083 ttyopn getty 31239 271920 1 0 3 0x88 kqread sshd 20264 116154 42475 73 3 0x1100090 kqread syslogd 42475 55468 1 0 3 0x100082 sbwait syslogd 20648 344925 1 0 3 0x100080 kqread resolvd 84651 135116 79088 77 3 0x100092 kqread dhcpleased 8295 497328 79088 77 3 0x100092 kqread dhcpleased 79088 63469 1 0 3 0x80 kqread dhcpleased 69566 343325 0 0 3 0x14200 bored smr 81367 9478 0 0 2 0x14200 zerothread 58634 335676 0 0 3 0x14200 aiodoned aiodoned 82446 165772 0 0 3 0x14200 syncer update 9001 454119 0 0 3 0x14200 cleaner cleaner 43030 13569 0 0 3 0x14200 reaper reaper 46581 280693 0 0 3 0x14200 pgdaemon pagedaemon 35835 95115 0 0 3 0x14200 bored viomb 96622 163207 0 0 3 0x40014200 acpi0 acpi0 54713 408790 0 0 3 0x14200 bored softnet7 48920 479657 0 0 3 0x14200 bored softnet6 69536 244457 0 0 3 0x14200 bored softnet5 72910 328887 0 0 3 0x14200 bored softnet4 34811 334166 0 0 3 0x14200 bored softnet3 67318 442546 0 0 3 0x14200 bored softnet2 24309 498801 0 0 3 0x14200 bored softnet1 19431 273189 0 0 3 0x14200 bored softnet0 62274 188884 0 0 3 0x14200 bored systqmp 41083 38429 0 0 3 0x14200 bored systq 32001 514187 0 0 3 0x40014200 tmoslp softclock 40093 190161 0 0 3 0x40014200 idle0 1 468268 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 10237 11181K 11306K 166960K 12000 0 pcb 18 16K 18K 166960K 187 0 rtable 206 6K 6K 166960K 337 0 pf 33 13K 14K 166960K 65 0 ifaddr 44 7K 8K 166960K 68 0 ifgroup 55 2K 2K 166960K 100 0 sysctl 4 1K 9K 166960K 15 0 counters 33 17K 18K 166960K 51 0 ioctlops 0 0K 4K 166960K 223 0 iov 0 0K 24K 166960K 26 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1503 95K 95K 166960K 1883 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 14 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 19 0 dirhash 12 2K 2K 166960K 18 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 89K 166960K 595 0 sigio 0 0K 0K 166960K 17 0 proc 60 59K 83K 166960K 545 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 2 0K 0K 166960K 79 0 in_multi 99 7K 7K 166960K 128 0 ether_multi 1 0K 0K 166960K 6 0 mrt 0 0K 0K 166960K 5 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 247 1102K 1102K 166960K 247 0 exec 0 0K 1K 166960K 498 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 251 152K 157K 166960K 6912 0 UVM aobj 21 6K 6K 166960K 23 0 pinsyscall 40 80K 92K 166960K 1647 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 38 0 NDP 12 0K 2K 166960K 40 0 temp 81 8648K 8712K 166960K 19963 0 kqueue 13 20K 30K 166960K 111 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 64 0 61 1 0 1 1 0 8 0 rtentry 136 118 0 28 4 0 4 4 0 8 0 unpcb 144 277 0 256 2 1 1 2 0 8 0 syncache 336 7 0 7 3 2 1 1 0 8 1 tcpqe 32 2 0 2 2 1 1 1 0 8 1 tcpcb 736 166 0 156 3 1 2 2 0 8 0 arp 96 15 0 2 1 0 1 1 0 8 0 inpcb 328 565 0 550 8 6 2 7 0 8 0 ip6q 72 2 0 1 2 1 1 1 0 8 0 ip6af 40 2 0 2 1 1 0 1 0 8 0 nd6 104 17 0 0 1 0 1 1 0 8 0 pkpcb 40 2 0 2 2 1 1 1 0 8 1 kcovpl 48 8 0 0 1 0 1 1 0 8 0 mppekey 1024 1 0 1 1 1 0 1 0 8 0 ppxss 1072 12 0 11 1 0 1 1 0 8 0 pppxif 1384 4 0 4 2 1 1 1 0 8 1 pfrktable 1344 1 0 1 1 1 0 1 0 8 0 pfrule 1344 2 0 2 1 1 0 1 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 528 0 121 30 3 27 29 0 8 0 art_table 40 530 0 121 5 0 5 5 0 8 0 art_node 32 118 0 42 1 0 1 1 0 8 0 sysvmsgpl 40 3 0 2 2 1 1 1 0 8 0 semapl 112 17 0 7 1 0 1 1 0 8 0 shmpl 112 20 0 2 1 0 1 1 0 8 0 dirhash 1024 22 0 5 3 0 3 3 0 8 0 dino2pl 256 2459 0 962 95 0 95 95 0 8 0 ffsino 256 2459 0 962 95 0 95 95 0 8 0 nchpl 144 3282 0 1600 63 0 63 63 0 8 0 rtmask 32 1 0 1 1 1 0 1 0 8 0 uvmvnodes 80 2870 0 0 59 0 59 59 0 8 0 vnodes 216 2870 0 0 160 0 160 160 0 8 0 namei 1024 11225 0 11225 3 2 1 2 0 8 1 kstatmem 264 48 0 24 2 0 2 2 0 8 0 scsiplug 72 1 0 1 1 1 0 1 0 8 0 scxspl 216 11835 0 11835 15 14 1 8 1 8 1 plimitpl 152 168 0 152 1 0 1 1 0 8 0 sigapl 424 885 0 834 7 1 6 7 0 8 0 knotepl 120 49908 0 49860 30 21 9 17 0 8 6 kqueuepl 184 245 0 235 4 3 1 4 0 8 0 pipepl 304 144 0 117 3 0 3 3 0 8 0 fdescpl 448 863 0 833 5 1 4 5 0 8 0 filepl 120 5011 0 4785 16 4 12 14 0 8 4 lockfpl 104 216 0 214 1 0 1 1 0 8 0 lockfspl 48 91 0 89 1 0 1 1 0 8 0 sessionpl 144 25 0 16 1 0 1 1 0 8 0 pgrppl 48 43 0 26 1 0 1 1 0 8 0 ucredpl 104 669 0 658 1 0 1 1 0 8 0 zombiepl 144 924 0 922 2 1 1 1 0 8 0 processpl 1152 885 0 834 5 1 4 5 0 8 0 procpl 664 1614 0 1555 7 1 6 7 0 8 0 sockpl 552 958 0 918 9 5 4 7 0 8 0 mcl64k 65536 43 0 43 3 2 1 1 0 8 1 mcl12k 12288 1 0 1 1 1 0 1 0 8 0 mcl9k 9216 1 0 1 1 1 0 1 0 8 0 mcl8k 8192 8 0 8 3 2 1 1 0 8 1 mcl4k 4096 3074 0 3022 16 8 8 14 0 8 1 mcl2k 2048 804 0 803 5 3 2 4 0 8 1 mtagpl 96 5 0 4 2 1 1 1 0 8 0 mbufpl 256 8915 0 8769 22 5 17 17 0 8 3 bufpl 280 4830 0 120 337 0 337 337 0 8 0 anonpl 24 147629 0 143522 78 30 48 48 0 187 17 amapchunkpl 152 22114 0 21558 34 8 26 26 0 158 2 amappl16 200 2607 0 2575 26 15 11 15 0 8 7 amappl15 192 6 0 6 1 1 0 1 0 8 0 amappl14 184 109 0 98 1 0 1 1 0 8 0 amappl13 176 11 0 11 1 1 0 1 0 8 0 amappl12 168 1476 0 1446 2 0 2 2 0 8 0 amappl11 160 45 0 35 1 0 1 1 0 8 0 amappl10 152 2 0 2 1 1 0 1 0 8 0 amappl9 144 253 0 253 1 1 0 1 0 8 0 amappl8 136 29 0 27 1 0 1 1 0 8 0 amappl7 128 99 0 88 1 0 1 1 0 8 0 amappl6 120 171 0 166 1 0 1 1 0 8 0 amappl5 112 112 0 106 1 0 1 1 0 8 0 amappl4 104 285 0 268 1 0 1 1 0 8 0 amappl3 96 3798 0 3701 3 0 3 3 0 8 0 amappl2 88 1119 0 1042 2 0 2 2 0 8 0 amappl1 80 10594 0 9965 14 1 13 13 0 8 0 amappl 88 6157 0 5975 5 0 5 5 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma2048 2048 24 0 24 2 1 1 1 0 8 1 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 18 0 17 1 0 1 1 0 8 0 aobjpl 72 22 0 2 1 0 1 1 0 8 0 uaddrrnd 24 863 0 833 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 863 0 833 1 0 1 1 0 8 0 vmmpekpl 168 8460 0 8423 2 0 2 2 0 8 0 vmmpepl 168 60097 0 58081 106 9 97 97 0 357 6 vmsppl 368 862 0 833 4 1 3 4 0 8 0 rwobjpl 40 21012 0 17154 40 0 40 40 0 8 0 pdppl 4096 1733 0 1666 101 32 69 79 0 8 2 pvpl 32 392535 0 382260 177 57 120 120 0 265 27 pmappl 216 862 0 833 2 0 2 2 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 399 0 66 11 0 11 11 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(ffff8000014df830,1) at clockintr_unbind+0x56 sys/kern/kern_clockintr.c:375 dt_ioctl_record_stop(ffff8000014f1500) at dt_ioctl_record_stop+0xbc sys/dev/dt/dt_dev.c:582 dtclose(21e5f,81,2000,ffff80003394dcb0) at dtclose+0xd9 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(21e5f,81,2000,ffff80003394dcb0) at dtclose+0xd9 sys/dev/dt/dt_dev.c:232 spec_close(ffff80003c95fa90) at spec_close+0x466 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd805bf9b888,81,fffffd8007bfb7b8,ffff80003394dcb0) at VOP_CLOSE+0x129 sys/kern/vfs_vops.c:156 vn_closefile(fffffd80094d5cb0,ffff80003394dcb0) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd80094d5cb0,ffff80003394dcb0) at vn_closefile+0x11d sys/kern/vfs_vnops.c:615 fdrop(fffffd80094d5cb0,ffff80003394dcb0) at fdrop+0x121 sys/kern/kern_descrip.c:1280 closef(fffffd80094d5cb0,ffff80003394dcb0) at closef+0x190 sys/kern/kern_descrip.c:1264 syscall(ffff80003c95fce0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c95fce0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xe25be063270, 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(ffff8000014df830,1) at clockintr_unbind+0x56 sys/kern/kern_clockintr.c:375 dt_ioctl_record_stop(ffff8000014f1500) at dt_ioctl_record_stop+0xbc sys/dev/dt/dt_dev.c:582 dtclose(21e5f,81,2000,ffff80003394dcb0) at dtclose+0xd9 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(21e5f,81,2000,ffff80003394dcb0) at dtclose+0xd9 sys/dev/dt/dt_dev.c:232 spec_close(ffff80003c95fa90) at spec_close+0x466 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd805bf9b888,81,fffffd8007bfb7b8,ffff80003394dcb0) at VOP_CLOSE+0x129 sys/kern/vfs_vops.c:156 vn_closefile(fffffd80094d5cb0,ffff80003394dcb0) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd80094d5cb0,ffff80003394dcb0) at vn_closefile+0x11d sys/kern/vfs_vnops.c:615 fdrop(fffffd80094d5cb0,ffff80003394dcb0) at fdrop+0x121 sys/kern/kern_descrip.c:1280 closef(fffffd80094d5cb0,ffff80003394dcb0) at closef+0x190 sys/kern/kern_descrip.c:1264 syscall(ffff80003c95fce0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c95fce0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xe25be063270, count: -11