login: uvm_fault(0xfffffd806ba19188, 0x0, 0, 1) -> e kernel: page fault trap, code=0 Stopped at dt_ioctl_record_stop+0xf0: movq 0(%r14),%r12 TID PID UID PRFLAGS PFLAGS CPU COMMAND dt_ioctl_record_stop(ffff80000148fb80) at dt_ioctl_record_stop+0xf0 sys/dev/dt/dt_dev.c:580 dtclose(11e5f,81,2000,ffff80002a7e8a60) at dtclose+0xd5 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff80002a7e8a60) at dtclose+0xd5 sys/dev/dt/dt_dev.c:232 spec_close(ffff80003c98b310) at spec_close+0x45f sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd80640cfa38,81,fffffd8007bfb618,ffff80002a7e8a60) at VOP_CLOSE+0x12a sys/kern/vfs_vops.c:156 vn_closefile(fffffd806bbb8010,ffff80002a7e8a60) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd806bbb8010,ffff80002a7e8a60) at vn_closefile+0x11d sys/kern/vfs_vnops.c:615 fdrop(fffffd806bbb8010,ffff80002a7e8a60) at fdrop+0x126 sys/kern/kern_descrip.c:1267 closef(fffffd806bbb8010,ffff80002a7e8a60) at closef+0x190 sys/kern/kern_descrip.c:1251 fdfree(ffff80002a7e8a60) at fdfree+0x115 sys/kern/kern_descrip.c:1182 exit1(ffff80002a7e8a60,0,0,1) at exit1+0x59c sys/kern/kern_exit.c:215 sys_exit(ffff80002a7e8a60,ffff80003c98b680,ffff80003c98b5d0) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80003c98b680) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c98b680) at syscall+0x97e sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7b7a7db04d50, 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(0xfffffd806ba19188, 0x0, 0, 1) -> e ddb> trace dt_ioctl_record_stop(ffff80000148fb80) at dt_ioctl_record_stop+0xf0 sys/dev/dt/dt_dev.c:580 dtclose(11e5f,81,2000,ffff80002a7e8a60) at dtclose+0xd5 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff80002a7e8a60) at dtclose+0xd5 sys/dev/dt/dt_dev.c:232 spec_close(ffff80003c98b310) at spec_close+0x45f sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd80640cfa38,81,fffffd8007bfb618,ffff80002a7e8a60) at VOP_CLOSE+0x12a sys/kern/vfs_vops.c:156 vn_closefile(fffffd806bbb8010,ffff80002a7e8a60) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd806bbb8010,ffff80002a7e8a60) at vn_closefile+0x11d sys/kern/vfs_vnops.c:615 fdrop(fffffd806bbb8010,ffff80002a7e8a60) at fdrop+0x126 sys/kern/kern_descrip.c:1267 closef(fffffd806bbb8010,ffff80002a7e8a60) at closef+0x190 sys/kern/kern_descrip.c:1251 fdfree(ffff80002a7e8a60) at fdfree+0x115 sys/kern/kern_descrip.c:1182 exit1(ffff80002a7e8a60,0,0,1) at exit1+0x59c sys/kern/kern_exit.c:215 sys_exit(ffff80002a7e8a60,ffff80003c98b680,ffff80003c98b5d0) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80003c98b680) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c98b680) at syscall+0x97e sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7b7a7db04d50, count: -12 ddb> show registers rdi 0 rsi 0 rbp 0xffff80003c98b240 rbx 0xffffffff82b92ef0 dtclose rdx 0 rcx 0xffff80002a7e8a60 rax 0xffff80002a7e8a60 r8 0xffffffffffffffff r9 0 r10 0xdc2d16d04800fcae r11 0x65248f009bfdd35c r12 0 r13 0 r14 0 r15 0xffff8000014d7900 rip 0xffffffff82b93270 dt_ioctl_record_stop+0xf0 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c98b210 ss 0x10 dt_ioctl_record_stop+0xf0: movq 0(%r14),%r12 ddb> show proc PROC (syz-executor) tid=204658 pid=41840 tcnt=0 stat=onproc flags process=1008 proc=2000 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80002a7e8a60 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff80002f127738,0xffffffff838a2a80 process=0xffff80002cd20008 user=0xffff80003c986000, vmspace=0xfffffd806ba19188 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 79519 99180 6708 0 3 0x80 nanoslp syz-executor 79519 410644 6708 0 3 0x4000080 sbwait syz-executor 79519 445489 6708 0 3 0x4000080 ttyin syz-executor 79519 267821 6708 0 3 0x4000080 fsleep syz-executor 16563 233211 32221 0 3 0x80 nanoslp syz-executor 16563 396492 32221 0 3 0x4000080 kqsel syz-executor 16563 117694 32221 0 3 0x4000080 fsleep syz-executor 1602 299177 84334 0 3 0x90 nanoslp syz-executor 1602 183988 84334 0 3 0x4000090 piperd syz-executor 1602 108728 84334 0 3 0x4000090 fsleep syz-executor 76743 415428 21083 -1 3 0x90 nanoslp syz-executor 76743 134087 21083 -1 3 0x4000090 kqsel syz-executor 76743 106948 21083 -1 3 0x4000090 lockf syz-executor 76743 160986 21083 -1 3 0x4000090 fsleep syz-executor 275 322511 99791 0 3 0x80 nanoslp syz-executor 275 18500 99791 0 3 0x4000080 nanoslp syz-executor 21239 359664 1340 0 3 0x80 nanoslp syz-executor 21239 243252 1340 0 3 0x4000080 ttyout syz-executor 21239 166492 1340 0 3 0x4000080 fsleep syz-executor 21239 273388 1340 0 3 0x4000080 fsleep syz-executor 21239 80454 1340 0 3 0x4000080 fsleep syz-executor 17329 390415 44901 0 3 0x80 nanoslp syz-executor 17329 272139 44901 0 3 0x4000080 ttyout syz-executor 17329 292493 44901 0 3 0x4000080 fsleep syz-executor 13024 474403 1 0 3 0x82 nanoslp getty 3823 519973 0 0 3 0x14200 bored sosplice 55084 269774 52376 0 3 0x82 nanoslp syz-executor 99791 487384 52376 0 3 0x82 nanoslp syz-executor 6708 350010 52376 0 3 0x82 nanoslp syz-executor 32221 451655 52376 0 3 0x82 nanoslp syz-executor 21083 204063 52376 0 3 0x82 nanoslp syz-executor 1340 51084 52376 0 3 0x82 nanoslp syz-executor 84334 196287 52376 0 3 0x82 nanoslp syz-executor 44901 15071 52376 0 3 0x82 nanoslp syz-executor 52376 178445 41557 0 3 0x82 kqread syz-executor 41557 151117 3592 0 3 0x10008a sigsusp ksh 3592 135040 28835 0 3 0x98 kqread sshd-session 28835 144082 85324 0 3 0x92 kqread sshd-session 85324 401168 1 0 3 0x88 kqread sshd 52958 437069 98332 73 3 0x1100090 kqread syslogd 98332 366188 1 0 3 0x100082 sbwait syslogd 7024 290978 1 0 3 0x100080 kqread resolvd 71772 90899 29577 77 3 0x100092 kqread dhcpleased 26116 258528 29577 77 3 0x100092 kqread dhcpleased 29577 336301 1 0 3 0x80 kqread dhcpleased 6300 299242 0 0 3 0x14200 bored smr 89086 426530 0 0 3 0x14200 pgzero zerothread 44573 384154 0 0 3 0x14200 aiodoned aiodoned 38149 472707 0 0 3 0x14200 syncer update 12806 61677 0 0 3 0x14200 cleaner cleaner 98500 57465 0 0 3 0x14200 reaper reaper 17919 339476 0 0 3 0x14200 pgdaemon pagedaemon 82104 403064 0 0 3 0x14200 bored viomb 60377 237836 0 0 3 0x40014200 acpi0 acpi0 60447 178403 0 0 3 0x14200 bored softnet7 78730 34411 0 0 3 0x14200 bored softnet6 58467 229318 0 0 3 0x14200 bored softnet5 12244 90215 0 0 3 0x14200 bored softnet4 78738 255422 0 0 3 0x14200 bored softnet3 81433 330420 0 0 3 0x14200 bored softnet2 81210 339028 0 0 3 0x14200 bored softnet1 32772 40546 0 0 3 0x14200 bored softnet0 35522 506118 0 0 3 0x14200 bored systqmp 91597 26452 0 0 3 0x14200 bored systq 98289 338943 0 0 3 0x40014200 tmoslp softclock 79709 82235 0 0 3 0x40014200 idle0 1 63380 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 10217 11191K 11532K 166960K 12559 0 pcb 17 14K 16K 166960K 136 0 rtable 194 8K 9K 166960K 337 0 pf 35 14K 19K 166960K 104 0 ifaddr 41 7K 8K 166960K 77 0 ifgroup 54 2K 2K 166960K 112 0 sysctl 4 1K 9K 166960K 44 0 counters 33 17K 18K 166960K 169 0 ioctlops 0 0K 4K 166960K 214 0 iov 1 16K 44K 166960K 46 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1401 88K 88K 166960K 2007 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 11 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 22 0 dirhash 12 2K 2K 166960K 24 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 93K 166960K 681 0 sigio 0 0K 0K 166960K 9 0 proc 60 59K 83K 166960K 550 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 56 0 in_multi 89 6K 7K 166960K 119 0 ether_multi 1 0K 0K 166960K 3 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 91 413K 413K 166960K 91 0 exec 0 0K 1K 166960K 460 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 246 151K 167K 166960K 7702 0 UVM aobj 76 3K 3K 166960K 76 0 pinsyscall 39 78K 94K 166960K 1721 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 31 0 NDP 12 0K 2K 166960K 51 0 temp 60 8675K 8744K 166960K 27583 0 kqueue 14 22K 35K 166960K 141 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 105 0 102 2 0 2 2 0 8 1 rtentry 136 108 0 30 4 0 4 4 0 8 0 unpcb 144 706 0 689 4 0 4 4 0 8 3 syncache 336 6 0 6 1 0 1 1 0 8 1 tcpqe 32 8 0 8 1 0 1 1 0 8 1 tcpcb 736 438 0 433 10 1 9 10 0 8 8 arp 88 13 0 2 1 0 1 1 0 8 0 ipq 40 1 0 0 1 0 1 1 0 8 0 ipqe 40 1 0 0 1 0 1 1 0 8 0 inpcb 328 902 0 890 9 0 9 9 0 8 7 ip6q 72 4 0 2 1 0 1 1 0 8 0 ip6af 40 6 0 4 1 0 1 1 0 8 0 nd6 104 20 0 3 1 0 1 1 0 8 0 pkpcb 40 6 0 5 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1072 132 0 132 1 0 1 1 0 8 1 pppxif 1384 2 0 2 1 0 1 1 0 8 1 pfstscr 40 3 0 3 1 0 1 1 0 8 1 pfanchor 1288 1 0 0 1 0 1 1 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfstkey 128 3 0 3 1 0 1 1 0 8 1 pfstate 384 2 0 2 1 0 1 1 0 8 1 pfrule 1344 7 0 6 1 0 1 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 489 0 125 29 0 29 29 0 8 3 art_table 40 491 0 125 5 0 5 5 0 8 0 art_node 32 108 0 40 1 0 1 1 0 8 0 sysvmsgpl 40 8 0 4 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 20 0 10 1 0 1 1 0 8 0 shmpl 112 73 0 0 3 0 3 3 0 8 0 dirhash 1024 25 0 8 3 0 3 3 0 8 0 dino2pl 256 2606 0 1107 95 0 95 95 0 8 0 ffsino 256 2606 0 1107 95 0 95 95 0 8 0 nchpl 144 3596 0 1910 63 0 63 63 0 8 0 rtmask 32 10 0 10 1 0 1 1 0 8 1 uvmvnodes 80 3101 0 0 64 0 64 64 0 8 0 vnodes 216 3101 0 0 173 0 173 173 0 8 0 namei 1024 12356 0 12356 2 0 2 2 0 8 2 kstatmem 264 70 0 46 3 0 3 3 0 8 1 scsiplug 72 2 0 2 1 0 1 1 0 8 1 scxspl 216 11959 0 11959 8 0 8 8 1 8 8 plimitpl 152 262 0 243 1 0 1 1 0 8 0 sigapl 424 969 0 918 7 0 7 7 0 8 1 knotepl 120 45056 0 45002 32 22 10 24 0 8 8 kqueuepl 184 360 0 343 4 0 4 4 0 8 3 pipepl 304 135 0 107 3 0 3 3 0 8 0 fdescpl 448 946 0 916 5 0 5 5 0 8 1 filepl 120 5964 0 5724 12 0 12 12 0 8 3 lockfpl 104 509 0 505 2 0 2 2 0 8 1 lockfspl 48 183 0 180 1 0 1 1 0 8 0 sessionpl 144 24 0 17 1 0 1 1 0 8 0 pgrppl 48 50 0 35 1 0 1 1 0 8 0 ucredpl 104 879 0 865 1 0 1 1 0 8 0 zombiepl 144 919 0 918 1 0 1 1 0 8 0 processpl 1168 969 0 918 5 0 5 5 0 8 1 procpl 656 1788 0 1720 6 0 6 6 0 8 0 sosppl 168 8 0 8 1 0 1 1 0 8 1 sockpl 552 1740 0 1707 10 0 10 10 0 8 7 mcl64k 65536 157 0 156 1 0 1 1 0 8 0 mcl8k 8192 12 0 12 1 0 1 1 0 8 1 mcl4k 4096 3142 0 3092 12 0 12 12 0 8 5 mcl2k 2048 1089 0 1085 3 0 3 3 0 8 1 mtagpl 96 112 0 8 3 0 3 3 0 8 0 mbufpl 256 11163 0 10897 46 19 27 46 0 8 7 bufpl 280 4222 0 128 293 0 293 293 0 8 0 anonpl 24 163949 0 159826 51 0 51 51 0 187 24 amapchunkpl 152 25066 0 24521 35 0 35 35 0 158 14 amappl16 200 3374 0 3293 17 5 12 15 0 8 7 amappl15 192 5 0 5 1 0 1 1 0 8 1 amappl14 184 139 0 129 1 0 1 1 0 8 0 amappl13 176 6 0 6 1 0 1 1 0 8 1 amappl12 168 1563 0 1532 3 0 3 3 0 8 1 amappl11 160 55 0 45 1 0 1 1 0 8 0 amappl10 152 7 0 7 1 0 1 1 0 8 1 amappl9 144 245 0 245 1 0 1 1 0 8 1 amappl8 136 26 0 25 1 0 1 1 0 8 0 amappl7 128 111 0 101 1 0 1 1 0 8 0 amappl6 120 176 0 173 1 0 1 1 0 8 0 amappl5 112 125 0 118 1 0 1 1 0 8 0 amappl4 104 286 0 270 1 0 1 1 0 8 0 amappl3 96 4806 0 4684 3 0 3 3 0 8 0 amappl2 88 628 0 572 2 0 2 2 0 8 0 amappl1 80 10513 0 9955 14 0 14 14 0 8 1 amappl 88 6954 0 6772 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 8 0 8 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 75 0 0 2 0 2 2 0 8 0 uaddrrnd 24 946 0 916 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 946 0 916 1 0 1 1 0 8 0 vmmpekpl 168 8621 0 8595 2 0 2 2 0 8 0 vmmpepl 168 65203 0 63219 92 0 92 92 0 357 5 vmsppl 368 945 0 916 4 0 4 4 0 8 1 rwobjpl 40 22489 0 18379 42 0 42 42 0 8 0 pdppl 4096 1899 0 1832 105 38 67 81 0 8 0 pvpl 32 434432 0 423354 127 0 127 127 0 265 36 pmappl 216 945 0 916 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 422 0 58 11 0 11 11 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace dt_ioctl_record_stop(ffff80000148fb80) at dt_ioctl_record_stop+0xf0 sys/dev/dt/dt_dev.c:580 dtclose(11e5f,81,2000,ffff80002a7e8a60) at dtclose+0xd5 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff80002a7e8a60) at dtclose+0xd5 sys/dev/dt/dt_dev.c:232 spec_close(ffff80003c98b310) at spec_close+0x45f sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd80640cfa38,81,fffffd8007bfb618,ffff80002a7e8a60) at VOP_CLOSE+0x12a sys/kern/vfs_vops.c:156 vn_closefile(fffffd806bbb8010,ffff80002a7e8a60) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd806bbb8010,ffff80002a7e8a60) at vn_closefile+0x11d sys/kern/vfs_vnops.c:615 fdrop(fffffd806bbb8010,ffff80002a7e8a60) at fdrop+0x126 sys/kern/kern_descrip.c:1267 closef(fffffd806bbb8010,ffff80002a7e8a60) at closef+0x190 sys/kern/kern_descrip.c:1251 fdfree(ffff80002a7e8a60) at fdfree+0x115 sys/kern/kern_descrip.c:1182 exit1(ffff80002a7e8a60,0,0,1) at exit1+0x59c sys/kern/kern_exit.c:215 sys_exit(ffff80002a7e8a60,ffff80003c98b680,ffff80003c98b5d0) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80003c98b680) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c98b680) at syscall+0x97e sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7b7a7db04d50, count: -12 ddb> machine ddbcpu 1 No such command ddb> trace dt_ioctl_record_stop(ffff80000148fb80) at dt_ioctl_record_stop+0xf0 sys/dev/dt/dt_dev.c:580 dtclose(11e5f,81,2000,ffff80002a7e8a60) at dtclose+0xd5 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff80002a7e8a60) at dtclose+0xd5 sys/dev/dt/dt_dev.c:232 spec_close(ffff80003c98b310) at spec_close+0x45f sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd80640cfa38,81,fffffd8007bfb618,ffff80002a7e8a60) at VOP_CLOSE+0x12a sys/kern/vfs_vops.c:156 vn_closefile(fffffd806bbb8010,ffff80002a7e8a60) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd806bbb8010,ffff80002a7e8a60) at vn_closefile+0x11d sys/kern/vfs_vnops.c:615 fdrop(fffffd806bbb8010,ffff80002a7e8a60) at fdrop+0x126 sys/kern/kern_descrip.c:1267 closef(fffffd806bbb8010,ffff80002a7e8a60) at closef+0x190 sys/kern/kern_descrip.c:1251 fdfree(ffff80002a7e8a60) at fdfree+0x115 sys/kern/kern_descrip.c:1182 exit1(ffff80002a7e8a60,0,0,1) at exit1+0x59c sys/kern/kern_exit.c:215 sys_exit(ffff80002a7e8a60,ffff80003c98b680,ffff80003c98b5d0) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80003c98b680) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c98b680) at syscall+0x97e sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7b7a7db04d50, count: -12