uvm_fault(0xfffffd800e303020, 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 *109272 82772 0 0 0x4000000 0K syz-executor 428811 62321 0 0 0 1 syz-executor dt_ioctl_record_stop(ffff800001680000) at dt_ioctl_record_stop+0x108 sys/dev/dt/dt_dev.c:593 dtclose(21e5f,81,2000,ffff8000fffee7e0) at dtclose+0x109 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(21e5f,81,2000,ffff8000fffee7e0) at dtclose+0x109 sys/dev/dt/dt_dev.c:239 spec_close(ffff80003c40d710) at spec_close+0x466 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd807229b798,81,fffffd80097fd270,ffff8000fffee7e0) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffffd806c2294a0,ffff8000fffee7e0) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd806c2294a0,ffff8000fffee7e0) at vn_closefile+0x12b sys/kern/vfs_vnops.c:615 fdrop(fffffd806c2294a0,ffff8000fffee7e0) at fdrop+0x121 sys/kern/kern_descrip.c:1281 closef(fffffd806c2294a0,ffff8000fffee7e0) at closef+0x192 sys/kern/kern_descrip.c:1265 syscall(ffff80003c40d970) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c40d970) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd1c74b008b0, count: 6 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(0xfffffd800e303020, 0x0, 0, 1) -> e ddb{0}> trace dt_ioctl_record_stop(ffff800001680000) at dt_ioctl_record_stop+0x108 sys/dev/dt/dt_dev.c:593 dtclose(21e5f,81,2000,ffff8000fffee7e0) at dtclose+0x109 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(21e5f,81,2000,ffff8000fffee7e0) at dtclose+0x109 sys/dev/dt/dt_dev.c:239 spec_close(ffff80003c40d710) at spec_close+0x466 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd807229b798,81,fffffd80097fd270,ffff8000fffee7e0) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffffd806c2294a0,ffff8000fffee7e0) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd806c2294a0,ffff8000fffee7e0) at vn_closefile+0x12b sys/kern/vfs_vnops.c:615 fdrop(fffffd806c2294a0,ffff8000fffee7e0) at fdrop+0x121 sys/kern/kern_descrip.c:1281 closef(fffffd806c2294a0,ffff8000fffee7e0) at closef+0x192 sys/kern/kern_descrip.c:1265 syscall(ffff80003c40d970) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c40d970) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd1c74b008b0, count: -9 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff80003c40d640 rbx 0x1 rdx 0 rcx 0xffff8000fffee7e0 rax 0xffffffff838f4fa0 dt_prov_syscall r8 0xffffffff82f2e680 uvm_map_inentry_sp r9 0x1 r10 0 r11 0x9a29d81a6c3f9d4a r12 0 r13 0 r14 0 r15 0xffff80000163ab00 rip 0xffffffff82270738 dt_ioctl_record_stop+0x108 cs 0x8 rflags 0x10207 __ALIGN_SIZE+0xf207 rsp 0xffff80003c40d610 ss 0x10 dt_ioctl_record_stop+0x108: movq 0(%r14),%r14 ddb{0}> show proc PROC (syz-executor) tid=109272 pid=82772 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003afdcfb0,0xffff8000fffee028 process=0xffff80002a3a1828 user=0xffff80003c408000, vmspace=0xfffffd800e303020 estcpu=36, cpticks=2, pctcpu=0.0, user=0, sys=2, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 85768 160322 58265 0 2 0 syz-executor 85768 430091 58265 0 3 0x4000080 fsleep syz-executor 674 283766 37436 0 2 0 syz-executor 674 514173 37436 0 3 0x4000080 fsleep syz-executor 674 89377 37436 0 2 0x4000000 syz-executor 82772 4955 92581 0 2 0 syz-executor *82772 109272 92581 0 7 0x4000000 syz-executor 82772 78294 92581 0 3 0x4000080 fsleep syz-executor 82772 110954 92581 0 3 0x4000080 fsleep syz-executor 50886 75308 78630 0 3 0x80 nanoslp syz-executor 50886 194415 78630 0 3 0x4000080 kqread syz-executor 50886 506189 78630 0 3 0x4000080 fsleep syz-executor 62321 428811 54548 0 7 0 syz-executor 62321 80339 54548 0 3 0x4000080 fsleep syz-executor 62321 448808 54548 0 3 0x4000080 fsleep syz-executor 90902 22018 72696 0 3 0x3000 suspend syz-executor 90902 495324 72696 0 2 0x4081000 syz-executor 90902 211239 72696 0 3 0x4081000 inode syz-executor 90902 422255 72696 0 3 0x4081000 inode syz-executor 54548 129214 48975 0 2 0xc82 syz-executor 50020 401624 1 0 3 0x100083 ttyin getty 79036 224153 48975 0 2 0xc82 syz-executor 78630 377431 48975 0 3 0x82 nanoslp syz-executor 99276 448434 48975 0 2 0x2 syz-executor 72696 422677 48975 0 2 0xc82 syz-executor 58265 85620 48975 0 3 0x82 nanoslp syz-executor 37436 140163 48975 0 3 0x82 nanoslp syz-executor 92581 448404 48975 0 3 0x82 nanoslp syz-executor 48975 95377 66510 0 3 0x82 kqread syz-executor 66510 471131 90513 0 3 0x10008a sigsusp ksh 90513 433180 17199 0 3 0x98 kqread sshd-session 17199 51428 60310 0 3 0x92 kqread sshd-session 60310 457070 1 0 3 0x88 kqread sshd 95024 464320 8542 74 3 0x1100092 bpf pflogd 8542 432829 1 0 3 0x80 sbwait pflogd 81244 173107 33348 73 3 0x1100090 kqread syslogd 33348 43220 1 0 3 0x100082 sbwait syslogd 31305 62924 1 0 3 0x100080 kqread resolvd 36764 397457 97283 77 3 0x100092 kqread dhcpleased 51901 523971 97283 77 3 0x100092 kqread dhcpleased 97283 249591 1 0 3 0x80 kqread dhcpleased 56584 516365 0 0 3 0x14200 bored smr 34769 113643 0 0 2 0x14200 zerothread 52847 488100 0 0 3 0x14200 aiodoned aiodoned 47828 203173 0 0 3 0x14200 syncer update 81501 223575 0 0 3 0x14200 cleaner cleaner 70158 6928 0 0 3 0x14200 reaper reaper 75422 226508 0 0 3 0x14200 pgdaemon pagedaemon 50909 369240 0 0 3 0x14200 bored viomb 61062 76456 0 0 3 0x40014200 acpi0 acpi0 88855 406844 0 0 3 0x40014200 idle1 29642 254716 0 0 3 0x14200 bored softnet1 67741 14575 0 0 3 0x14200 bored softnet0 24249 404145 0 0 3 0x14200 bored systqmp 97195 509058 0 0 3 0x14200 bored systq 38827 176960 0 0 3 0x14200 tmoslp softclockmp 49868 206036 0 0 3 0x40014200 tmoslp softclock 11251 101617 0 0 3 0x40014200 idle0 1 249621 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 82772 (syz-executor) thread 0xffff8000fffee7e0 (109272) Process 62321 (syz-executor) thread 0xffff80003afdc2b8 (428811) Process 90902 (syz-executor) thread 0xffff8000fffeefa8 (495324) Process 90902 (syz-executor) thread 0xffff8000fffee2b0 (211239) Process 99276 (syz-executor) thread 0xffff8000fffef770 (448434) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11075 12140K 13011K 166960K 12834 0 pcb 17 15K 18K 166960K 130 0 rtable 172 15K 15K 166960K 473 0 pf 30 16K 21K 166960K 125 0 ifaddr 32 5K 7K 166960K 91 0 ifgroup 47 2K 2K 166960K 144 0 sysctl 2 1K 9K 166960K 11 0 counters 66 36K 38K 166960K 160 0 ioctlops 0 0K 4K 166960K 1771 0 iov 0 0K 16K 166960K 57 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1380 87K 87K 166960K 1900 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 7 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 25 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 89K 166960K 549 0 sigio 0 0K 0K 166960K 3 0 proc 72 115K 164K 166960K 635 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 40 0 in_multi 66 4K 7K 166960K 127 0 ether_multi 1 0K 0K 166960K 2 0 mrt 0 0K 0K 166960K 15 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 79 360K 360K 166960K 79 0 exec 0 0K 1K 166960K 444 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 167K 185K 166960K 7041 0 UVM aobj 12 4K 4K 166960K 14 0 pinsyscall 42 84K 100K 166960K 1766 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 33 0 NDP 10 0K 2K 166960K 58 0 temp 54 9082K 9150K 166960K 35736 0 kqueue 13 20K 28K 166960K 94 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 196 0 193 3 1 2 3 0 8 1 rtentry 176 144 0 77 5 0 5 5 0 8 0 unpcb 144 375 0 358 4 1 3 4 0 8 2 syncache 336 6 0 6 3 2 1 1 0 8 1 tcpcb 736 103 0 99 1 0 1 1 0 8 0 arp 136 24 0 11 1 0 1 1 0 8 0 inpcb 328 524 0 517 15 13 2 15 0 8 1 nd6 152 29 0 12 1 0 1 1 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 1576 8 0 8 2 1 1 1 0 8 1 pffrag 232 4 0 0 1 0 1 1 0 482 0 pffrnode 88 4 0 0 1 0 1 1 0 8 0 pffrent 40 5 0 1 1 0 1 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfrktable 1344 1 0 1 1 0 1 1 0 8 1 pfanchor 1288 3 0 0 1 0 1 1 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfqueue 320 65 0 65 1 1 0 1 0 8 0 pfstitem 24 35 0 11 1 0 1 1 0 8 0 pfstkey 128 35 0 11 2 0 2 2 0 8 0 pfstate 448 35 0 11 4 0 4 4 0 8 0 pfrule 1360 23 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 608 0 292 29 6 23 29 0 8 0 art_table 40 609 0 292 5 0 5 5 0 8 0 art_node 32 144 0 86 1 0 1 1 0 8 0 sysvmsgpl 40 8 0 3 1 0 1 1 0 8 0 semapl 112 23 0 13 1 0 1 1 0 8 0 shmpl 112 11 0 2 1 0 1 1 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 2450 0 986 93 0 93 93 0 8 0 ffsino 296 2450 0 986 114 0 114 114 0 8 0 nchpl 144 3234 0 1530 64 0 64 64 0 8 0 rtmask 32 4 0 4 1 1 0 1 0 8 0 vnodes 216 2823 0 0 157 0 157 157 0 8 0 namei 1024 11764 0 11762 5 3 2 2 0 8 1 percpumem 16 95 0 47 1 0 1 1 0 8 0 kstatmem 264 84 0 60 3 1 2 3 0 8 0 scsiplug 72 2 0 2 2 2 0 1 0 8 0 scxspl 216 16886 0 16886 11 9 2 8 1 8 2 plimitpl 152 117 0 99 1 0 1 1 0 8 0 sigapl 424 873 0 826 7 1 6 7 0 8 0 knotepl 120 318 0 0 10 0 10 10 0 8 0 kqueuepl 224 198 0 188 4 2 2 3 0 8 1 pipepl 344 156 0 129 3 0 3 3 0 8 0 fdescpl 528 857 0 826 3 0 3 3 0 8 0 filepl 160 5493 0 5277 24 10 14 19 0 8 3 lockfpl 104 311 0 308 1 0 1 1 0 8 0 lockfspl 48 75 0 72 1 0 1 1 0 8 0 sessionpl 144 49 0 40 1 0 1 1 0 8 0 pgrppl 48 96 0 79 1 0 1 1 0 8 0 ucredpl 104 852 0 837 1 0 1 1 0 8 0 zombiepl 144 972 0 970 1 0 1 1 0 8 0 processpl 1232 873 0 826 5 1 4 5 0 8 0 procpl 664 1628 0 1568 6 0 6 6 0 8 0 sosppl 176 4 0 4 2 1 1 1 0 8 1 sockpl 752 1103 0 1076 34 24 10 21 0 8 7 mcl64k 65536 4 0 0 1 0 1 1 0 8 0 mcl16k 16384 4 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 106 0 0 14 0 14 14 0 8 0 mcl2k 2048 38 0 0 5 0 5 5 0 8 1 mtagpl 96 7 0 0 1 0 1 1 0 8 0 mbufpl 256 264 0 0 16 0 16 16 0 8 0 bufpl 280 6654 0 524 439 0 439 439 0 8 0 anonpl 32 12783 0 0 104 0 104 104 0 246 0 amapchunkpl 152 22709 0 22193 31 2 29 29 0 158 4 amappl16 200 3734 0 3611 43 29 14 29 0 8 7 amappl15 192 5 0 5 1 1 0 1 0 8 0 amappl14 184 451 0 450 1 0 1 1 0 8 0 amappl13 176 152 0 140 1 0 1 1 0 8 0 amappl12 168 1122 0 1092 2 0 2 2 0 8 0 amappl11 160 6 0 6 1 1 0 1 0 8 0 amappl10 152 64 0 49 1 0 1 1 0 8 0 amappl9 144 268 0 268 1 1 0 1 0 8 0 amappl8 136 112 0 109 1 0 1 1 0 8 0 amappl7 128 157 0 143 1 0 1 1 0 8 0 amappl6 120 178 0 177 1 0 1 1 0 8 0 amappl5 112 107 0 96 1 0 1 1 0 8 0 amappl4 104 306 0 285 1 0 1 1 0 8 0 amappl3 96 4330 0 4208 4 0 4 4 0 8 0 amappl2 88 570 0 510 2 0 2 2 0 8 0 amappl1 80 12115 0 11511 18 2 16 16 0 8 2 amappl 88 6194 0 6020 5 0 5 5 0 92 0 uvmvnodes 80 112 0 0 3 0 3 3 0 8 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma2048 2048 1 0 1 1 1 0 1 0 8 0 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 254 0 254 2 2 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 13 0 2 1 0 1 1 0 8 0 uaddrrnd 24 857 0 826 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 857 0 826 1 0 1 1 0 8 0 vmmpekpl 168 9017 0 8976 3 0 3 3 0 8 0 vmmpepl 168 63738 0 61710 120 10 110 110 0 357 11 vmsppl 488 856 0 826 6 1 5 5 0 8 0 rwobjpl 80 21305 0 20137 36 3 33 33 0 8 5 pdppl 4096 1721 0 1652 109 36 73 83 0 8 4 pvpl 32 21234 0 0 173 1 172 172 0 265 0 pmappl 256 856 0 826 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 295 0 51 8 0 8 8 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace dt_ioctl_record_stop(ffff800001680000) at dt_ioctl_record_stop+0x108 sys/dev/dt/dt_dev.c:593 dtclose(21e5f,81,2000,ffff8000fffee7e0) at dtclose+0x109 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(21e5f,81,2000,ffff8000fffee7e0) at dtclose+0x109 sys/dev/dt/dt_dev.c:239 spec_close(ffff80003c40d710) at spec_close+0x466 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd807229b798,81,fffffd80097fd270,ffff8000fffee7e0) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffffd806c2294a0,ffff8000fffee7e0) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd806c2294a0,ffff8000fffee7e0) at vn_closefile+0x12b sys/kern/vfs_vnops.c:615 fdrop(fffffd806c2294a0,ffff8000fffee7e0) at fdrop+0x121 sys/kern/kern_descrip.c:1281 closef(fffffd806c2294a0,ffff8000fffee7e0) at closef+0x192 sys/kern/kern_descrip.c:1265 syscall(ffff80003c40d970) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c40d970) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd1c74b008b0, count: -9 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffff8000299bdff0) 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(ffffffff83990c40) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff83990c40) at __mp_lock+0x192 sys/kern/kern_lock.c:173 uvm_fault(fffffd800e3037c0,becd8049000,0,1) at uvm_fault+0x1ea sys/uvm/uvm_fault.c:650 upageflttrap(ffff80002eba98c0,becd8049000) at upageflttrap+0xa9 sys/arch/amd64/amd64/trap.c:192 usertrap(ffff80002eba98c0) at usertrap+0x430 sys/arch/amd64/amd64/trap.c:640 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0x7decbaccc9a0, count: 7 ddb{1}> trace x86_ipi_db(ffff8000299bdff0) 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(ffffffff83990c40) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff83990c40) at __mp_lock+0x192 sys/kern/kern_lock.c:173 uvm_fault(fffffd800e3037c0,becd8049000,0,1) at uvm_fault+0x1ea sys/uvm/uvm_fault.c:650 upageflttrap(ffff80002eba98c0,becd8049000) at upageflttrap+0xa9 sys/arch/amd64/amd64/trap.c:192 usertrap(ffff80002eba98c0) at usertrap+0x430 sys/arch/amd64/amd64/trap.c:640 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0x7decbaccc9a0, count: -8