uvm_fault(0xfffffd806c200d38, 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 210606 94300 0 0 0 1 syz-executor dt_ioctl_record_stop(ffff80000146d000) at dt_ioctl_record_stop+0xf0 sys/dev/dt/dt_dev.c:580 dtclose(11e5f,81,2000,ffff80003c43cf98) at dtclose+0x105 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff80003c43cf98) at dtclose+0x105 sys/dev/dt/dt_dev.c:232 spec_close(ffff80002a31de70) at spec_close+0x45f sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd806f51dbf0,81,fffffd80097fb548,ffff80003c43cf98) at VOP_CLOSE+0x133 sys/kern/vfs_vops.c:156 vn_closefile(fffffd806bfe7e00,ffff80003c43cf98) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd806bfe7e00,ffff80003c43cf98) at vn_closefile+0x12b sys/kern/vfs_vnops.c:615 fdrop(fffffd806bfe7e00,ffff80003c43cf98) at fdrop+0x126 sys/kern/kern_descrip.c:1267 closef(fffffd806bfe7e00,ffff80003c43cf98) at closef+0x192 sys/kern/kern_descrip.c:1251 fdfree(ffff80003c43cf98) at fdfree+0x116 sys/kern/kern_descrip.c:1182 exit1(ffff80003c43cf98,0,0,1) at exit1+0x59c sys/kern/kern_exit.c:215 sys_exit(ffff80003c43cf98,ffff80002a31e1e0,ffff80002a31e130) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80002a31e1e0) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a31e1e0) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7d64a2a090e0, 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(0xfffffd806c200d38, 0x0, 0, 1) -> e ddb{0}> trace dt_ioctl_record_stop(ffff80000146d000) at dt_ioctl_record_stop+0xf0 sys/dev/dt/dt_dev.c:580 dtclose(11e5f,81,2000,ffff80003c43cf98) at dtclose+0x105 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff80003c43cf98) at dtclose+0x105 sys/dev/dt/dt_dev.c:232 spec_close(ffff80002a31de70) at spec_close+0x45f sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd806f51dbf0,81,fffffd80097fb548,ffff80003c43cf98) at VOP_CLOSE+0x133 sys/kern/vfs_vops.c:156 vn_closefile(fffffd806bfe7e00,ffff80003c43cf98) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd806bfe7e00,ffff80003c43cf98) at vn_closefile+0x12b sys/kern/vfs_vnops.c:615 fdrop(fffffd806bfe7e00,ffff80003c43cf98) at fdrop+0x126 sys/kern/kern_descrip.c:1267 closef(fffffd806bfe7e00,ffff80003c43cf98) at closef+0x192 sys/kern/kern_descrip.c:1251 fdfree(ffff80003c43cf98) at fdfree+0x116 sys/kern/kern_descrip.c:1182 exit1(ffff80003c43cf98,0,0,1) at exit1+0x59c sys/kern/kern_exit.c:215 sys_exit(ffff80003c43cf98,ffff80002a31e1e0,ffff80002a31e130) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80002a31e1e0) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a31e1e0) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7d64a2a090e0, count: -12 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff80002a31dda0 rbx 0xffffffff82717950 dtclose rdx 0 rcx 0xffff80003c43cf98 rax 0xffffffff837d5ce8 dt_prov_syscall r8 0xffffffffffffffff r9 0 r10 0xd6c91b4116306126 r11 0x3ca5b06f67c79c31 r12 0xffff80000006ca80 r13 0 r14 0 r15 0xffff800000af2600 rip 0xffffffff82717d30 dt_ioctl_record_stop+0xf0 cs 0x8 rflags 0x10207 __ALIGN_SIZE+0xf207 rsp 0xffff80002a31dd70 ss 0x10 dt_ioctl_record_stop+0xf0: movq 0(%r14),%r12 ddb{0}> show proc PROC (syz-executor) tid=480191 pid=34314 tcnt=0 stat=onproc flags process=1008 proc=2000 runpri=32, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80003c43cf98 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff80003c43cd08,0xffff80003c43dc78 process=0xffff80003b81d380 user=0xffff80002a319000, vmspace=0xfffffd806c200d38 estcpu=36, cpticks=2, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 96645 79141 21112 0 2 0 syz-executor 28545 386047 89040 0 2 0 syz-executor 94300 210606 71375 0 7 0 syz-executor 94300 257734 71375 0 2 0x4000000 syz-executor 8018 332635 10985 0 2 0 syz-executor 8018 232670 10985 0 3 0x4000080 fsleep syz-executor 60598 410482 73955 60929 2 0x10 syz-executor 60598 3195 73955 60929 3 0x4000090 netcon syz-executor 87375 133148 42313 0 2 0 syz-executor 87375 64866 42313 0 3 0x4000080 kqread syz-executor 87375 51407 42313 0 3 0x4000080 fsleep syz-executor 68744 115565 93332 0 3 0x80 nanoslp syz-executor 68744 106744 93332 0 3 0x4000080 kqread syz-executor 68744 368157 93332 0 3 0x4000080 fsleep syz-executor 10985 241473 77856 0 3 0x82 nanoslp syz-executor 73955 384794 77856 0 3 0x82 nanoslp syz-executor 76608 364849 1 0 3 0x80 nanoslp init 71375 18169 77856 0 3 0x82 nanoslp syz-executor 16430 501908 0 0 3 0x14200 acct acct 93332 42740 77856 0 3 0x82 nanoslp syz-executor 21112 402447 77856 0 3 0x82 nanoslp syz-executor 89040 57085 77856 0 3 0x82 nanoslp syz-executor 58367 363636 77856 0 3 0x82 nanoslp syz-executor 51703 300159 0 0 3 0x14200 bored sosplice 62273 75680 22585 0 3 0x100082 sbwait arp 22585 255175 1 0 3 0x10008a sigsusp sh 42313 5543 77856 0 3 0x82 nanoslp syz-executor 77856 13985 92871 0 3 0x82 kqread syz-executor 92871 396596 21436 0 3 0x10008a sigsusp ksh 21436 31334 45712 0 3 0x98 kqread sshd-session 45712 205731 57069 0 3 0x92 kqread sshd-session 57069 116123 1 0 3 0x88 kqread sshd 82888 319993 74124 74 3 0x1100092 bpf pflogd 74124 125473 1 0 3 0x80 sbwait pflogd 66663 357506 78601 73 3 0x1100090 kqread syslogd 78601 35102 1 0 3 0x100082 sbwait syslogd 70497 310794 1 0 3 0x100080 kqread resolvd 37359 117441 32620 77 3 0x100092 kqread dhcpleased 61538 259915 32620 77 3 0x100092 kqread dhcpleased 32620 228037 1 0 3 0x80 kqread dhcpleased 20096 79155 0 0 3 0x14200 bored smr 61514 31875 0 0 2 0x14200 zerothread 17800 265425 0 0 3 0x14200 aiodoned aiodoned 85522 246121 0 0 3 0x14200 syncer update 52911 140290 0 0 3 0x14200 cleaner cleaner 67993 340461 0 0 3 0x14200 reaper reaper 47437 131852 0 0 3 0x14200 pgdaemon pagedaemon 16386 72474 0 0 3 0x14200 bored viomb 61595 371486 0 0 3 0x40014200 acpi0 acpi0 38881 304965 0 0 3 0x40014200 idle1 14653 199896 0 0 3 0x14200 bored softnet3 66812 277886 0 0 3 0x14200 bored softnet2 80456 292114 0 0 3 0x14200 bored softnet1 88434 407052 0 0 3 0x14200 bored softnet0 29995 192899 0 0 3 0x14200 bored systqmp 53487 263876 0 0 3 0x14200 bored systq 44010 68531 0 0 3 0x14200 tmoslp softclockmp 87859 92558 0 0 3 0x40014200 tmoslp softclock 96268 283458 0 0 3 0x40014200 idle0 1 453442 0 0 3 0x80082 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{0}> show all locks Process 94300 (syz-executor) thread 0xffff80003c43d228 (257734) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10249 11080K 11489K 166960K 14575 0 pcb 20 18K 20K 166960K 911 0 rtable 252 13K 13K 166960K 1639 0 pf 42 19K 82K 166960K 336 0 ifaddr 45 9K 10K 166960K 248 0 ifgroup 64 2K 3K 166960K 413 0 sysctl 4 1K 9K 166960K 90 0 counters 72 37K 37K 166960K 526 0 ioctlops 0 0K 8K 166960K 2174 0 iov 0 0K 36K 166960K 324 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1488 94K 95K 166960K 4673 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 20K 36K 166960K 45 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 1K 166960K 122 0 dirhash 12 2K 3K 166960K 99 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 20 73K 248K 166960K 4198 0 sigio 0 0K 0K 166960K 165 0 proc 63 79K 128K 166960K 1454 0 subproc 81 5K 5K 166960K 266 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 569 0 in_multi 98 7K 7K 166960K 429 0 ether_multi 1 0K 0K 166960K 50 0 mrt 2 0K 0K 166960K 29 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 235 1049K 1049K 166960K 235 0 exec 0 0K 1K 166960K 1638 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 45 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 241 157K 195K 166960K 38820 0 UVM aobj 22 6K 6K 166960K 24 0 pinsyscall 45 90K 106K 166960K 5731 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 1K 166960K 320 0 NDP 14 0K 1K 166960K 177 0 temp 82 8684K 8812K 166960K 204247 0 kqueue 17 24K 34K 166960K 802 0 SYN cache 2 8K 16K 166960K 3 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 462 0 458 6 3 3 3 0 8 2 rtentry 176 580 0 483 5 0 5 5 0 8 0 unpcb 144 2607 0 2588 14 11 3 6 0 8 2 syncache 336 12 0 12 5 5 0 1 0 8 0 tcpqe 32 3 0 3 3 3 0 1 0 8 0 tcpcb 736 1400 0 1394 25 21 4 7 0 8 3 arp 128 127 0 111 1 0 1 1 0 8 0 inpcb 328 4526 0 4514 33 26 7 9 0 8 5 nd6 144 80 0 56 1 0 1 1 0 8 0 pkpcb 40 173 0 173 4 3 1 1 0 8 1 kcovpl 48 29 0 20 1 0 1 1 0 8 0 mppekey 1024 35 0 35 2 1 1 1 0 8 1 ppxss 1192 176 0 176 2 1 1 1 0 8 1 pppxif 1504 42 0 42 5 4 1 1 0 8 1 pfstscr 40 4 0 4 2 2 0 1 0 8 0 pffrag 232 57 0 47 1 0 1 1 0 482 0 pffrnode 88 56 0 47 1 0 1 1 0 8 0 pffrent 40 113 0 103 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 pfrktable 1344 3 0 3 1 1 0 1 0 8 0 pfanchor 1288 1 0 1 1 1 0 1 0 8 0 pftag 88 3 0 2 1 0 1 1 0 8 0 pfqueue 320 1 0 1 1 1 0 1 0 8 0 pfstitem 24 218 0 93 1 0 1 1 0 8 0 pfstkey 128 222 0 98 5 0 5 5 0 8 0 pfstate 384 217 0 95 13 0 13 13 0 8 0 pfrule 1344 33 0 27 2 1 1 2 0 8 0 rttmr 136 7 0 7 2 2 0 1 0 8 0 art_heap8 4096 4 0 0 4 0 4 4 0 8 0 art_heap4 256 1726 0 1288 38 6 32 32 0 8 1 art_table 40 1730 0 1288 6 0 6 6 0 8 0 art_node 32 576 0 494 3 0 3 3 0 8 1 sysvmsgpl 40 19 0 7 1 0 1 1 0 8 0 semupl 112 8 0 8 2 2 0 1 0 8 0 semapl 112 118 0 108 1 0 1 1 0 8 0 shmpl 112 21 0 2 1 0 1 1 0 8 0 dirhash 1024 78 0 61 3 0 3 3 0 8 0 dino2pl 256 9226 0 7682 97 0 97 97 0 8 0 ffsino 288 9226 0 7682 111 0 111 111 0 8 0 nchpl 144 14771 0 14188 65 37 28 65 0 8 0 rtmask 32 18 0 18 6 5 1 1 0 8 1 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 216 5926 0 0 330 0 330 330 0 8 0 namei 1024 53163 0 53163 4 3 1 2 0 8 1 percpumem 16 278 0 227 1 0 1 1 0 8 0 kstatmem 264 260 0 228 4 1 3 3 0 8 0 acpiwqpl 32 1 0 1 1 0 1 1 1 8 1 scsiplug 72 15 0 15 5 4 1 1 0 8 1 scxspl 216 109172 0 109172 20 16 4 8 1 8 4 plimitpl 152 847 0 828 1 0 1 1 0 8 0 sigapl 424 4441 0 4387 7 0 7 7 0 8 0 knotepl 120 847 0 0 25 0 25 25 0 8 0 kqueuepl 224 1721 0 1708 20 15 5 5 0 8 3 pipepl 336 503 0 473 5 1 4 5 0 8 1 fdescpl 520 4410 0 4376 3 0 3 3 0 8 0 filepl 160 31089 0 30853 43 27 16 22 0 8 3 lockfpl 104 2749 0 2747 3 2 1 2 0 8 0 lockfspl 48 847 0 845 1 0 1 1 0 8 0 sessionpl 144 52 0 44 1 0 1 1 0 8 0 pgrppl 48 146 0 129 1 0 1 1 0 8 0 ucredpl 104 4893 0 4879 1 0 1 1 0 8 0 zombiepl 144 4388 0 4387 2 1 1 1 0 8 0 processpl 1240 4441 0 4387 5 0 5 5 0 8 0 procpl 656 11165 0 11104 10 3 7 7 0 8 0 sosppl 168 28 0 28 4 3 1 1 0 8 1 sockpl 728 7884 0 7849 56 44 12 19 0 8 8 mcl64k 65536 7 0 0 1 0 1 1 0 8 0 mcl16k 16384 11 0 0 2 0 2 2 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 125 0 0 16 0 16 16 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 71 0 0 7 0 7 7 0 8 0 mtagpl 96 43 0 0 2 0 2 2 0 8 0 mbufpl 256 1213 0 0 73 0 73 73 0 8 0 bufpl 280 47785 0 41643 441 1 440 440 0 8 0 anonpl 32 15952 0 0 129 0 129 129 0 246 0 amapchunkpl 152 133746 0 133255 54 23 31 36 0 158 7 amappl16 200 16685 0 16643 78 62 16 37 0 8 7 amappl15 192 20 0 20 1 1 0 1 0 8 0 amappl14 184 169 0 156 1 0 1 1 0 8 0 amappl13 176 11 0 11 2 2 0 1 0 8 0 amappl12 168 5343 0 5311 3 0 3 3 0 8 0 amappl11 160 60 0 46 1 0 1 1 0 8 0 amappl10 152 5 0 5 1 1 0 1 0 8 0 amappl9 144 252 0 252 1 1 0 1 0 8 0 amappl8 136 20 0 17 1 0 1 1 0 8 0 amappl7 128 154 0 142 1 0 1 1 0 8 0 amappl6 120 352 0 347 1 0 1 1 0 8 0 amappl5 112 192 0 180 1 0 1 1 0 8 0 amappl4 104 408 0 386 1 0 1 1 0 8 0 amappl3 96 27831 0 27720 4 0 4 4 0 8 0 amappl2 88 971 0 904 2 0 2 2 0 8 0 amappl1 80 28167 0 27562 15 0 15 15 0 8 0 amappl 88 37112 0 36946 6 1 5 5 0 92 0 dma65536 65536 1 0 1 1 1 0 1 0 8 0 dma4096 4096 2 0 2 2 2 0 1 0 8 0 dma2048 2048 2 0 2 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 44 0 44 6 5 1 1 0 8 1 dma128 128 260 0 260 5 4 1 1 0 8 1 dma64 64 7 0 7 2 1 1 1 0 8 1 dma32 32 8 0 8 2 1 1 1 0 8 1 dma16 16 19 0 18 1 0 1 1 0 8 0 aobjpl 72 23 0 2 1 0 1 1 0 8 0 uaddrrnd 24 4410 0 4376 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4410 0 4376 1 0 1 1 0 8 0 vmmpekpl 168 33027 0 32960 4 0 4 4 0 8 0 vmmpepl 168 281437 0 279337 143 34 109 124 0 357 5 vmsppl 480 4409 0 4376 5 0 5 5 0 8 0 rwobjpl 72 78456 0 71557 139 6 133 139 0 8 0 pdppl 4096 8827 0 8752 139 64 75 87 0 8 0 pvpl 32 23713 0 0 193 2 191 191 0 265 0 pmappl 256 4409 0 4376 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 547 0 110 13 0 13 13 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace dt_ioctl_record_stop(ffff80000146d000) at dt_ioctl_record_stop+0xf0 sys/dev/dt/dt_dev.c:580 dtclose(11e5f,81,2000,ffff80003c43cf98) at dtclose+0x105 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff80003c43cf98) at dtclose+0x105 sys/dev/dt/dt_dev.c:232 spec_close(ffff80002a31de70) at spec_close+0x45f sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd806f51dbf0,81,fffffd80097fb548,ffff80003c43cf98) at VOP_CLOSE+0x133 sys/kern/vfs_vops.c:156 vn_closefile(fffffd806bfe7e00,ffff80003c43cf98) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd806bfe7e00,ffff80003c43cf98) at vn_closefile+0x12b sys/kern/vfs_vnops.c:615 fdrop(fffffd806bfe7e00,ffff80003c43cf98) at fdrop+0x126 sys/kern/kern_descrip.c:1267 closef(fffffd806bfe7e00,ffff80003c43cf98) at closef+0x192 sys/kern/kern_descrip.c:1251 fdfree(ffff80003c43cf98) at fdfree+0x116 sys/kern/kern_descrip.c:1182 exit1(ffff80003c43cf98,0,0,1) at exit1+0x59c sys/kern/kern_exit.c:215 sys_exit(ffff80003c43cf98,ffff80002a31e1e0,ffff80002a31e130) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80002a31e1e0) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a31e1e0) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7d64a2a090e0, count: -12 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffff8000299ddff0) 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 end of kernel end trace frame: 0x7357a2b50e40, count: 12 ddb{1}> trace x86_ipi_db(ffff8000299ddff0) 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 end of kernel end trace frame: 0x7357a2b50e40, count: -3