uvm_fault(0xfffffd806b9c79f0, 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 *488447 85942 0 0 0x4000000 0 syz-executor dt_ioctl_record_stop(ffff800001521d80) at dt_ioctl_record_stop+0xf0 sys/dev/dt/dt_dev.c:580 dtclose(11e5f,81,2000,ffff80002a7e5210) at dtclose+0xd5 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff80002a7e5210) at dtclose+0xd5 sys/dev/dt/dt_dev.c:232 spec_close(ffff80003c9a6e60) at spec_close+0x45f sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd806b1f1520,81,fffffd8007bfb2d8,ffff80002a7e5210) at VOP_CLOSE+0x12a sys/kern/vfs_vops.c:156 vn_closefile(fffffd80694f6088,ffff80002a7e5210) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd80694f6088,ffff80002a7e5210) at vn_closefile+0x11d sys/kern/vfs_vnops.c:615 fdrop(fffffd80694f6088,ffff80002a7e5210) at fdrop+0x126 sys/kern/kern_descrip.c:1267 closef(fffffd80694f6088,ffff80002a7e5210) at closef+0x18d sys/kern/kern_descrip.c:1251 syscall(ffff80003c9a70c0) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c9a70c0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x94522f1ee10, 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic *cpu0: uvm_fault(0xfffffd806b9c79f0, 0x0, 0, 1) -> e ddb> trace dt_ioctl_record_stop(ffff800001521d80) at dt_ioctl_record_stop+0xf0 sys/dev/dt/dt_dev.c:580 dtclose(11e5f,81,2000,ffff80002a7e5210) at dtclose+0xd5 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff80002a7e5210) at dtclose+0xd5 sys/dev/dt/dt_dev.c:232 spec_close(ffff80003c9a6e60) at spec_close+0x45f sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd806b1f1520,81,fffffd8007bfb2d8,ffff80002a7e5210) at VOP_CLOSE+0x12a sys/kern/vfs_vops.c:156 vn_closefile(fffffd80694f6088,ffff80002a7e5210) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd80694f6088,ffff80002a7e5210) at vn_closefile+0x11d sys/kern/vfs_vnops.c:615 fdrop(fffffd80694f6088,ffff80002a7e5210) at fdrop+0x126 sys/kern/kern_descrip.c:1267 closef(fffffd80694f6088,ffff80002a7e5210) at closef+0x18d sys/kern/kern_descrip.c:1251 syscall(ffff80003c9a70c0) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c9a70c0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x94522f1ee10, count: -9 ddb> show registers rdi 0 rsi 0 rbp 0xffff80003c9a6d90 rbx 0xffffffff8142e7f0 dtclose rdx 0 rcx 0xffff80002a7e5210 rax 0xffffffff837a6da8 dt_prov_syscall r8 0xffffffff81322b30 uvm_map_inentry_sp r9 0x1 r10 0 r11 0xfe2f05c6a3c6acff r12 0xffff80000006a680 r13 0 r14 0 r15 0xffff800001498a00 rip 0xffffffff8142eb70 dt_ioctl_record_stop+0xf0 cs 0x8 rflags 0x10207 __ALIGN_SIZE+0xf207 rsp 0xffff80003c9a6d60 ss 0x10 dt_ioctl_record_stop+0xf0: movq 0(%r14),%r12 ddb> show proc PROC (syz-executor) tid=488447 pid=85942 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=84, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a7e47d0,0xffff80002a7e5740 process=0xffff80003a551fc0 user=0xffff80003c9a2000, vmspace=0xfffffd806b9c79f0 estcpu=34, cpticks=0, pctcpu=0.1, user=1, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 47404 275446 28899 0 2 0 syz-executor 47404 428991 28899 0 2 0x4000000 syz-executor 85942 322396 24183 0 2 0 syz-executor *85942 488447 24183 0 7 0x4000000 syz-executor 85942 212431 24183 0 3 0x4000080 fsleep syz-executor 85942 390090 24183 0 3 0x4000080 fsleep syz-executor 54805 96408 8571 0 2 0 syz-executor 54805 190608 8571 0 3 0x4000080 fsleep syz-executor 54805 135181 8571 0 3 0x4000080 fsleep syz-executor 54805 202796 8571 0 3 0x4000080 fsleep syz-executor 53179 1746 89191 0 2 0xc80 syz-executor 53179 448689 89191 0 3 0x4000080 fsleep syz-executor 53179 440009 89191 0 3 0x4000080 fsleep syz-executor 5528 307536 45136 0 2 0 syz-executor 5528 371818 45136 0 3 0x4000080 fsleep syz-executor 5528 368271 45136 0 2 0x4000000 syz-executor 47463 114969 70386 0 3 0x80 nanoslp syz-executor 47463 362568 70386 0 3 0x4000080 fsleep syz-executor 47463 433521 70386 0 3 0x4000080 fsleep syz-executor 89784 434128 1 0 3 0x100083 ttyopn getty 24183 524134 21913 0 3 0x82 nanoslp syz-executor 89191 396031 21913 0 3 0x82 nanoslp syz-executor 45714 95376 0 0 3 0x14200 bored sosplice 12429 356766 21913 0 2 0x2 syz-executor 8571 132323 21913 0 3 0x82 nanoslp syz-executor 70386 112472 21913 0 3 0x82 nanoslp syz-executor 15010 175911 21913 0 2 0x2 syz-executor 45136 276782 21913 0 3 0x82 nanoslp syz-executor 28899 43601 21913 0 2 0x2 syz-executor 21913 121519 96946 0 3 0x82 kqread syz-executor 96946 7083 88762 0 3 0x10008a sigsusp ksh 88762 455312 95430 0 3 0x98 kqread sshd-session 95430 428068 10415 0 3 0x92 kqread sshd-session 10415 257271 1 0 3 0x88 kqread sshd 99149 52888 9724 73 3 0x1100090 kqread syslogd 9724 171813 1 0 3 0x100082 sbwait syslogd 39886 385617 1 0 3 0x100080 kqread resolvd 18942 202072 6044 77 3 0x100092 kqread dhcpleased 84788 396656 6044 77 3 0x100092 kqread dhcpleased 6044 345119 1 0 3 0x80 kqread dhcpleased 43618 416224 0 0 3 0x14200 bored smr 69356 344859 0 0 2 0x14200 zerothread 72177 284595 0 0 3 0x14200 aiodoned aiodoned 15075 450772 0 0 3 0x14200 syncer update 71918 260859 0 0 3 0x14200 cleaner cleaner 46259 38502 0 0 3 0x14200 reaper reaper 45315 427233 0 0 3 0x14200 pgdaemon pagedaemon 48404 273832 0 0 3 0x14200 bored viomb 41998 201529 0 0 3 0x40014200 acpi0 acpi0 24656 520360 0 0 3 0x14200 bored softnet7 2015 144259 0 0 3 0x14200 bored softnet6 90536 28206 0 0 3 0x14200 bored softnet5 22654 37782 0 0 3 0x14200 bored softnet4 86673 12289 0 0 3 0x14200 bored softnet3 71598 499259 0 0 3 0x14200 bored softnet2 88788 262645 0 0 3 0x14200 bored softnet1 23252 242970 0 0 2 0x14200 softnet0 59995 179728 0 0 3 0x14200 bored systqmp 9351 355644 0 0 3 0x14200 bored systq 11003 15153 0 0 2 0x40014200 softclock 57261 509994 0 0 3 0x40014200 idle0 1 330105 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 10228 11253K 11503K 166960K 14489 0 pcb 18 14K 22K 166960K 448 0 rtable 204 8K 9K 166960K 535 0 pf 33 13K 19K 166960K 150 0 ifaddr 38 7K 8K 166960K 104 0 ifgroup 46 2K 2K 166960K 169 0 sysctl 4 1K 9K 166960K 13 0 counters 31 17K 18K 166960K 83 0 ioctlops 0 0K 8K 166960K 339 0 iov 0 0K 24K 166960K 96 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1469 92K 93K 166960K 3376 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 3 5K 9K 166960K 37 0 VM map 2 1K 1K 166960K 2 0 sem 23 11K 11K 166960K 49 0 dirhash 12 2K 2K 166960K 36 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 16 57K 236K 166960K 1879 0 sigio 0 0K 0K 166960K 30 0 proc 60 59K 116K 166960K 725 0 subproc 72 4K 4K 166960K 91 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 333 0 in_multi 83 6K 7K 166960K 197 0 ether_multi 1 0K 0K 166960K 22 0 mrt 1 0K 0K 166960K 7 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 690 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 37 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 234 155K 168K 166960K 18996 0 UVM aobj 95 4K 4K 166960K 100 0 pinsyscall 37 74K 94K 166960K 2955 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 81 0 NDP 10 0K 2K 166960K 68 0 temp 78 8680K 8760K 166960K 99922 0 kqueue 13 20K 30K 166960K 283 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 154 0 150 1 0 1 1 0 8 0 rtentry 136 173 0 90 4 0 4 4 0 8 0 unpcb 144 1439 0 1422 6 0 6 6 0 8 5 syncache 336 6 0 6 2 1 1 1 0 8 1 tcpqe 32 2 0 2 1 0 1 1 0 8 1 tcpcb 736 632 0 628 4 0 4 4 0 8 3 arp 88 28 0 13 1 0 1 1 0 8 0 ipq 40 5 0 4 1 0 1 1 0 8 0 ipqe 40 8 0 7 1 0 1 1 0 8 0 inpcb 328 1810 0 1802 20 11 9 15 0 8 8 ip6q 72 11 0 10 1 0 1 1 0 8 0 ip6af 40 20 0 17 1 0 1 1 0 8 0 nd6 104 33 0 17 1 0 1 1 0 8 0 pkpcb 40 139 0 139 2 1 1 1 0 8 1 kcovpl 48 10 0 2 1 0 1 1 0 8 0 mppekey 1024 1 0 1 1 0 1 1 0 8 1 ppxss 1072 36 0 36 2 1 1 1 0 8 1 pppxif 1384 6 0 6 1 0 1 1 0 8 1 pfstscr 40 7 0 7 1 0 1 1 0 8 1 pfanchor 1288 1 0 0 1 0 1 1 0 8 0 pftag 88 3 0 0 1 0 1 1 0 8 0 pfstitem 24 4 0 0 1 0 1 1 0 8 0 pfstkey 128 18 0 14 1 0 1 1 0 8 0 pfstate 384 10 0 8 1 0 1 1 0 8 0 pfrule 1344 8 0 8 1 0 1 1 0 8 1 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 767 0 381 30 0 30 30 0 8 3 art_table 40 770 0 381 5 0 5 5 0 8 0 art_node 32 171 0 100 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 2 1 0 1 1 0 8 0 semupl 112 5 0 5 1 0 1 1 0 8 1 semapl 112 40 0 19 1 0 1 1 0 8 0 shmpl 112 97 0 5 3 0 3 3 0 8 0 dirhash 1024 33 0 16 3 0 3 3 0 8 0 dino2pl 256 4907 0 3409 95 0 95 95 0 8 0 ffsino 248 4907 0 3409 95 0 95 95 0 8 0 nchpl 144 7550 0 5864 63 0 63 63 0 8 0 rtmask 32 7 0 7 1 0 1 1 0 8 1 uvmvnodes 80 5927 0 0 121 0 121 121 0 8 0 vnodes 216 5927 0 0 330 0 330 330 0 8 0 namei 1024 27074 0 27073 5 2 3 3 0 8 2 kstatmem 264 96 0 76 2 0 2 2 0 8 0 acpiwqpl 32 1 0 1 1 0 1 1 1 8 1 scsiplug 72 7 0 7 1 0 1 1 0 8 1 scxspl 216 30083 0 30083 15 7 8 8 1 8 8 plimitpl 152 546 0 530 1 0 1 1 0 8 0 sigapl 424 2160 0 2111 10 1 9 9 0 8 2 knotepl 120 357132 0 357085 23 13 10 23 0 8 8 kqueuepl 184 729 0 719 4 0 4 4 0 8 3 pipepl 296 278 0 250 3 0 3 3 0 8 0 fdescpl 440 2117 0 2089 5 1 4 5 0 8 0 filepl 120 14790 0 14571 15 1 14 14 0 8 5 lockfpl 104 1706 0 1700 3 1 2 2 0 8 1 lockfspl 48 662 0 656 1 0 1 1 0 8 0 sessionpl 144 27 0 19 1 0 1 1 0 8 0 pgrppl 48 61 0 45 1 0 1 1 0 8 0 ucredpl 104 2700 0 2689 1 0 1 1 0 8 0 zombiepl 144 3371 0 3371 1 0 1 1 0 8 1 processpl 1160 2161 0 2111 7 1 6 6 0 8 1 procpl 656 5310 0 5247 8 0 8 8 0 8 2 sosppl 168 7 0 7 2 1 1 1 0 8 1 sockpl 528 3651 0 3622 25 15 10 19 0 8 7 mcl64k 65536 87 0 87 1 0 1 1 0 8 1 mcl16k 16384 4 0 4 1 0 1 1 0 8 1 mcl12k 12288 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 25 0 25 2 1 1 1 0 8 1 mcl4k 4096 4943 0 4885 14 5 9 13 0 8 1 mcl2k 2048 2537 0 2533 5 1 4 4 0 8 3 mtagpl 96 106 0 38 2 0 2 2 0 8 0 mbufpl 256 22210 0 22025 19 2 17 17 0 8 2 bufpl 280 10105 0 3878 446 0 446 446 0 8 0 anonpl 24 318933 0 308680 86 0 86 86 0 187 17 amapchunkpl 152 65301 0 64623 43 6 37 37 0 158 10 amappl16 200 6084 0 5824 41 14 27 29 0 8 8 amappl15 192 5 0 5 2 1 1 1 0 8 1 amappl14 184 115 0 105 1 0 1 1 0 8 0 amappl13 176 24 0 24 2 1 1 1 0 8 1 amappl12 168 2763 0 2735 2 0 2 2 0 8 0 amappl11 160 47 0 37 1 0 1 1 0 8 0 amappl10 152 8 0 8 1 1 0 1 0 8 0 amappl9 144 254 0 254 1 1 0 1 0 8 0 amappl8 136 17 0 15 1 0 1 1 0 8 0 amappl7 128 111 0 100 1 0 1 1 0 8 0 amappl6 120 190 0 186 1 0 1 1 0 8 0 amappl5 112 120 0 113 1 0 1 1 0 8 0 amappl4 104 280 0 265 1 0 1 1 0 8 0 amappl3 96 13205 0 13101 4 0 4 4 0 8 0 amappl2 88 672 0 616 2 0 2 2 0 8 0 amappl1 80 15833 0 15280 15 1 14 14 0 8 1 amappl 88 17968 0 17799 5 0 5 5 0 92 0 dma4096 4096 2 0 2 2 1 1 1 0 8 1 dma1024 1024 2 0 1 1 0 1 1 0 8 0 dma256 256 8 0 8 2 1 1 1 0 8 1 dma128 128 256 0 256 2 1 1 1 0 8 1 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 19 0 18 1 0 1 1 0 8 0 aobjpl 72 99 0 5 2 0 2 2 0 8 0 uaddrrnd 24 2117 0 2089 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2117 0 2089 1 0 1 1 0 8 0 vmmpekpl 168 17249 0 17208 3 0 3 3 0 8 0 vmmpepl 168 137690 0 135614 108 0 108 108 0 357 9 vmsppl 360 2116 0 2089 4 1 3 4 0 8 0 rwobjpl 32 41898 0 34779 60 0 60 60 0 8 1 pdppl 4096 4241 0 4178 123 56 67 81 0 8 4 pvpl 32 929971 0 914164 177 0 177 177 0 265 30 pmappl 216 2116 0 2089 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 313 0 70 7 0 7 7 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace dt_ioctl_record_stop(ffff800001521d80) at dt_ioctl_record_stop+0xf0 sys/dev/dt/dt_dev.c:580 dtclose(11e5f,81,2000,ffff80002a7e5210) at dtclose+0xd5 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff80002a7e5210) at dtclose+0xd5 sys/dev/dt/dt_dev.c:232 spec_close(ffff80003c9a6e60) at spec_close+0x45f sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd806b1f1520,81,fffffd8007bfb2d8,ffff80002a7e5210) at VOP_CLOSE+0x12a sys/kern/vfs_vops.c:156 vn_closefile(fffffd80694f6088,ffff80002a7e5210) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd80694f6088,ffff80002a7e5210) at vn_closefile+0x11d sys/kern/vfs_vnops.c:615 fdrop(fffffd80694f6088,ffff80002a7e5210) at fdrop+0x126 sys/kern/kern_descrip.c:1267 closef(fffffd80694f6088,ffff80002a7e5210) at closef+0x18d sys/kern/kern_descrip.c:1251 syscall(ffff80003c9a70c0) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c9a70c0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x94522f1ee10, count: -9 ddb> machine ddbcpu 1 No such command ddb> trace dt_ioctl_record_stop(ffff800001521d80) at dt_ioctl_record_stop+0xf0 sys/dev/dt/dt_dev.c:580 dtclose(11e5f,81,2000,ffff80002a7e5210) at dtclose+0xd5 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff80002a7e5210) at dtclose+0xd5 sys/dev/dt/dt_dev.c:232 spec_close(ffff80003c9a6e60) at spec_close+0x45f sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd806b1f1520,81,fffffd8007bfb2d8,ffff80002a7e5210) at VOP_CLOSE+0x12a sys/kern/vfs_vops.c:156 vn_closefile(fffffd80694f6088,ffff80002a7e5210) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd80694f6088,ffff80002a7e5210) at vn_closefile+0x11d sys/kern/vfs_vnops.c:615 fdrop(fffffd80694f6088,ffff80002a7e5210) at fdrop+0x126 sys/kern/kern_descrip.c:1267 closef(fffffd80694f6088,ffff80002a7e5210) at closef+0x18d sys/kern/kern_descrip.c:1251 syscall(ffff80003c9a70c0) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c9a70c0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x94522f1ee10, count: -9