uvm_fault(0xfffffd806ca027c0, 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 *128833 80645 0 0 0x4000000 0K syz-executor dt_ioctl_record_stop(ffff800001464000) at dt_ioctl_record_stop+0x108 sys/dev/dt/dt_dev.c:593 dtioctl(31e60,80044403,ffff80002a31c990,1,ffff800034be27f8) at dtioctl+0x536 sys/dev/dt/dt_dev.c:325 VOP_IOCTL(fffffd8066301e80,80044403,ffff80002a31c990,1,fffffd80097fd618,ffff800034be27f8) at VOP_IOCTL+0xac sys/kern/vfs_vops.c:264 vn_ioctl(fffffd806d46c518,80044403,ffff80002a31c990,ffff800034be27f8) at vn_ioctl+0xf8 sys/kern/vfs_vnops.c:531 sys_ioctl(ffff800034be27f8,ffff80002a31cb70,ffff80002a31cac0) at sys_ioctl+0x674 sys/kern/sys_generic.c:-1 syscall(ffff80002a31cb70) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a31cb70) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xef73cf01b70, count: 8 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(0xfffffd806ca027c0, 0x0, 0, 1) -> e ddb{0}> trace dt_ioctl_record_stop(ffff800001464000) at dt_ioctl_record_stop+0x108 sys/dev/dt/dt_dev.c:593 dtioctl(31e60,80044403,ffff80002a31c990,1,ffff800034be27f8) at dtioctl+0x536 sys/dev/dt/dt_dev.c:325 VOP_IOCTL(fffffd8066301e80,80044403,ffff80002a31c990,1,fffffd80097fd618,ffff800034be27f8) at VOP_IOCTL+0xac sys/kern/vfs_vops.c:264 vn_ioctl(fffffd806d46c518,80044403,ffff80002a31c990,ffff800034be27f8) at vn_ioctl+0xf8 sys/kern/vfs_vnops.c:531 sys_ioctl(ffff800034be27f8,ffff80002a31cb70,ffff80002a31cac0) at sys_ioctl+0x674 sys/kern/sys_generic.c:-1 syscall(ffff80002a31cb70) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a31cb70) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xef73cf01b70, count: -7 ddb{0}> show registers rdi 0xffff8000387fc000 rsi 0xde rbp 0xffff80002a31c730 rbx 0x360 rdx 0xffff8000387fc000 rcx 0xdd rax 0xffffffff838759e0 dt_prov_syscall r8 0xffff800034be27f8 r9 0xffff800034be27f8 r10 0x34ca97639404e845 r11 0x5c3d19ef2e5bd06e r12 0 r13 0 r14 0 r15 0xffff8000014c2e00 rip 0xffffffff818a4fe8 dt_ioctl_record_stop+0x108 cs 0x8 rflags 0x10207 __ALIGN_SIZE+0xf207 rsp 0xffff80002a31c700 ss 0x10 dt_ioctl_record_stop+0x108: movq 0(%r14),%r14 ddb{0}> show proc PROC (syz-executor) tid=128833 pid=80645 tcnt=2 stat=onproc flags process=0 proc=4000000 runpri=50, usrpri=50, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff800034be2030,0xffff800034be2570 process=0xffff80003c4bb048 user=0xffff80002a317000, vmspace=0xfffffd806ca027c0 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 79779 396929 76740 0 2 0x2 sh 80645 429211 38954 0 3 0x80 fsleep syz-executor *80645 128833 38954 0 7 0x4000000 syz-executor 76740 512907 80373 0 3 0x82 wait syz-executor 51317 15218 25577 0 3 0x80 fsleep syz-executor 51317 482872 25577 0 3 0x4000080 fifor syz-executor 59144 376822 1867 0 3 0x80 fsleep syz-executor 59144 229170 1867 0 3 0x4000080 msgwait syz-executor 51406 113145 21592 0 3 0x80 fsleep syz-executor 51406 249187 21592 0 3 0x4000080 bell syz-executor 48839 409800 31080 0 3 0x80 fsleep syz-executor 48839 140614 31080 0 3 0x4000080 piperd syz-executor 26399 7753 0 0 3 0x14280 nfsidl nfsio 45411 480626 0 0 3 0x14280 nfsidl nfsio 1974 198671 0 0 3 0x14280 nfsidl nfsio 66327 125513 0 0 3 0x14280 nfsidl nfsio 7347 46561 0 0 3 0x14280 nfsidl nfsio 24043 225931 0 0 3 0x14280 nfsidl nfsio 72146 152419 0 0 3 0x14280 nfsidl nfsio 9695 31861 0 0 3 0x14280 nfsidl nfsio 75879 92909 0 0 3 0x14280 nfsidl nfsio 61167 349973 0 0 3 0x14280 nfsidl nfsio 12001 69623 0 0 3 0x14280 nfsidl nfsio 64084 337154 0 0 3 0x14280 nfsidl nfsio 29403 395158 0 0 3 0x14280 nfsidl nfsio 79148 149785 0 0 3 0x14280 nfsidl nfsio 27040 317075 0 0 3 0x14280 nfsidl nfsio 660 70498 0 0 3 0x14280 nfsidl nfsio 91468 265990 0 0 3 0x14280 nfsidl nfsio 20213 70484 0 0 3 0x14280 nfsidl nfsio 11498 250087 0 0 3 0x14280 nfsidl nfsio 54142 156157 0 0 3 0x14280 nfsidl nfsio 25577 131752 80373 0 3 0x82 nanoslp syz-executor 25312 170495 76032 0 3 0x100082 sbwait arp 76032 418148 69850 0 3 0x10008a sigsusp sh 38954 34399 80373 0 2 0xc82 syz-executor 1867 286802 80373 0 3 0x82 nanoslp syz-executor 31080 395097 80373 0 3 0x82 nanoslp syz-executor 69850 469796 80373 0 3 0x82 wait syz-executor 21592 461548 80373 0 3 0x82 nanoslp syz-executor 48474 80833 80373 0 3 0x82 wait syz-executor 80373 413595 99880 0 3 0x82 kqread syz-executor 99880 498147 15633 0 3 0x10008a sigsusp ksh 15633 98740 18967 0 3 0x98 kqread sshd-session 18967 68566 12905 0 3 0x92 kqread sshd-session 66712 18840 1 0 3 0x100083 ttyopn getty 12905 89215 1 0 3 0x88 kqread sshd 49087 1767 82731 74 3 0x1100092 bpf pflogd 82731 390940 1 0 3 0x80 sbwait pflogd 57291 496882 20330 73 3 0x1100090 kqread syslogd 20330 461739 1 0 3 0x100082 sbwait syslogd 38963 501527 1 0 3 0x100080 kqread resolvd 21259 318027 51492 77 3 0x100092 kqread dhcpleased 45953 486677 51492 77 3 0x100092 kqread dhcpleased 51492 442068 1 0 3 0x80 kqread dhcpleased 60134 222229 0 0 3 0x14200 bored smr 42277 425628 0 0 2 0x14200 zerothread 42164 142496 0 0 3 0x14200 aiodoned aiodoned 85806 434084 0 0 3 0x14200 syncer update 63381 511600 0 0 3 0x14200 cleaner cleaner 38792 460561 0 0 3 0x14200 reaper reaper 61348 113201 0 0 3 0x14200 pgdaemon pagedaemon 42695 381977 0 0 3 0x14200 bored viomb 53249 481434 0 0 3 0x40014200 acpi0 acpi0 97760 242508 0 0 7 0x40014200 idle1 42074 450376 0 0 3 0x14200 bored softnet1 91218 478204 0 0 3 0x14200 bored softnet0 33435 324033 0 0 3 0x14200 bored systqmp 32329 1195 0 0 3 0x14200 bored systq 6521 152409 0 0 3 0x14200 tmoslp softclockmp 5346 422319 0 0 3 0x40014200 tmoslp softclock 48964 450448 0 0 3 0x40014200 idle0 1 116948 0 0 3 0x80082 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{0}> show all locks Process 80645 (syz-executor) thread 0xffff800034be27f8 (128833) exclusive rwlock dtlk r = 0 (0xffffffff837e2978) #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 dt_ioctl_record_stop+0x2e sys/dev/dt/dt_dev.c:572 #3 dtioctl+0x536 sys/dev/dt/dt_dev.c:325 #4 VOP_IOCTL+0xac sys/kern/vfs_vops.c:264 #5 vn_ioctl+0xf8 sys/kern/vfs_vnops.c:531 #6 sys_ioctl+0x674 sys/kern/sys_generic.c:-1 #7 syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] #7 syscall+0xbd4 sys/arch/amd64/amd64/trap.c:775 #8 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff83a10050) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 vn_ioctl+0x4d sys/kern/vfs_vnops.c:514 #2 sys_ioctl+0x674 sys/kern/sys_generic.c:-1 #3 syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] #3 syscall+0xbd4 sys/arch/amd64/amd64/trap.c:775 #4 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10238 11137K 11357K 166960K 12369 0 pcb 17 14K 16K 166960K 198 0 rtable 147 8K 8K 166960K 450 0 pf 38 18K 22K 166960K 105 0 ifaddr 31 4K 7K 166960K 76 0 ifgroup 59 2K 2K 166960K 116 0 sysctl 4 1K 9K 166960K 12 0 counters 72 37K 38K 166960K 126 0 ioctlops 0 0K 4K 166960K 1804 0 iov 0 0K 16K 166960K 32 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1431 90K 91K 166960K 1946 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 9 0 VM map 2 1K 1K 166960K 2 0 sem 13 136K 136K 166960K 29 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 19 69K 85K 166960K 745 0 sigio 0 0K 0K 166960K 12 0 proc 72 115K 147K 166960K 630 0 subproc 72 4K 4K 166960K 90 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 99 0 in_multi 48 3K 6K 166960K 139 0 ether_multi 1 0K 0K 166960K 9 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 460 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 247 177K 197K 166960K 8464 0 UVM aobj 14 4K 4K 166960K 15 0 pinsyscall 45 90K 104K 166960K 1900 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 1K 166960K 55 0 NDP 13 0K 1K 166960K 49 0 temp 54 8670K 8923K 166960K 32273 0 kqueue 13 20K 29K 166960K 141 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 65 0 60 1 0 1 1 0 8 0 rtentry 176 128 0 79 5 0 5 5 0 8 0 unpcb 144 438 0 417 2 1 1 2 0 8 0 syncache 336 3 0 3 1 1 0 1 0 8 0 tcpcb 736 266 0 262 10 3 7 7 0 8 6 arp 136 21 0 13 1 0 1 1 0 8 0 inpcb 328 844 0 837 12 3 9 12 0 8 8 nd6 152 25 0 15 1 0 1 1 0 8 0 pkpcb 40 2 0 2 2 1 1 1 0 8 1 kcovpl 48 10 0 2 1 0 1 1 0 8 0 ppxss 1192 19 0 19 1 0 1 1 0 8 1 pppxif 1504 1 0 1 1 1 0 1 0 8 0 pffrag 232 6 0 3 1 0 1 1 0 482 0 pffrnode 88 6 0 3 1 0 1 1 0 8 0 pffrent 40 15 0 12 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 4 0 4 1 1 0 1 0 8 0 pfanchor 1288 1 0 1 1 1 0 1 0 8 0 pfstitem 24 44 0 20 1 0 1 1 0 8 0 pfstkey 128 46 0 22 2 0 2 2 0 8 0 pfstate 448 43 0 21 4 0 4 4 0 8 0 pfrule 1344 25 0 20 2 1 1 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 551 0 318 26 7 19 26 0 8 0 art_table 40 553 0 318 5 0 5 5 0 8 0 art_node 32 128 0 84 1 0 1 1 0 8 0 sysvmsgpl 40 11 0 6 1 0 1 1 0 8 0 semapl 112 24 0 13 1 0 1 1 0 8 0 shmpl 112 11 0 1 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2670 0 1163 96 0 96 96 0 8 0 ffsino 296 2670 0 1163 117 0 117 117 0 8 0 nchpl 144 3716 0 2011 64 0 64 64 0 8 0 rtmask 32 6 0 6 2 2 0 1 0 8 0 vnodes 216 3135 0 0 175 0 175 175 0 8 0 namei 1024 12333 0 12333 1 0 1 1 0 8 1 percpumem 16 78 0 27 1 0 1 1 0 8 0 vcpupl 3968 1 0 0 1 0 1 1 0 8 0 vmpool 840 1 0 0 1 0 1 1 0 8 0 pfiaddrpl 120 1 0 1 1 1 0 1 0 8 0 kstatmem 264 70 0 38 3 0 3 3 0 8 0 scsiplug 72 3 0 3 2 2 0 1 0 8 0 scxspl 216 30946 0 30946 11 9 2 8 1 8 2 plimitpl 152 203 0 183 1 0 1 1 0 8 0 sigapl 424 1071 0 1002 8 0 8 8 0 8 0 knotepl 120 780 0 0 24 0 24 24 0 8 0 kqueuepl 224 237 0 228 3 2 1 2 0 8 0 pipepl 344 172 0 144 3 0 3 3 0 8 0 fdescpl 528 1033 0 1000 3 0 3 3 0 8 0 filepl 160 5928 0 5698 17 2 15 15 0 8 4 lockfpl 104 211 0 209 1 0 1 1 0 8 0 lockfspl 48 94 0 92 1 0 1 1 0 8 0 sessionpl 144 24 0 15 1 0 1 1 0 8 0 pgrppl 48 107 0 90 1 0 1 1 0 8 0 ucredpl 104 745 0 732 1 0 1 1 0 8 0 zombiepl 144 1003 0 1002 1 0 1 1 0 8 0 processpl 1232 1071 0 1002 6 0 6 6 0 8 0 procpl 664 2075 0 2001 8 0 8 8 0 8 0 sosppl 176 5 0 5 3 3 0 1 0 8 0 sockpl 752 1365 0 1332 17 6 11 17 0 8 7 mcl64k 65536 5 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 127 0 0 16 0 16 16 0 8 0 mcl2k 2048 40 0 0 5 0 5 5 0 8 0 mtagpl 96 16 0 0 1 0 1 1 0 8 0 mbufpl 256 230 0 0 14 0 14 14 0 8 0 bufpl 280 13363 0 7226 439 0 439 439 0 8 0 anonpl 32 11460 0 0 93 0 93 93 0 246 0 amapchunkpl 152 27774 0 27279 33 6 27 31 0 158 4 amappl16 200 4712 0 4509 39 24 15 28 0 8 0 amappl15 192 8 0 8 1 1 0 1 0 8 0 amappl14 184 4 0 4 1 1 0 1 0 8 0 amappl13 176 439 0 437 1 0 1 1 0 8 0 amappl12 168 1391 0 1346 3 0 3 3 0 8 0 amappl11 160 8 0 8 1 1 0 1 0 8 0 amappl10 152 47 0 33 1 0 1 1 0 8 0 amappl9 144 254 0 254 1 1 0 1 0 8 0 amappl8 136 25 0 23 1 0 1 1 0 8 0 amappl7 128 91 0 90 1 0 1 1 0 8 0 amappl6 120 290 0 274 1 0 1 1 0 8 0 amappl5 112 70 0 59 1 0 1 1 0 8 0 amappl4 104 441 0 408 1 0 1 1 0 8 0 amappl3 96 5363 0 5253 5 1 4 4 0 8 0 amappl2 88 532 0 470 2 0 2 2 0 8 0 amappl1 80 11490 0 10879 15 1 14 15 0 8 0 amappl 88 7631 0 7469 5 0 5 5 0 92 0 uvmvnodes 80 125 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 dma512 512 1 0 1 1 1 0 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 14 0 1 1 0 1 1 0 8 0 uaddrrnd 24 1033 0 1000 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1033 0 1000 1 0 1 1 0 8 0 vmmpekpl 168 9890 0 9850 3 0 3 3 0 8 0 vmmpepl 168 72574 0 70445 110 7 103 109 0 357 5 vmsppl 488 1032 0 1000 5 0 5 5 0 8 0 rwobjpl 80 22427 0 21153 35 6 29 33 0 8 0 pdppl 4096 2076 0 2001 102 25 77 84 0 8 2 pvpl 32 17986 0 0 145 0 145 145 0 265 0 pmappl 256 1033 0 1000 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 290 0 40 8 0 8 8 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace dt_ioctl_record_stop(ffff800001464000) at dt_ioctl_record_stop+0x108 sys/dev/dt/dt_dev.c:593 dtioctl(31e60,80044403,ffff80002a31c990,1,ffff800034be27f8) at dtioctl+0x536 sys/dev/dt/dt_dev.c:325 VOP_IOCTL(fffffd8066301e80,80044403,ffff80002a31c990,1,fffffd80097fd618,ffff800034be27f8) at VOP_IOCTL+0xac sys/kern/vfs_vops.c:264 vn_ioctl(fffffd806d46c518,80044403,ffff80002a31c990,ffff800034be27f8) at vn_ioctl+0xf8 sys/kern/vfs_vnops.c:531 sys_ioctl(ffff800034be27f8,ffff80002a31cb70,ffff80002a31cac0) at sys_ioctl+0x674 sys/kern/sys_generic.c:-1 syscall(ffff80002a31cb70) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a31cb70) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xef73cf01b70, count: -7 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffff8000299edff0) 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 acpicpu_idle() at acpicpu_idle+0x457 sys/dev/acpi/acpicpu_x86.c:1224 sched_idle(ffff8000299edff0) at sched_idle+0x391 sys/kern/kern_sched.c:191 end trace frame: 0x0, count: 10 ddb{1}> trace x86_ipi_db(ffff8000299edff0) 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 acpicpu_idle() at acpicpu_idle+0x457 sys/dev/acpi/acpicpu_x86.c:1224 sched_idle(ffff8000299edff0) at sched_idle+0x391 sys/kern/kern_sched.c:191 end trace frame: 0x0, count: -5