login: uvm_fault(0xfffffd806bd919a8, 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 145698 23073 0 0x2 0 1 syz-executor dt_ioctl_record_stop(ffff800000afa000) at dt_ioctl_record_stop+0x108 sys/dev/dt/dt_dev.c:593 dtclose(11e5f,81,2000,ffff800033bef248) at dtclose+0x109 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff800033bef248) at dtclose+0x109 sys/dev/dt/dt_dev.c:239 spec_close(ffff8000398024f0) at spec_close+0x466 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd805ebffdb8,81,fffffd80097fb6e8,ffff800033bef248) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffffd806be6dcc0,ffff800033bef248) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd806be6dcc0,ffff800033bef248) at vn_closefile+0x12b sys/kern/vfs_vnops.c:615 fdrop(fffffd806be6dcc0,ffff800033bef248) at fdrop+0x121 sys/kern/kern_descrip.c:1280 closef(fffffd806be6dcc0,ffff800033bef248) at closef+0x192 sys/kern/kern_descrip.c:1264 fdfree(ffff800033bef248) at fdfree+0x116 sys/kern/kern_descrip.c:1195 exit1(ffff800033bef248,0,0,1) at exit1+0x576 sys/kern/kern_exit.c:215 sys_exit(ffff800033bef248,ffff800039802860,ffff8000398027b0) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff800039802860) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff800039802860) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7cab36e25060, 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic *cpu0: uvm_fault(0xfffffd806bd919a8, 0x0, 0, 1) -> e ddb{0}> trace dt_ioctl_record_stop(ffff800000afa000) at dt_ioctl_record_stop+0x108 sys/dev/dt/dt_dev.c:593 dtclose(11e5f,81,2000,ffff800033bef248) at dtclose+0x109 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff800033bef248) at dtclose+0x109 sys/dev/dt/dt_dev.c:239 spec_close(ffff8000398024f0) at spec_close+0x466 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd805ebffdb8,81,fffffd80097fb6e8,ffff800033bef248) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffffd806be6dcc0,ffff800033bef248) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd806be6dcc0,ffff800033bef248) at vn_closefile+0x12b sys/kern/vfs_vnops.c:615 fdrop(fffffd806be6dcc0,ffff800033bef248) at fdrop+0x121 sys/kern/kern_descrip.c:1280 closef(fffffd806be6dcc0,ffff800033bef248) at closef+0x192 sys/kern/kern_descrip.c:1264 fdfree(ffff800033bef248) at fdfree+0x116 sys/kern/kern_descrip.c:1195 exit1(ffff800033bef248,0,0,1) at exit1+0x576 sys/kern/kern_exit.c:215 sys_exit(ffff800033bef248,ffff800039802860,ffff8000398027b0) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff800039802860) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff800039802860) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7cab36e25060, count: -12 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff800039802420 rbx 0x1 rdx 0 rcx 0xffff800033bef248 rax 0xffffffff838286a8 dt_prov_syscall r8 0 r9 0 r10 0xf13d4fb74365287e r11 0xefb91c83d7f42bac r12 0 r13 0 r14 0 r15 0xffff8000015e1200 rip 0xffffffff822bd948 dt_ioctl_record_stop+0x108 cs 0x8 rflags 0x10207 __ALIGN_SIZE+0xf207 rsp 0xffff8000398023f0 ss 0 dt_ioctl_record_stop+0x108: movq 0(%r14),%r14 ddb{0}> show proc PROC (syz-executor) tid=94180 pid=28075 tcnt=0 stat=onproc flags process=1008 proc=2000 runpri=32, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff800033bef248 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff80003a4107f0,0xffff800033bee2c8 process=0xffff800035ff9d00 user=0xffff8000397fd000, vmspace=0xfffffd806bd919a8 estcpu=36, cpticks=5, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 29007 252232 63684 0 2 0 syz-executor 45036 212724 78439 0 2 0 syz-executor 45036 505184 78439 0 3 0x4000080 fsleep syz-executor 22151 376616 52631 0 2 0 syz-executor 22151 495467 52631 0 3 0x4000080 fsleep syz-executor 3286 51134 35588 0 3 0x80 nanoslp syz-executor 3286 4183 35588 0 3 0x4000080 msgwait syz-executor 3286 416644 35588 0 3 0x4000080 fsleep syz-executor 78198 176392 1 0 3 0x100083 ttyin getty 78439 224367 284 0 3 0x82 nanoslp syz-executor 17334 379704 0 0 3 0x14200 acct acct 12388 159677 0 0 3 0x14200 bored sosplice 63684 416062 284 0 3 0x82 nanoslp syz-executor 8716 238337 284 0 3 0x82 nanoslp syz-executor 29513 514275 284 0 3 0x82 wait syz-executor 35588 253606 284 0 3 0x82 nanoslp syz-executor 52631 161143 284 0 3 0x82 nanoslp syz-executor 82710 70411 284 0 3 0x82 wait syz-executor 23073 145698 284 0 7 0x2 syz-executor 284 424245 14932 0 3 0x82 kqread syz-executor 14932 470122 33057 0 3 0x10008a sigsusp ksh 33057 145434 81479 0 3 0x98 kqread sshd-session 81479 467888 79255 0 3 0x92 kqread sshd-session 79255 51241 1 0 3 0x88 kqread sshd 64119 76386 81596 74 3 0x1100092 bpf pflogd 81596 218443 1 0 3 0x80 sbwait pflogd 98521 413030 19785 73 3 0x1100090 kqread syslogd 19785 267792 1 0 3 0x100082 sbwait syslogd 46191 135938 1 0 3 0x100080 kqread resolvd 35883 466202 60253 77 3 0x100092 kqread dhcpleased 57212 501906 60253 77 3 0x100092 kqread dhcpleased 60253 163766 1 0 3 0x80 kqread dhcpleased 8950 86406 0 0 3 0x14200 bored smr 91270 165109 0 0 3 0x14200 pgzero zerothread 30087 240631 0 0 3 0x14200 aiodoned aiodoned 36724 318298 0 0 3 0x14200 syncer update 51612 251245 0 0 3 0x14200 cleaner cleaner 38806 438293 0 0 3 0x14200 reaper reaper 34793 228001 0 0 3 0x14200 pgdaemon pagedaemon 68844 522226 0 0 3 0x14200 bored viomb 230 327678 0 0 3 0x40014200 acpi0 acpi0 24293 140765 0 0 3 0x40014200 idle1 67445 357337 0 0 3 0x14200 bored softnet1 88696 141120 0 0 3 0x14200 bored softnet0 33919 487834 0 0 3 0x14200 smrbar systqmp 21845 340477 0 0 3 0x14200 bored systq 92492 388252 0 0 3 0x14200 tmoslp softclockmp 59969 461418 0 0 3 0x40014200 tmoslp softclock 90849 196149 0 0 3 0x40014200 idle0 1 427981 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 33919 (systqmp) thread 0xffff8000ffffea60 (487834) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10240 11070K 11331K 166960K 11938 0 pcb 17 16K 28K 166960K 248 0 rtable 211 8K 9K 166960K 455 0 pf 37 18K 23K 166960K 135 0 ifaddr 40 7K 8K 166960K 83 0 ifgroup 51 2K 2K 166960K 129 0 sysctl 4 1K 9K 166960K 16 0 counters 66 36K 37K 166960K 152 0 ioctlops 0 0K 4K 166960K 1603 0 iov 0 0K 24K 166960K 37 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1399 88K 89K 166960K 1957 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 9 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 26 0 dirhash 12 2K 2K 166960K 21 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 93K 166960K 728 0 sigio 0 0K 0K 166960K 8 0 proc 73 131K 147K 166960K 622 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 0 0K 0K 166960K 72 0 in_multi 87 6K 7K 166960K 138 0 ether_multi 1 0K 0K 166960K 4 0 mrt 1 0K 0K 166960K 5 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 271 1208K 1208K 166960K 271 0 exec 0 0K 1K 166960K 586 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 239 159K 170K 166960K 8602 0 UVM aobj 37 2K 2K 166960K 37 0 pinsyscall 42 84K 107K 166960K 1920 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 35 0 NDP 11 0K 2K 166960K 54 0 temp 57 8651K 8721K 166960K 30017 0 kqueue 13 20K 34K 166960K 164 0 SYN cache 2 16K 16K 166960K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 26 0 0 1 0 1 1 0 8 0 rtpcb 120 73 0 70 1 0 1 1 0 8 0 rtentry 176 145 0 54 6 0 6 6 0 8 0 unpcb 144 359 0 340 3 1 2 2 0 8 1 syncache 336 4 0 4 2 2 0 1 0 8 0 tcpcb 736 359 0 355 13 7 6 13 0 8 5 arp 136 23 0 9 1 0 1 1 0 8 0 inpcb 328 913 0 906 15 9 6 13 0 8 5 nd6 152 34 0 8 2 0 2 2 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 kcovpl 48 9 0 1 1 0 1 1 0 8 0 ppxss 1192 32 0 32 2 1 1 1 0 8 1 pppxif 1504 4 0 4 2 2 0 1 0 8 0 pfstscr 40 10 0 10 2 2 0 1 0 8 0 pffrag 232 8 0 3 1 0 1 1 0 482 0 pffrnode 88 7 0 3 1 0 1 1 0 8 0 pffrent 40 12 0 7 1 0 1 1 0 8 0 pfosfp 40 1429 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1429 0 714 21 0 21 21 0 8 0 pfanchor 1288 3 0 0 1 0 1 1 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfstitem 24 71 0 13 1 0 1 1 0 8 0 pfstkey 128 86 0 27 2 0 2 2 0 8 0 pfstate 384 78 0 21 6 0 6 6 0 8 0 pfrule 1344 24 0 19 2 1 1 2 0 8 0 rttmr 136 1 0 1 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 587 0 177 30 0 30 30 0 8 2 art_table 40 588 0 177 5 0 5 5 0 8 0 art_node 32 144 0 64 1 0 1 1 0 8 0 sysvmsgpl 40 9 0 7 2 1 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 22 0 12 1 0 1 1 0 8 0 shmpl 112 34 0 0 1 0 1 1 0 8 0 dirhash 1024 23 0 6 3 0 3 3 0 8 0 dino2pl 256 2795 0 1288 95 0 95 95 0 8 0 ffsino 296 2795 0 1288 117 0 117 117 0 8 0 nchpl 144 3813 0 2113 64 0 64 64 0 8 0 rtmask 32 7 0 7 3 2 1 1 0 8 1 vnodes 216 3176 0 0 177 0 177 177 0 8 0 namei 1024 12717 0 12717 2 1 1 2 0 8 1 percpumem 16 91 0 43 1 0 1 1 0 8 0 kstatmem 264 74 0 50 4 1 3 3 0 8 1 scsiplug 72 4 0 4 1 1 0 1 0 8 0 scxspl 216 18363 0 18363 6 4 2 4 1 8 2 plimitpl 152 324 0 307 1 0 1 1 0 8 0 sigapl 424 1048 0 999 7 1 6 7 0 8 0 knotepl 120 534 0 0 17 0 17 17 0 8 0 kqueuepl 224 284 0 275 4 3 1 4 0 8 0 pipepl 344 185 0 157 3 0 3 3 0 8 0 fdescpl 528 1030 0 999 3 0 3 3 0 8 0 filepl 160 6169 0 5949 20 5 15 18 0 8 4 lockfpl 104 345 0 343 2 1 1 2 0 8 0 lockfspl 48 152 0 150 1 0 1 1 0 8 0 sessionpl 144 25 0 16 1 0 1 1 0 8 0 pgrppl 48 38 0 21 1 0 1 1 0 8 0 ucredpl 104 1139 0 1123 1 0 1 1 0 8 0 zombiepl 144 1002 0 999 1 0 1 1 0 8 0 processpl 1232 1048 0 999 5 0 5 5 0 8 0 procpl 664 2105 0 2052 6 0 6 6 0 8 0 sosppl 168 6 0 6 2 2 0 1 0 8 0 sockpl 752 1428 0 1399 23 15 8 18 0 8 5 mcl64k 65536 6 0 0 1 0 1 1 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 116 0 0 15 0 15 15 0 8 0 mcl2k 2048 53 0 0 7 0 7 7 0 8 0 mtagpl 96 6 0 0 1 0 1 1 0 8 0 mbufpl 256 250 0 0 16 0 16 16 0 8 0 bufpl 280 6990 0 853 439 0 439 439 0 8 0 anonpl 32 8160 0 0 66 0 66 66 0 246 0 amapchunkpl 152 27292 0 26836 30 4 26 29 0 158 5 amappl16 200 4072 0 4039 22 6 16 17 0 8 9 amappl15 192 5 0 5 1 1 0 1 0 8 0 amappl14 184 1 0 1 1 1 0 1 0 8 0 amappl13 176 448 0 446 1 0 1 1 0 8 0 amappl12 168 1407 0 1365 3 0 3 3 0 8 0 amappl11 160 9 0 9 1 1 0 1 0 8 0 amappl10 152 48 0 34 1 0 1 1 0 8 0 amappl9 144 258 0 258 1 1 0 1 0 8 0 amappl8 136 28 0 25 1 0 1 1 0 8 0 amappl7 128 86 0 85 1 0 1 1 0 8 0 amappl6 120 297 0 284 1 0 1 1 0 8 0 amappl5 112 90 0 79 1 0 1 1 0 8 0 amappl4 104 435 0 406 1 0 1 1 0 8 0 amappl3 96 4774 0 4689 4 1 3 3 0 8 0 amappl2 88 1159 0 1082 2 0 2 2 0 8 0 amappl1 80 12165 0 11564 17 2 15 15 0 8 0 amappl 88 7709 0 7550 5 0 5 5 0 92 0 uvmvnodes 80 3176 0 0 65 0 65 65 0 8 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 7 0 7 2 1 1 1 0 8 1 dma128 128 254 0 254 2 2 0 1 0 8 0 dma64 64 8 0 8 2 1 1 1 0 8 1 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 19 0 18 1 0 1 1 0 8 0 aobjpl 72 36 0 0 1 0 1 1 0 8 0 uaddrrnd 24 1030 0 999 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1030 0 999 1 0 1 1 0 8 0 vmmpekpl 168 10220 0 10174 3 0 3 3 0 8 0 vmmpepl 168 72726 0 70809 101 1 100 100 0 357 8 vmsppl 488 1029 0 999 6 1 5 5 0 8 0 rwobjpl 80 25606 0 21479 88 0 88 88 0 8 0 pdppl 4096 2068 0 1998 110 38 72 86 0 8 2 pvpl 32 16149 0 0 131 0 131 131 0 265 0 pmappl 256 1029 0 999 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 304 0 50 8 0 8 8 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace dt_ioctl_record_stop(ffff800000afa000) at dt_ioctl_record_stop+0x108 sys/dev/dt/dt_dev.c:593 dtclose(11e5f,81,2000,ffff800033bef248) at dtclose+0x109 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff800033bef248) at dtclose+0x109 sys/dev/dt/dt_dev.c:239 spec_close(ffff8000398024f0) at spec_close+0x466 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd805ebffdb8,81,fffffd80097fb6e8,ffff800033bef248) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffffd806be6dcc0,ffff800033bef248) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd806be6dcc0,ffff800033bef248) at vn_closefile+0x12b sys/kern/vfs_vnops.c:615 fdrop(fffffd806be6dcc0,ffff800033bef248) at fdrop+0x121 sys/kern/kern_descrip.c:1280 closef(fffffd806be6dcc0,ffff800033bef248) at closef+0x192 sys/kern/kern_descrip.c:1264 fdfree(ffff800033bef248) at fdfree+0x116 sys/kern/kern_descrip.c:1195 exit1(ffff800033bef248,0,0,1) at exit1+0x576 sys/kern/kern_exit.c:215 sys_exit(ffff800033bef248,ffff800039802860,ffff8000398027b0) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff800039802860) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff800039802860) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7cab36e25060, count: -12 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffff8000299edff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff839bf018) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:134 [inline] __mp_lock(ffffffff839bf018) at __mp_lock+0x192 sys/kern/kern_lock.c:165 syscall(ffff80002a300f30) at syscall+0xaf4 mi_syscall sys/sys/syscall_mi.h:175 [inline] syscall(ffff80002a300f30) at syscall+0xaf4 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7191b3d3a550, count: 9 ddb{1}> trace x86_ipi_db(ffff8000299edff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff839bf018) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:134 [inline] __mp_lock(ffffffff839bf018) at __mp_lock+0x192 sys/kern/kern_lock.c:165 syscall(ffff80002a300f30) at syscall+0xaf4 mi_syscall sys/sys/syscall_mi.h:175 [inline] syscall(ffff80002a300f30) at syscall+0xaf4 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7191b3d3a550, count: -6