uvm_fault(0xfffffd8068dbb8b8, 0x0, 0, 1) -> e kernel: page fault trap, code=0 Stopped at dt_ioctl_record_stop+0x108: movq 0(%r14),%r14 TID PID UID PRFLAGS PFLAGS CPU COMMAND dt_ioctl_record_stop(ffff8000014cee80) at dt_ioctl_record_stop+0x108 sys/dev/dt/dt_dev.c:586 dtclose(21e5f,1,2000,ffff80002a7f5a10) at dtclose+0xd9 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(21e5f,1,2000,ffff80002a7f5a10) at dtclose+0xd9 sys/dev/dt/dt_dev.c:232 spec_close(ffff80003a55fb70) at spec_close+0x466 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd8074668018,1,fffffd8007bfb6e8,ffff80002a7f5a10) at VOP_CLOSE+0x129 sys/kern/vfs_vops.c:156 vn_closefile(fffffd8066d73108,ffff80002a7f5a10) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd8066d73108,ffff80002a7f5a10) at vn_closefile+0x11d sys/kern/vfs_vnops.c:615 fdrop(fffffd8066d73108,ffff80002a7f5a10) at fdrop+0x121 sys/kern/kern_descrip.c:1280 closef(fffffd8066d73108,ffff80002a7f5a10) at closef+0x190 sys/kern/kern_descrip.c:1264 fdfree(ffff80002a7f5a10) at fdfree+0x115 sys/kern/kern_descrip.c:1195 exit1(ffff80002a7f5a10,0,0,1) at exit1+0x576 sys/kern/kern_exit.c:215 sys_exit(ffff80002a7f5a10,ffff80003a55fed0,ffff80003a55fe20) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80003a55fed0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003a55fed0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x795dcab7d1a0, count: 3 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(0xfffffd8068dbb8b8, 0x0, 0, 1) -> e ddb> trace dt_ioctl_record_stop(ffff8000014cee80) at dt_ioctl_record_stop+0x108 sys/dev/dt/dt_dev.c:586 dtclose(21e5f,1,2000,ffff80002a7f5a10) at dtclose+0xd9 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(21e5f,1,2000,ffff80002a7f5a10) at dtclose+0xd9 sys/dev/dt/dt_dev.c:232 spec_close(ffff80003a55fb70) at spec_close+0x466 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd8074668018,1,fffffd8007bfb6e8,ffff80002a7f5a10) at VOP_CLOSE+0x129 sys/kern/vfs_vops.c:156 vn_closefile(fffffd8066d73108,ffff80002a7f5a10) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd8066d73108,ffff80002a7f5a10) at vn_closefile+0x11d sys/kern/vfs_vnops.c:615 fdrop(fffffd8066d73108,ffff80002a7f5a10) at fdrop+0x121 sys/kern/kern_descrip.c:1280 closef(fffffd8066d73108,ffff80002a7f5a10) at closef+0x190 sys/kern/kern_descrip.c:1264 fdfree(ffff80002a7f5a10) at fdfree+0x115 sys/kern/kern_descrip.c:1195 exit1(ffff80002a7f5a10,0,0,1) at exit1+0x576 sys/kern/kern_exit.c:215 sys_exit(ffff80002a7f5a10,ffff80003a55fed0,ffff80003a55fe20) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80003a55fed0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003a55fed0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x795dcab7d1a0, count: -12 ddb> show registers rdi 0 rsi 0 rbp 0xffff80003a55faa0 rbx 0x1 rdx 0 rcx 0xffff80002a7f5a10 rax 0xffffffff83750978 dt_prov_syscall r8 0xffffffffffffffff r9 0 r10 0xf9924a78ecd49b17 r11 0x8f6ad87f8524f69e r12 0 r13 0 r14 0 r15 0xffff800001573200 rip 0xffffffff8121d088 dt_ioctl_record_stop+0x108 cs 0x8 rflags 0x10207 __ALIGN_SIZE+0xf207 rsp 0xffff80003a55fa70 ss 0x10 dt_ioctl_record_stop+0x108: movq 0(%r14),%r14 ddb> show proc PROC (syz-executor) tid=78973 pid=20789 tcnt=0 stat=onproc flags process=1008 proc=2000 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80002a7f5a10 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff80002a7f5ca8,0xffffffff83922148 process=0xffff8000ffff71a0 user=0xffff80003a55a000, vmspace=0xfffffd8068dbb8b8 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 16367 86990 340 60928 3 0x90 nanoslp syz-executor 16367 477207 340 60928 3 0x4000090 fsleep syz-executor 45064 19896 89119 0 2 0xc80 syz-executor 45064 181848 89119 0 3 0x4000080 kqsel syz-executor 45064 107782 89119 0 3 0x4000080 kqsel syz-executor 45064 430298 89119 0 3 0x4000080 fsleep syz-executor 58361 189077 10413 0 2 0xc90 syz-executor 58361 81371 10413 0 3 0x4000090 sbwait syz-executor 82674 353785 5931 0 2 0xc80 syz-executor 82674 226179 5931 0 3 0x4000080 kqsel syz-executor 82674 34034 5931 0 3 0x4000080 fsleep syz-executor 35312 366766 0 0 3 0x14200 bored sosplice 96773 462712 0 0 3 0x14200 acct acct 97290 124914 33788 0 2 0xc82 syz-executor 75677 183436 33788 0 3 0x82 wait syz-executor 340 500175 33788 0 3 0x82 nanoslp syz-executor 89119 475101 33788 0 3 0x82 nanoslp syz-executor 95290 451496 33788 0 3 0x82 wait syz-executor 10413 188592 33788 0 2 0xc82 syz-executor 20731 383851 33788 0 2 0xc82 syz-executor 5931 100734 33788 0 2 0xc82 syz-executor 33788 333558 47410 0 3 0x82 kqread syz-executor 47410 66198 99954 0 3 0x10008a sigsusp ksh 99954 392416 88592 0 3 0x98 kqread sshd-session 88592 106682 48038 0 3 0x92 kqread sshd-session 79365 94758 1 0 3 0x100083 ttyopn getty 48038 144308 1 0 3 0x88 kqread sshd 44993 285139 14897 73 3 0x1100090 kqread syslogd 14897 222345 1 0 3 0x100082 sbwait syslogd 33058 501541 1 0 3 0x100080 kqread resolvd 55065 370142 23902 77 3 0x100092 kqread dhcpleased 96946 129054 23902 77 3 0x100092 kqread dhcpleased 23902 11487 1 0 3 0x80 kqread dhcpleased 549 433186 0 0 3 0x14200 bored smr 35402 121037 0 0 2 0x14200 zerothread 40667 461366 0 0 3 0x14200 aiodoned aiodoned 87865 166705 0 0 3 0x14200 syncer update 20517 452299 0 0 3 0x14200 cleaner cleaner 97609 407023 0 0 3 0x14200 reaper reaper 52634 80205 0 0 3 0x14200 pgdaemon pagedaemon 53246 85456 0 0 3 0x14200 bored viomb 10172 322629 0 0 3 0x40014200 acpi0 acpi0 53238 343985 0 0 3 0x14200 bored softnet7 38621 285420 0 0 3 0x14200 bored softnet6 25815 329542 0 0 3 0x14200 bored softnet5 5521 522388 0 0 3 0x14200 bored softnet4 79049 97744 0 0 3 0x14200 bored softnet3 59661 258503 0 0 3 0x14200 bored softnet2 10805 389953 0 0 3 0x14200 bored softnet1 99833 318817 0 0 3 0x14200 bored softnet0 62908 150620 0 0 3 0x14200 bored systqmp 52231 417435 0 0 3 0x14200 bored systq 73913 104375 0 0 2 0x40014200 softclock 46585 262666 0 0 3 0x40014200 idle0 1 65681 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 11193K 11726K 166960K 11682 0 pcb 17 12K 12K 166960K 56 0 rtable 220 8K 8K 166960K 317 0 pf 33 13K 15K 166960K 78 0 ifaddr 46 8K 8K 166960K 53 0 ifgroup 55 2K 2K 166960K 66 0 sysctl 2 1K 9K 166960K 6 0 counters 34 17K 18K 166960K 41 0 ioctlops 0 0K 4K 166960K 94 0 iov 0 0K 28K 166960K 22 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1376 87K 87K 166960K 1562 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 7 0 VM map 2 1K 1K 166960K 2 0 sem 10 0K 0K 166960K 14 0 dirhash 12 2K 2K 166960K 18 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 97K 166960K 347 0 sigio 0 0K 0K 166960K 68 0 proc 60 59K 124K 166960K 484 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 25 0 in_multi 100 7K 7K 166960K 106 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 3 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 73 334K 334K 166960K 73 0 exec 0 0K 2K 166960K 354 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 244 159K 175K 166960K 4735 0 UVM aobj 7 2K 2K 166960K 7 0 pinsyscall 39 78K 96K 166960K 1369 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 1K 166960K 21 0 NDP 12 0K 2K 166960K 32 0 temp 82 8644K 8708K 166960K 5442 0 kqueue 13 20K 28K 166960K 61 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 52 0 49 1 0 1 1 0 8 0 rtentry 136 103 0 13 4 0 4 4 0 8 0 unpcb 144 137 0 112 1 0 1 1 0 8 0 syncache 336 3 0 3 1 0 1 1 0 8 1 tcpcb 736 129 0 123 7 0 7 7 0 8 6 arp 88 12 0 0 1 0 1 1 0 8 0 ipq 40 2 0 0 1 0 1 1 0 8 0 ipqe 40 3 0 0 1 0 1 1 0 8 0 inpcb 328 279 0 268 7 0 7 7 0 8 5 nd6 104 17 0 0 1 0 1 1 0 8 0 pkpcb 40 5 0 5 1 0 1 1 0 8 1 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1072 7 0 6 1 0 1 1 0 8 0 pppxif 1384 1 0 0 1 0 1 1 0 8 0 rttmr 136 1 0 1 1 0 1 1 0 8 1 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 476 0 41 30 0 30 30 0 8 1 art_table 40 479 0 41 5 0 5 5 0 8 0 art_node 32 103 0 23 1 0 1 1 0 8 0 sysvmsgpl 40 35 0 0 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 9 0 1 1 0 1 1 0 8 0 shmpl 112 4 0 0 1 0 1 1 0 8 0 dirhash 1024 21 0 4 3 0 3 3 0 8 0 dino2pl 256 1963 0 461 95 0 95 95 0 8 0 ffsino 256 1963 0 461 95 0 95 95 0 8 0 nchpl 144 2461 0 777 63 0 63 63 0 8 0 rtmask 32 3 0 3 1 0 1 1 0 8 1 uvmvnodes 80 2167 0 0 45 0 45 45 0 8 0 vnodes 216 2167 0 0 121 0 121 121 0 8 0 namei 1024 7960 0 7960 2 0 2 2 0 8 2 kstatmem 264 32 0 8 2 0 2 2 0 8 0 scsiplug 72 3 0 3 1 0 1 1 0 8 1 scxspl 216 9573 0 9573 8 0 8 8 1 8 8 plimitpl 152 62 0 44 1 0 1 1 0 8 0 sigapl 424 630 0 578 7 0 7 7 0 8 1 knotepl 120 11166 0 11119 10 0 10 10 0 8 8 kqueuepl 184 97 0 84 1 0 1 1 0 8 0 pipepl 304 157 0 130 5 0 5 5 0 8 2 fdescpl 448 608 0 578 5 0 5 5 0 8 1 filepl 120 2800 0 2572 9 0 9 9 0 8 1 lockfpl 104 166 0 163 2 0 2 2 0 8 1 lockfspl 48 78 0 75 1 0 1 1 0 8 0 sessionpl 144 21 0 13 1 0 1 1 0 8 0 pgrppl 48 32 0 16 1 0 1 1 0 8 0 ucredpl 104 346 0 330 1 0 1 1 0 8 0 zombiepl 144 582 0 578 1 0 1 1 0 8 0 processpl 1152 630 0 578 5 0 5 5 0 8 1 procpl 664 978 0 919 6 0 6 6 0 8 0 sosppl 168 1 0 0 1 0 1 1 0 8 0 sockpl 552 546 0 507 7 0 7 7 0 8 4 mcl64k 65536 20 0 19 1 0 1 1 0 8 0 mcl9k 9216 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 5 0 5 1 0 1 1 0 8 1 mcl4k 4096 2757 0 2708 14 0 14 14 0 8 7 mcl2k 2048 493 0 491 1 0 1 1 0 8 0 mtagpl 96 9 0 5 1 0 1 1 0 8 0 mbufpl 256 6505 0 6347 27 6 21 27 0 8 8 bufpl 280 4620 0 129 321 0 321 321 0 8 0 anonpl 24 115018 0 111769 44 0 44 44 0 187 21 amapchunkpl 152 21643 0 21114 42 0 42 42 0 158 20 amappl16 200 2147 0 2114 15 4 11 15 0 8 8 amappl15 192 9 0 9 1 0 1 1 0 8 1 amappl14 184 114 0 104 1 0 1 1 0 8 0 amappl13 176 1 0 1 1 0 1 1 0 8 1 amappl12 168 1212 0 1182 3 0 3 3 0 8 1 amappl11 160 46 0 36 1 0 1 1 0 8 0 amappl10 152 10 0 10 1 0 1 1 0 8 1 amappl9 144 253 0 253 1 0 1 1 0 8 1 amappl8 136 19 0 18 1 0 1 1 0 8 0 amappl7 128 180 0 170 1 0 1 1 0 8 0 amappl6 120 168 0 165 1 0 1 1 0 8 0 amappl5 112 126 0 119 1 0 1 1 0 8 0 amappl4 104 284 0 270 1 0 1 1 0 8 0 amappl3 96 2565 0 2446 4 0 4 4 0 8 0 amappl2 88 608 0 554 2 0 2 2 0 8 0 amappl1 80 8702 0 8149 13 0 13 13 0 8 1 amappl 88 4058 0 3878 5 0 5 5 0 92 0 dma4096 4096 2 0 2 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 255 0 255 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 6 0 0 1 0 1 1 0 8 0 uaddrrnd 24 608 0 578 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 608 0 578 1 0 1 1 0 8 0 vmmpekpl 168 6260 0 6235 2 0 2 2 0 8 0 vmmpepl 168 44579 0 42654 92 0 92 92 0 357 6 vmsppl 368 607 0 578 4 0 4 4 0 8 1 rwobjpl 40 16476 0 13433 31 0 31 31 0 8 0 pdppl 4096 1222 0 1156 98 32 66 82 0 8 0 pvpl 32 279559 0 270800 102 0 102 102 0 265 23 pmappl 216 607 0 578 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 390 0 38 11 0 11 11 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace dt_ioctl_record_stop(ffff8000014cee80) at dt_ioctl_record_stop+0x108 sys/dev/dt/dt_dev.c:586 dtclose(21e5f,1,2000,ffff80002a7f5a10) at dtclose+0xd9 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(21e5f,1,2000,ffff80002a7f5a10) at dtclose+0xd9 sys/dev/dt/dt_dev.c:232 spec_close(ffff80003a55fb70) at spec_close+0x466 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd8074668018,1,fffffd8007bfb6e8,ffff80002a7f5a10) at VOP_CLOSE+0x129 sys/kern/vfs_vops.c:156 vn_closefile(fffffd8066d73108,ffff80002a7f5a10) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd8066d73108,ffff80002a7f5a10) at vn_closefile+0x11d sys/kern/vfs_vnops.c:615 fdrop(fffffd8066d73108,ffff80002a7f5a10) at fdrop+0x121 sys/kern/kern_descrip.c:1280 closef(fffffd8066d73108,ffff80002a7f5a10) at closef+0x190 sys/kern/kern_descrip.c:1264 fdfree(ffff80002a7f5a10) at fdfree+0x115 sys/kern/kern_descrip.c:1195 exit1(ffff80002a7f5a10,0,0,1) at exit1+0x576 sys/kern/kern_exit.c:215 sys_exit(ffff80002a7f5a10,ffff80003a55fed0,ffff80003a55fe20) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80003a55fed0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003a55fed0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x795dcab7d1a0, count: -12 ddb> machine ddbcpu 1 No such command ddb> trace dt_ioctl_record_stop(ffff8000014cee80) at dt_ioctl_record_stop+0x108 sys/dev/dt/dt_dev.c:586 dtclose(21e5f,1,2000,ffff80002a7f5a10) at dtclose+0xd9 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(21e5f,1,2000,ffff80002a7f5a10) at dtclose+0xd9 sys/dev/dt/dt_dev.c:232 spec_close(ffff80003a55fb70) at spec_close+0x466 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd8074668018,1,fffffd8007bfb6e8,ffff80002a7f5a10) at VOP_CLOSE+0x129 sys/kern/vfs_vops.c:156 vn_closefile(fffffd8066d73108,ffff80002a7f5a10) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd8066d73108,ffff80002a7f5a10) at vn_closefile+0x11d sys/kern/vfs_vnops.c:615 fdrop(fffffd8066d73108,ffff80002a7f5a10) at fdrop+0x121 sys/kern/kern_descrip.c:1280 closef(fffffd8066d73108,ffff80002a7f5a10) at closef+0x190 sys/kern/kern_descrip.c:1264 fdfree(ffff80002a7f5a10) at fdfree+0x115 sys/kern/kern_descrip.c:1195 exit1(ffff80002a7f5a10,0,0,1) at exit1+0x576 sys/kern/kern_exit.c:215 sys_exit(ffff80002a7f5a10,ffff80003a55fed0,ffff80003a55fe20) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80003a55fed0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003a55fed0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x795dcab7d1a0, count: -12