uvm_fault(0xfffffd806b8507c0, 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 249113 11272 0 0 0x4000000 1K syz-executor dt_ioctl_record_stop(ffff8000014a5000) at dt_ioctl_record_stop+0x108 sys/dev/dt/dt_dev.c:586 dtclose(11e5f,81,2000,ffff800031c0a028) at dtclose+0x109 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff800031c0a028) at dtclose+0x109 sys/dev/dt/dt_dev.c:232 spec_close(ffff80002f3fba40) at spec_close+0x466 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd805e2b91c8,81,fffffd80097fb5b0,ffff800031c0a028) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffffd806b868548,ffff800031c0a028) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd806b868548,ffff800031c0a028) at vn_closefile+0x12b sys/kern/vfs_vnops.c:615 fdrop(fffffd806b868548,ffff800031c0a028) at fdrop+0x121 sys/kern/kern_descrip.c:1280 closef(fffffd806b868548,ffff800031c0a028) at closef+0x192 sys/kern/kern_descrip.c:1264 fdfree(ffff800031c0a028) at fdfree+0x116 sys/kern/kern_descrip.c:1195 exit1(ffff800031c0a028,0,0,1) at exit1+0x576 sys/kern/kern_exit.c:215 sys_exit(ffff800031c0a028,ffff80002f3fbdb0,ffff80002f3fbd00) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80002f3fbdb0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002f3fbdb0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7a3cec846750, 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(0xfffffd806b8507c0, 0x0, 0, 1) -> e ddb{0}> trace dt_ioctl_record_stop(ffff8000014a5000) at dt_ioctl_record_stop+0x108 sys/dev/dt/dt_dev.c:586 dtclose(11e5f,81,2000,ffff800031c0a028) at dtclose+0x109 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff800031c0a028) at dtclose+0x109 sys/dev/dt/dt_dev.c:232 spec_close(ffff80002f3fba40) at spec_close+0x466 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd805e2b91c8,81,fffffd80097fb5b0,ffff800031c0a028) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffffd806b868548,ffff800031c0a028) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd806b868548,ffff800031c0a028) at vn_closefile+0x12b sys/kern/vfs_vnops.c:615 fdrop(fffffd806b868548,ffff800031c0a028) at fdrop+0x121 sys/kern/kern_descrip.c:1280 closef(fffffd806b868548,ffff800031c0a028) at closef+0x192 sys/kern/kern_descrip.c:1264 fdfree(ffff800031c0a028) at fdfree+0x116 sys/kern/kern_descrip.c:1195 exit1(ffff800031c0a028,0,0,1) at exit1+0x576 sys/kern/kern_exit.c:215 sys_exit(ffff800031c0a028,ffff80002f3fbdb0,ffff80002f3fbd00) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80002f3fbdb0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002f3fbdb0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7a3cec846750, count: -12 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff80002f3fb970 rbx 0x1 rdx 0 rcx 0xffff800031c0a028 rax 0xffffffff83833220 dt_prov_static r8 0 r9 0 r10 0xf8c728b89f45e27c r11 0x9dce123d8ea30209 r12 0 r13 0 r14 0 r15 0xffff8000014b7c00 rip 0xffffffff826259b8 dt_ioctl_record_stop+0x108 cs 0x8 rflags 0x10207 __ALIGN_SIZE+0xf207 rsp 0xffff80002f3fb940 ss 0x10 dt_ioctl_record_stop+0x108: movq 0(%r14),%r14 ddb{0}> show proc PROC (syz-executor) tid=289639 pid=82504 tcnt=0 stat=onproc flags process=1008 proc=2000 runpri=0, usrpri=79, slppri=0, nice=20 wchan=0x0, wmesg=, ps_single=0xffff800031c0a028 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff800031c094e0,0xffff800031c0a2d0 process=0xffff800036c24020 user=0xffff80002f3f6000, vmspace=0xfffffd806b8507c0 estcpu=29, cpticks=10, pctcpu=0.9, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 48489 358647 27723 0 2 0 syz-executor 48489 210242 27723 0 2 0x4000000 syz-executor 48489 189116 27723 0 3 0x4000080 fsleep syz-executor 11272 291365 29444 0 2 0 syz-executor 11272 249113 29444 0 7 0x4000000 syz-executor 11272 146363 29444 0 2 0x4000000 syz-executor 86296 178753 56992 0 3 0x80 fsleep syz-executor 86296 406918 56992 0 3 0x4000080 ttyout syz-executor 25150 174394 28954 0 3 0x80 fsleep syz-executor 25150 173896 28954 0 3 0x4000080 sbwait syz-executor 40788 90047 53577 60928 3 0x90 fsleep syz-executor 40788 57333 53577 60928 3 0x4000090 ttyout syz-executor 45839 138256 0 0 3 0x14200 bored sosplice 29444 305573 66121 0 2 0x3 syz-executor 56992 364651 66121 0 3 0x82 nanoslp syz-executor 79786 331461 66121 0 3 0x82 nanoslp syz-executor 53577 490081 66121 0 3 0x82 nanoslp syz-executor 27723 203318 66121 0 3 0x82 nanoslp syz-executor 28954 36293 66121 0 3 0x82 nanoslp syz-executor 69479 315718 66121 0 3 0x82 nanoslp syz-executor 59482 121340 66121 0 2 0x3 syz-executor 66121 76521 79726 0 3 0x82 kqread syz-executor 79726 27985 17746 0 3 0x10008a sigsusp ksh 17746 84696 6140 0 3 0x98 kqread sshd-session 6140 370089 68086 0 3 0x92 kqread sshd-session 77938 247337 1 0 3 0x100083 ttyin getty 68086 272786 1 0 3 0x88 kqread sshd 44996 72501 87908 74 3 0x1100092 bpf pflogd 87908 385094 1 0 3 0x80 sbwait pflogd 31035 239577 65897 73 3 0x1100090 kqread syslogd 65897 195061 1 0 3 0x100082 sbwait syslogd 93434 82798 1 0 3 0x100080 kqread resolvd 56434 279860 11644 77 3 0x100092 kqread dhcpleased 29090 96253 11644 77 3 0x100092 kqread dhcpleased 11644 434875 1 0 3 0x80 kqread dhcpleased 2026 214765 0 0 3 0x14200 bored smr 75031 204068 0 0 3 0x14200 pgzero zerothread 47886 113142 0 0 3 0x14200 aiodoned aiodoned 62118 367608 0 0 3 0x14200 syncer update 96158 175190 0 0 3 0x14200 cleaner cleaner 64858 424921 0 0 3 0x14200 reaper reaper 77978 59341 0 0 3 0x14200 pgdaemon pagedaemon 32521 354424 0 0 3 0x14200 bored viomb 56943 165131 0 0 3 0x40014200 acpi0 acpi0 26787 272714 0 0 3 0x40014200 idle1 31935 139188 0 0 3 0x14200 bored softnet7 21629 451262 0 0 3 0x14200 bored softnet6 86830 150362 0 0 3 0x14200 bored softnet5 19022 468274 0 0 3 0x14200 bored softnet4 37176 92536 0 0 3 0x14200 bored softnet3 61521 299697 0 0 3 0x14200 bored softnet2 94194 208324 0 0 3 0x14200 bored softnet1 21235 108274 0 0 3 0x14200 bored softnet0 90219 486837 0 0 3 0x14200 bored systqmp 90151 253794 0 0 3 0x14200 bored systq 56716 492993 0 0 2 0x14200 softclockmp 94599 252662 0 0 3 0x40014200 tmoslp softclock 13483 417304 0 0 3 0x40014200 idle0 1 113554 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{0}> show all locks Process 11272 (syz-executor) thread 0xffff800031c0a2c0 (146363) exclusive rwlock vmmaplk r = 0 (0xfffffd806b850e78) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 rw_do_enter_write+0x419 sys/kern/kern_rwlock.c:320 #2 vm_map_lock_ln+0x12e sys/uvm/uvm_map.c:5168 #3 uvmfault_lookup+0xe8 sys/uvm/uvm_fault.c:1918 #4 uvm_fault_check+0x895 uvmfault_amapcopy sys/uvm/uvm_fault.c:235 [inline] #4 uvm_fault_check+0x895 sys/uvm/uvm_fault.c:784 #5 uvm_fault+0x106 sys/uvm/uvm_fault.c:677 #6 kpageflttrap+0x2f4 sys/arch/amd64/amd64/trap.c:283 #7 kerntrap+0x198 sys/arch/amd64/amd64/trap.c:489 #8 alltraps_kern_meltdown+0x7b #9 _copyin+0x57 #10 syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] #10 syscall+0xbd4 sys/arch/amd64/amd64/trap.c:746 #11 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10209 11041K 11125K 166960K 11587 0 pcb 18 14K 16K 166960K 129 0 rtable 190 6K 7K 166960K 267 0 pf 35 17K 21K 166960K 73 0 ifaddr 44 7K 8K 166960K 59 0 ifgroup 55 2K 2K 166960K 76 0 sysctl 4 1K 9K 166960K 9 0 counters 68 36K 38K 166960K 96 0 ioctlops 0 0K 4K 166960K 1616 0 iov 1 0K 12K 166960K 10 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1405 88K 89K 166960K 1568 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 5 0 VM map 2 1K 1K 166960K 2 0 sem 8 0K 0K 166960K 46 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 89K 166960K 346 0 sigio 0 0K 0K 166960K 7 0 proc 72 115K 180K 166960K 551 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 182 0 in_multi 102 7K 7K 166960K 116 0 ether_multi 1 0K 0K 166960K 4 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 73 334K 334K 166960K 73 0 exec 0 0K 1K 166960K 378 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 247 168K 181K 166960K 4940 0 UVM aobj 10 4K 4K 166960K 11 0 pinsyscall 43 86K 102K 166960K 1429 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 16 0 NDP 12 0K 2K 166960K 37 0 temp 49 8649K 8713K 166960K 12052 0 kqueue 15 24K 28K 166960K 54 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 48 0 45 1 0 1 1 0 8 0 rtentry 176 97 0 13 5 0 5 5 0 8 0 unpcb 144 249 0 230 4 3 1 4 0 8 0 syncache 336 5 0 5 2 1 1 1 0 8 1 tcpqe 32 1 0 1 1 1 0 1 0 8 0 tcpcb 736 137 0 132 8 1 7 7 0 8 6 arp 128 10 0 0 1 0 1 1 0 8 0 inpcb 328 462 0 452 12 5 7 7 0 8 6 nd6 144 16 0 0 1 0 1 1 0 8 0 pkpcb 40 1 0 1 1 1 0 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1192 13 0 13 1 0 1 1 0 8 1 pppxif 1504 1 0 1 1 0 1 1 0 8 1 pffrag 232 5 0 0 1 0 1 1 0 482 0 pffrnode 88 4 0 0 1 0 1 1 0 8 0 pffrent 40 7 0 0 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 pfanchor 1288 1 0 0 1 0 1 1 0 8 0 pfstitem 24 31 0 1 1 0 1 1 0 8 0 pfstkey 128 31 0 1 1 0 1 1 0 8 0 pfstate 384 31 0 1 4 0 4 4 0 8 0 pfrule 1344 24 0 18 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 472 0 47 30 1 29 30 0 8 0 art_table 40 473 0 47 5 0 5 5 0 8 0 art_node 32 97 0 23 1 0 1 1 0 8 0 sysvmsgpl 40 3 0 3 2 1 1 1 0 8 1 semapl 112 42 0 36 1 0 1 1 0 8 0 shmpl 112 8 0 1 1 0 1 1 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 1969 0 460 95 0 95 95 0 8 0 ffsino 296 1969 0 460 117 0 117 117 0 8 0 nchpl 144 2441 0 748 64 0 64 64 0 8 0 rtmask 32 3 0 3 1 1 0 1 0 8 0 uvmvnodes 80 2172 0 0 45 0 45 45 0 8 0 vnodes 216 2172 0 0 121 0 121 121 0 8 0 namei 1024 8010 0 8010 1 0 1 1 0 8 1 percpumem 16 63 0 14 1 0 1 1 0 8 0 kstatmem 264 44 0 18 3 0 3 3 0 8 1 scsiplug 72 2 0 2 1 1 0 1 0 8 0 scxspl 216 10804 0 10804 3 2 1 2 1 8 1 plimitpl 152 56 0 38 1 0 1 1 0 8 0 sigapl 424 651 0 596 7 0 7 7 0 8 0 knotepl 120 291 0 0 9 0 9 9 0 8 0 kqueuepl 224 188 0 177 6 1 5 5 0 8 4 pipepl 344 129 0 102 3 0 3 3 0 8 0 fdescpl 528 627 0 595 3 0 3 3 0 8 0 filepl 160 3457 0 3229 20 7 13 19 0 8 3 lockfpl 104 68 0 65 1 0 1 1 0 8 0 lockfspl 48 33 0 30 1 0 1 1 0 8 0 sessionpl 144 23 0 14 1 0 1 1 0 8 0 pgrppl 48 37 0 20 1 0 1 1 0 8 0 ucredpl 104 315 0 301 1 0 1 1 0 8 0 zombiepl 144 625 0 622 1 0 1 1 0 8 0 processpl 1232 651 0 596 5 0 5 5 0 8 0 procpl 664 1043 0 981 7 1 6 7 0 8 0 sockpl 752 766 0 734 24 14 10 18 0 8 6 mcl64k 65536 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 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 109 0 0 14 0 14 14 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 24 0 0 3 0 3 3 0 8 0 mtagpl 96 1 0 0 1 0 1 1 0 8 0 mbufpl 256 211 0 0 14 0 14 14 0 8 0 bufpl 280 4611 0 140 320 0 320 320 0 8 0 anonpl 32 7499 0 0 61 0 61 61 0 246 0 amapchunkpl 152 15308 0 14800 29 8 21 26 0 158 1 amappl16 200 2523 0 2497 20 6 14 14 0 8 11 amappl15 192 7 0 7 1 1 0 1 0 8 0 amappl14 184 113 0 100 1 0 1 1 0 8 0 amappl13 176 4 0 4 1 1 0 1 0 8 0 amappl12 168 1385 0 1353 2 0 2 2 0 8 0 amappl11 160 52 0 38 1 0 1 1 0 8 0 amappl10 152 6 0 6 1 1 0 1 0 8 0 amappl9 144 260 0 260 1 1 0 1 0 8 0 amappl8 136 17 0 15 1 0 1 1 0 8 0 amappl7 128 108 0 96 1 0 1 1 0 8 0 amappl6 120 183 0 180 1 0 1 1 0 8 0 amappl5 112 124 0 115 1 0 1 1 0 8 0 amappl4 104 299 0 277 1 0 1 1 0 8 0 amappl3 96 2752 0 2636 4 0 4 4 0 8 0 amappl2 88 640 0 579 2 0 2 2 0 8 0 amappl1 80 9214 0 8612 15 1 14 15 0 8 0 amappl 88 4227 0 4053 5 0 5 5 0 92 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 6 0 6 1 1 0 1 0 8 0 dma128 128 253 0 253 1 1 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 10 0 1 1 0 1 1 0 8 0 uaddrrnd 24 627 0 595 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 627 0 595 1 0 1 1 0 8 0 vmmpekpl 168 6764 0 6730 3 0 3 3 0 8 0 vmmpepl 168 46464 0 44455 103 5 98 98 0 357 10 vmsppl 488 626 0 595 5 1 4 5 0 8 0 rwobjpl 80 17620 0 14510 68 0 68 68 0 8 3 pdppl 4096 1261 0 1190 99 28 71 83 0 8 0 pvpl 32 13409 0 0 109 0 109 109 0 265 0 pmappl 256 626 0 595 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 278 0 33 7 0 7 7 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace dt_ioctl_record_stop(ffff8000014a5000) at dt_ioctl_record_stop+0x108 sys/dev/dt/dt_dev.c:586 dtclose(11e5f,81,2000,ffff800031c0a028) at dtclose+0x109 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff800031c0a028) at dtclose+0x109 sys/dev/dt/dt_dev.c:232 spec_close(ffff80002f3fba40) at spec_close+0x466 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd805e2b91c8,81,fffffd80097fb5b0,ffff800031c0a028) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffffd806b868548,ffff800031c0a028) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd806b868548,ffff800031c0a028) at vn_closefile+0x12b sys/kern/vfs_vnops.c:615 fdrop(fffffd806b868548,ffff800031c0a028) at fdrop+0x121 sys/kern/kern_descrip.c:1280 closef(fffffd806b868548,ffff800031c0a028) at closef+0x192 sys/kern/kern_descrip.c:1264 fdfree(ffff800031c0a028) at fdfree+0x116 sys/kern/kern_descrip.c:1195 exit1(ffff800031c0a028,0,0,1) at exit1+0x576 sys/kern/kern_exit.c:215 sys_exit(ffff800031c0a028,ffff80002f3fbdb0,ffff80002f3fbd00) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80002f3fbdb0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002f3fbdb0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7a3cec846750, count: -12 ddb{0}> machine ddbcpu 1