uvm_fault(0xfffffd806b5eed40, 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 159304 62819 0 0 0 1 syz-executor dt_ioctl_record_stop(ffff800001482000) at dt_ioctl_record_stop+0xf0 sys/dev/dt/dt_dev.c:580 dtclose(11e5f,81,2000,ffff80003c43b738) at dtclose+0x105 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff80003c43b738) at dtclose+0x105 sys/dev/dt/dt_dev.c:232 spec_close(ffff80002a28b0b0) at spec_close+0x45f sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd80715af1e8,81,fffffd80097fb750,ffff80003c43b738) at VOP_CLOSE+0x133 sys/kern/vfs_vops.c:156 vn_closefile(fffffd806596c068,ffff80003c43b738) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd806596c068,ffff80003c43b738) at vn_closefile+0x12b sys/kern/vfs_vnops.c:615 fdrop(fffffd806596c068,ffff80003c43b738) at fdrop+0x126 sys/kern/kern_descrip.c:1267 closef(fffffd806596c068,ffff80003c43b738) at closef+0x192 sys/kern/kern_descrip.c:1251 fdfree(ffff80003c43b738) at fdfree+0x116 sys/kern/kern_descrip.c:1182 exit1(ffff80003c43b738,0,0,1) at exit1+0x58f sys/kern/kern_exit.c:214 sys_exit(ffff80003c43b738,ffff80002a28b420,ffff80002a28b370) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80002a28b420) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a28b420) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x720102ec9150, 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(0xfffffd806b5eed40, 0x0, 0, 1) -> e ddb{0}> trace dt_ioctl_record_stop(ffff800001482000) at dt_ioctl_record_stop+0xf0 sys/dev/dt/dt_dev.c:580 dtclose(11e5f,81,2000,ffff80003c43b738) at dtclose+0x105 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff80003c43b738) at dtclose+0x105 sys/dev/dt/dt_dev.c:232 spec_close(ffff80002a28b0b0) at spec_close+0x45f sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd80715af1e8,81,fffffd80097fb750,ffff80003c43b738) at VOP_CLOSE+0x133 sys/kern/vfs_vops.c:156 vn_closefile(fffffd806596c068,ffff80003c43b738) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd806596c068,ffff80003c43b738) at vn_closefile+0x12b sys/kern/vfs_vnops.c:615 fdrop(fffffd806596c068,ffff80003c43b738) at fdrop+0x126 sys/kern/kern_descrip.c:1267 closef(fffffd806596c068,ffff80003c43b738) at closef+0x192 sys/kern/kern_descrip.c:1251 fdfree(ffff80003c43b738) at fdfree+0x116 sys/kern/kern_descrip.c:1182 exit1(ffff80003c43b738,0,0,1) at exit1+0x58f sys/kern/kern_exit.c:214 sys_exit(ffff80003c43b738,ffff80002a28b420,ffff80002a28b370) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80002a28b420) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a28b420) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x720102ec9150, count: -12 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff80002a28afe0 rbx 0xffffffff82bbc4f0 dtclose rdx 0 rcx 0xffff80003c43b738 rax 0xffffffff8382fff0 cpu_info_full_primary+0x1ff0 r8 0x30 r9 0x7e r10 0xe703339130a8c90 r11 0x68c79e5575b82804 r12 0 r13 0 r14 0 r15 0xffff8000014d0c00 rip 0xffffffff82bbc8d0 dt_ioctl_record_stop+0xf0 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80002a28afb0 ss 0x10 dt_ioctl_record_stop+0xf0: movq 0(%r14),%r12 ddb{0}> show proc PROC (syz-executor) tid=456880 pid=39927 tcnt=0 stat=onproc flags process=1008 proc=2000 runpri=32, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80003c43b738 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff8000ffffdc38,0xffff80003c43a2c8 process=0xffff80003c418e48 user=0xffff80002a286000, vmspace=0xfffffd806b5eed40 estcpu=36, cpticks=5, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 62819 159304 69120 0 7 0 syz-executor 62819 211701 69120 0 2 0x4000080 syz-executor 37211 326307 16785 -1 3 0x90 nanoslp syz-executor 37211 50113 16785 -1 3 0x4000090 pipewr syz-executor 37211 419464 16785 -1 3 0x4000090 fsleep syz-executor 37211 265397 16785 -1 3 0x4000090 fsleep syz-executor 51994 440136 1212 0 2 0xc80 syz-executor 51994 523144 1212 0 3 0x4000080 fifow syz-executor 51994 409850 1212 0 3 0x4000080 fsleep syz-executor 12888 503007 55685 0 2 0x10000082 syz-executor 74494 217470 55685 0 3 0x82 wait syz-executor 16785 360449 55685 0 2 0xc82 syz-executor 89734 369935 1 0 3 0x100083 ttyin getty 27701 292205 0 0 3 0x14200 bored sosplice 69120 146256 55685 0 2 0xc82 syz-executor 12575 403964 55685 0 3 0x82 nanoslp syz-executor 1212 521877 55685 0 2 0xc82 syz-executor 52516 316778 55685 0 2 0x2 syz-executor 2458 216251 55685 0 2 0x10000002 syz-executor 55685 414472 23330 0 2 0x2 syz-executor 23330 415003 22703 0 3 0x10008a sigsusp ksh 22703 261467 35456 0 3 0x98 kqread sshd-session 35456 411120 77600 0 3 0x92 kqread sshd-session 77600 516800 1 0 3 0x88 kqread sshd 2416 122069 10357 74 3 0x1100092 bpf pflogd 10357 113606 1 0 3 0x80 sbwait pflogd 24113 127756 76084 73 3 0x1100090 kqread syslogd 76084 326827 1 0 3 0x100082 sbwait syslogd 59626 448725 1 0 3 0x100080 kqread resolvd 79069 516935 76962 77 3 0x100092 kqread dhcpleased 48307 212778 76962 77 3 0x100092 kqread dhcpleased 76962 43967 1 0 3 0x80 kqread dhcpleased 54811 159184 0 0 3 0x14200 bored smr 30024 224587 0 0 2 0x14200 zerothread 78355 58732 0 0 3 0x14200 aiodoned aiodoned 94257 70364 0 0 3 0x14200 syncer update 37230 63711 0 0 3 0x14200 cleaner cleaner 26614 95367 0 0 3 0x14200 reaper reaper 88404 518274 0 0 3 0x14200 pgdaemon pagedaemon 56226 236214 0 0 3 0x14200 bored viomb 93278 490324 0 0 3 0x40014200 acpi0 acpi0 26822 80859 0 0 3 0x40014200 idle1 69526 180388 0 0 3 0x14200 bored softnet3 40259 488104 0 0 3 0x14200 bored softnet2 90941 205160 0 0 3 0x14200 bored softnet1 43141 421580 0 0 3 0x14200 bored softnet0 67957 511611 0 0 3 0x14200 bored systqmp 17937 241795 0 0 3 0x14200 bored systq 78837 436851 0 0 3 0x14200 tmoslp softclockmp 88889 221276 0 0 2 0x40014200 softclock 7639 44139 0 0 3 0x40014200 idle0 1 428558 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 62819 (syz-executor) thread 0xffff8000303dd210 (159304) exclusive rwlock uobjlk r = 0 (0xfffffd806b652498) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1160 #1 rw_do_enter_write+0x367 sys/kern/kern_rwlock.c:311 #2 uvm_map_protect+0xb6e sys/uvm/uvm_map.c:3184 #3 sys_mprotect+0x34c sys/uvm/uvm_mmap.c:590 #4 syscall+0xbc6 mi_syscall sys/sys/syscall_mi.h:176 [inline] #4 syscall+0xbc6 sys/arch/amd64/amd64/trap.c:579 #5 Xsyscall+0x128 exclusive rwlock vmmaplk r = 0 (0xfffffd806b5ee8a0) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1160 #1 rw_do_enter_write+0x367 sys/kern/kern_rwlock.c:311 #2 vm_map_lock_ln+0x12e sys/uvm/uvm_map.c:5148 #3 uvm_map_protect+0xe1 sys/uvm/uvm_map.c:3057 #4 sys_mprotect+0x34c sys/uvm/uvm_mmap.c:590 #5 syscall+0xbc6 mi_syscall sys/sys/syscall_mi.h:176 [inline] #5 syscall+0xbc6 sys/arch/amd64/amd64/trap.c:579 #6 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10227 11203K 11405K 166960K 12070 0 pcb 18 12K 12K 166960K 86 0 rtable 231 9K 9K 166960K 546 0 pf 34 17K 18K 166960K 99 0 ifaddr 40 7K 7K 166960K 86 0 ifgroup 53 2K 2K 166960K 132 0 sysctl 4 1K 9K 166960K 10 0 counters 70 37K 37K 166960K 130 0 ioctlops 0 0K 4K 166960K 1546 0 iov 0 0K 12K 166960K 16 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1377 87K 87K 166960K 2029 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 10 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 19 0 dirhash 12 2K 2K 166960K 30 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 16 57K 93K 166960K 638 0 sigio 0 0K 0K 166960K 4 0 proc 74 103K 115K 166960K 684 0 subproc 72 4K 4K 166960K 101 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 95 0 in_multi 88 6K 7K 166960K 164 0 ether_multi 1 0K 0K 166960K 3 0 mrt 0 0K 0K 166960K 4 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 91 413K 413K 166960K 91 0 exec 0 0K 1K 166960K 470 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 243 159K 173K 166960K 7537 0 UVM aobj 16 2K 4K 166960K 19 0 pinsyscall 41 82K 106K 166960K 1818 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 19 0 NDP 12 0K 2K 166960K 55 0 temp 64 8684K 8804K 166960K 22159 0 kqueue 14 22K 27K 166960K 112 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 67 0 64 1 0 1 1 0 8 0 rtentry 176 176 0 73 6 1 5 6 0 8 0 unpcb 144 473 0 450 4 3 1 4 0 8 0 syncache 336 5 0 5 2 1 1 1 0 8 1 tcpcb 808 303 0 298 9 2 7 7 0 8 6 arp 128 31 0 14 1 0 1 1 0 8 0 ipq 40 1 0 1 1 1 0 1 0 8 0 ipqe 40 3 0 3 1 1 0 1 0 8 0 inpcb 384 740 0 729 8 0 8 8 0 8 6 nd6 144 34 0 12 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 kcovpl 48 11 0 3 1 0 1 1 0 8 0 ppxss 1192 18 0 16 1 0 1 1 0 8 0 pppxif 1504 7 0 7 1 0 1 1 0 8 1 pffrag 232 4 0 2 1 0 1 1 0 482 0 pffrnode 88 4 0 2 1 0 1 1 0 8 0 pffrent 40 7 0 5 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 pfstitem 24 48 0 3 1 0 1 1 0 8 0 pfstkey 128 48 0 3 2 0 2 2 0 8 0 pfstate 384 48 0 3 5 0 5 5 0 8 0 pfrule 1344 21 0 16 2 1 1 2 0 8 0 rttmr 136 2 0 2 1 0 1 1 0 8 1 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 707 0 291 30 2 28 29 0 8 1 art_table 32 710 0 291 4 0 4 4 0 8 0 art_node 16 174 0 81 1 0 1 1 0 8 0 sysvmsgpl 40 9 0 7 1 0 1 1 0 8 0 semapl 112 16 0 6 1 0 1 1 0 8 0 shmpl 112 16 0 3 1 0 1 1 0 8 0 dirhash 1024 29 0 12 3 0 3 3 0 8 0 dino2pl 256 2680 0 1166 96 0 96 96 0 8 0 ffsino 288 2680 0 1166 109 0 109 109 0 8 0 nchpl 144 3537 0 1829 64 0 64 64 0 8 0 rtmask 32 1 0 0 1 0 1 1 0 8 0 uvmvnodes 80 3047 0 0 63 0 63 63 0 8 0 vnodes 216 3047 0 0 170 0 170 170 0 8 0 namei 1024 12362 0 12362 2 1 1 2 0 8 1 percpumem 16 80 0 30 1 0 1 1 0 8 0 kstatmem 264 68 0 42 4 1 3 3 0 8 1 scsiplug 72 2 0 2 1 1 0 1 0 8 0 scxspl 216 12633 0 12633 9 2 7 7 1 8 7 plimitpl 152 184 0 165 1 0 1 1 0 8 0 sigapl 424 937 0 886 7 1 6 7 0 8 0 knotepl 120 551 0 0 17 0 17 17 0 8 0 kqueuepl 224 162 0 152 1 0 1 1 0 8 0 pipepl 336 216 0 124 8 0 8 8 0 8 0 fdescpl 520 918 0 888 3 0 3 3 0 8 0 filepl 160 6013 0 5587 19 1 18 18 0 8 0 lockfpl 104 228 0 226 1 0 1 1 0 8 0 lockfspl 48 45 0 43 1 0 1 1 0 8 0 sessionpl 144 28 0 19 1 0 1 1 0 8 0 pgrppl 48 43 0 26 1 0 1 1 0 8 0 ucredpl 104 1203 0 1186 1 0 1 1 0 8 0 zombiepl 144 891 0 886 1 0 1 1 0 8 0 processpl 1208 937 0 886 5 0 5 5 0 8 0 procpl 656 1754 0 1697 6 0 6 6 0 8 0 srpgc 96 8 0 8 1 1 0 1 0 8 0 sosppl 168 3 0 3 1 0 1 1 0 8 1 sockpl 728 1294 0 1257 11 1 10 10 0 8 6 mcl64k 65536 4 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 119 0 0 15 0 15 15 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 33 0 0 4 0 4 4 0 8 0 mtagpl 96 51 0 0 2 0 2 2 0 8 0 mbufpl 256 253 0 0 16 0 16 16 0 8 0 bufpl 280 5340 0 120 373 0 373 373 0 8 0 anonpl 32 7669 0 0 62 0 62 62 0 246 0 amapchunkpl 152 23512 0 23004 27 0 27 27 0 158 4 amappl16 200 2999 0 2961 18 6 12 15 0 8 6 amappl15 192 7 0 7 1 1 0 1 0 8 0 amappl14 184 126 0 114 1 0 1 1 0 8 0 amappl13 176 25 0 25 1 1 0 1 0 8 0 amappl12 168 1612 0 1582 4 2 2 3 0 8 0 amappl11 160 62 0 48 1 0 1 1 0 8 0 amappl10 152 3 0 3 1 1 0 1 0 8 0 amappl9 144 248 0 248 1 1 0 1 0 8 0 amappl8 136 23 0 19 1 0 1 1 0 8 0 amappl7 128 118 0 106 1 0 1 1 0 8 0 amappl6 120 214 0 211 1 0 1 1 0 8 0 amappl5 112 148 0 139 1 0 1 1 0 8 0 amappl4 104 335 0 315 1 0 1 1 0 8 0 amappl3 96 4566 0 4454 4 0 4 4 0 8 0 amappl2 88 698 0 635 2 0 2 2 0 8 0 amappl1 80 10940 0 10330 15 0 15 15 0 8 0 amappl 88 6718 0 6546 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 8 0 8 2 2 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 18 0 3 1 0 1 1 0 8 0 uaddrrnd 24 918 0 888 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 918 0 888 1 0 1 1 0 8 0 vmmpekpl 168 8984 0 8927 3 0 3 3 0 8 0 vmmpepl 168 64061 0 62097 101 2 99 101 0 357 2 vmsppl 480 917 0 888 5 0 5 5 0 8 0 rwobjpl 72 22530 0 18509 75 0 75 75 0 8 0 pdppl 4096 1843 0 1776 111 38 73 85 0 8 6 pvpl 32 15377 0 0 125 0 125 125 0 265 0 pmappl 256 917 0 888 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 416 0 46 11 0 11 11 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace dt_ioctl_record_stop(ffff800001482000) at dt_ioctl_record_stop+0xf0 sys/dev/dt/dt_dev.c:580 dtclose(11e5f,81,2000,ffff80003c43b738) at dtclose+0x105 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff80003c43b738) at dtclose+0x105 sys/dev/dt/dt_dev.c:232 spec_close(ffff80002a28b0b0) at spec_close+0x45f sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd80715af1e8,81,fffffd80097fb750,ffff80003c43b738) at VOP_CLOSE+0x133 sys/kern/vfs_vops.c:156 vn_closefile(fffffd806596c068,ffff80003c43b738) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd806596c068,ffff80003c43b738) at vn_closefile+0x12b sys/kern/vfs_vnops.c:615 fdrop(fffffd806596c068,ffff80003c43b738) at fdrop+0x126 sys/kern/kern_descrip.c:1267 closef(fffffd806596c068,ffff80003c43b738) at closef+0x192 sys/kern/kern_descrip.c:1251 fdfree(ffff80003c43b738) at fdfree+0x116 sys/kern/kern_descrip.c:1182 exit1(ffff80003c43b738,0,0,1) at exit1+0x58f sys/kern/kern_exit.c:214 sys_exit(ffff80003c43b738,ffff80002a28b420,ffff80002a28b370) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80002a28b420) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a28b420) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x720102ec9150, count: -12 ddb{0}> machine ddbcpu 1