uvm_fault(0xfffffd806b8903e8, 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 261329 97072 0 0 0 1 syz-executor dt_ioctl_record_stop(ffff800001479000) at dt_ioctl_record_stop+0x108 sys/dev/dt/dt_dev.c:586 dtclose(11e5f,81,2000,ffff800032008020) at dtclose+0x109 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff800032008020) at dtclose+0x109 sys/dev/dt/dt_dev.c:232 spec_close(ffff800033c1adb0) at spec_close+0x466 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd8060f398a8,81,fffffd80097fb478,ffff800032008020) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffffd8067c15228,ffff800032008020) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd8067c15228,ffff800032008020) at vn_closefile+0x12b sys/kern/vfs_vnops.c:615 fdrop(fffffd8067c15228,ffff800032008020) at fdrop+0x121 sys/kern/kern_descrip.c:1280 closef(fffffd8067c15228,ffff800032008020) at closef+0x192 sys/kern/kern_descrip.c:1264 fdfree(ffff800032008020) at fdfree+0x116 sys/kern/kern_descrip.c:1195 exit1(ffff800032008020,0,0,1) at exit1+0x576 sys/kern/kern_exit.c:215 sys_exit(ffff800032008020,ffff800033c1b120,ffff800033c1b070) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff800033c1b120) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff800033c1b120) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x741bc988aeb0, 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(0xfffffd806b8903e8, 0x0, 0, 1) -> e ddb{0}> trace dt_ioctl_record_stop(ffff800001479000) at dt_ioctl_record_stop+0x108 sys/dev/dt/dt_dev.c:586 dtclose(11e5f,81,2000,ffff800032008020) at dtclose+0x109 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff800032008020) at dtclose+0x109 sys/dev/dt/dt_dev.c:232 spec_close(ffff800033c1adb0) at spec_close+0x466 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd8060f398a8,81,fffffd80097fb478,ffff800032008020) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffffd8067c15228,ffff800032008020) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd8067c15228,ffff800032008020) at vn_closefile+0x12b sys/kern/vfs_vnops.c:615 fdrop(fffffd8067c15228,ffff800032008020) at fdrop+0x121 sys/kern/kern_descrip.c:1280 closef(fffffd8067c15228,ffff800032008020) at closef+0x192 sys/kern/kern_descrip.c:1264 fdfree(ffff800032008020) at fdfree+0x116 sys/kern/kern_descrip.c:1195 exit1(ffff800032008020,0,0,1) at exit1+0x576 sys/kern/kern_exit.c:215 sys_exit(ffff800032008020,ffff800033c1b120,ffff800033c1b070) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff800033c1b120) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff800033c1b120) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x741bc988aeb0, count: -12 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff800033c1ace0 rbx 0x1 rdx 0 rcx 0xffff800032008020 rax 0xffffffff83862f10 dt_prov_syscall r8 0 r9 0 r10 0x718329eccfae6d7c r11 0xf9fc03f0d59cdb5c r12 0 r13 0 r14 0 r15 0xffff8000014d1000 rip 0xffffffff825ce928 dt_ioctl_record_stop+0x108 cs 0x8 rflags 0x10207 __ALIGN_SIZE+0xf207 rsp 0xffff800033c1acb0 ss 0x10 dt_ioctl_record_stop+0x108: movq 0(%r14),%r14 ddb{0}> show proc PROC (syz-executor) tid=113120 pid=92608 tcnt=0 stat=onproc flags process=1008 proc=2000 runpri=32, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff800032008020 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff8000320082b8,0xffff80003c03d4f8 process=0xffff8000348266a0 user=0xffff800033c16000, vmspace=0xfffffd806b8903e8 estcpu=36, cpticks=8, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 21365 240945 79098 0 2 0 syz-executor 37218 299670 77346 0 2 0 syz-executor 57050 61729 75519 0 2 0 syz-executor 97072 261329 80451 0 7 0 syz-executor 97072 297823 80451 0 3 0x4000080 sbwait syz-executor 15242 339247 51834 0 2 0 syz-executor 15242 376210 51834 0 3 0x4000080 fsleep syz-executor 15242 213995 51834 0 3 0x4000080 fsleep syz-executor 88747 231765 0 0 3 0x14200 bored sosplice 9719 190356 66245 0 3 0x3000 suspend syz-executor 9719 135099 66245 0 2 0x4081000 syz-executor 9719 451118 66245 0 3 0x4081000 inode syz-executor 77346 354413 30222 0 3 0x82 nanoslp syz-executor 66245 223544 30222 0 3 0x82 nanoslp syz-executor 18048 172973 30222 0 3 0x82 nanoslp syz-executor 51834 255948 30222 0 3 0x82 nanoslp syz-executor 75519 113974 30222 0 2 0x2 syz-executor 80451 6596 30222 0 3 0x82 nanoslp syz-executor 49834 452828 30222 0 3 0x82 wait syz-executor 79098 11766 30222 0 2 0x2 syz-executor 30222 496393 91111 0 3 0x82 kqread syz-executor 91111 117735 65217 0 3 0x10008a sigsusp ksh 65217 466044 27740 0 3 0x98 kqread sshd-session 27740 397559 50623 0 3 0x92 kqread sshd-session 79326 195681 1 0 3 0x100083 ttyin getty 50623 141025 1 0 3 0x88 kqread sshd 58549 262186 50557 74 3 0x1100092 bpf pflogd 50557 41027 1 0 3 0x80 sbwait pflogd 65711 136006 86696 73 3 0x1100090 kqread syslogd 86696 447048 1 0 3 0x100082 sbwait syslogd 26680 522272 1 0 3 0x100080 kqread resolvd 40069 449343 8038 77 3 0x100092 kqread dhcpleased 8772 322550 8038 77 3 0x100092 kqread dhcpleased 8038 432567 1 0 3 0x80 kqread dhcpleased 42517 296297 0 0 3 0x14200 bored smr 78316 414945 0 0 2 0x14200 zerothread 27249 97200 0 0 3 0x14200 aiodoned aiodoned 6891 149306 0 0 3 0x14200 syncer update 58760 113486 0 0 3 0x14200 cleaner cleaner 61967 208051 0 0 3 0x14200 reaper reaper 688 473473 0 0 3 0x14200 pgdaemon pagedaemon 13115 134145 0 0 3 0x14200 bored viomb 37709 154015 0 0 3 0x40014200 acpi0 acpi0 93981 29550 0 0 3 0x40014200 idle1 28921 130284 0 0 3 0x14200 bored softnet7 67918 505975 0 0 3 0x14200 bored softnet6 71823 354583 0 0 3 0x14200 bored softnet5 35032 224903 0 0 3 0x14200 bored softnet4 15913 475781 0 0 3 0x14200 bored softnet3 50855 307118 0 0 3 0x14200 bored softnet2 48397 427301 0 0 3 0x14200 bored softnet1 4648 100944 0 0 3 0x14200 bored softnet0 59466 441496 0 0 3 0x14200 bored systqmp 47599 402264 0 0 3 0x14200 bored systq 51288 220441 0 0 3 0x14200 tmoslp softclockmp 75599 96274 0 0 3 0x40014200 tmoslp softclock 75427 377384 0 0 3 0x40014200 idle0 1 245652 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 9719 (syz-executor) thread 0xffff80003c03d250 (135099) exclusive rrwlock inode r = 0 (0xfffffd806b849ec0) #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 rrw_enter+0xc6 sys/kern/kern_rwlock.c:621 #3 VOP_LOCK+0xa3 sys/kern/vfs_vops.c:527 #4 vn_lock+0xa4 sys/kern/vfs_vnops.c:570 #5 vn_write+0x18f sys/kern/vfs_vnops.c:405 #6 dofilewritev+0x242 sys/kern/sys_generic.c:380 #7 sys_write+0xa2 sys/kern/sys_generic.c:300 #8 syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] #8 syscall+0xbd4 sys/arch/amd64/amd64/trap.c:748 #9 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10216 11068K 11159K 166960K 11360 0 pcb 17 12K 12K 166960K 26 0 rtable 205 5K 6K 166960K 264 0 pf 34 17K 18K 166960K 47 0 ifaddr 43 7K 7K 166960K 45 0 ifgroup 55 2K 2K 166960K 55 0 sysctl 3 1K 9K 166960K 7 0 counters 68 36K 36K 166960K 68 0 ioctlops 0 0K 4K 166960K 1493 0 iov 0 0K 2K 166960K 2 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1340 84K 84K 166960K 1402 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 3 0 VM map 2 1K 1K 166960K 2 0 sem 3 0K 0K 166960K 4 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 89K 166960K 195 0 sigio 0 0K 0K 166960K 5 0 proc 70 115K 180K 166960K 532 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 6 0 in_multi 99 7K 7K 166960K 104 0 ether_multi 1 0K 0K 166960K 2 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 79 360K 360K 166960K 79 0 exec 0 0K 1K 166960K 385 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 227 167K 177K 166960K 3648 0 UVM aobj 5 2K 2K 166960K 5 0 pinsyscall 43 86K 102K 166960K 1318 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 1 0K 0K 166960K 5 0 NDP 12 0K 2K 166960K 28 0 temp 35 8638K 8702K 166960K 4308 0 kqueue 13 20K 24K 166960K 32 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 40 0 37 1 0 1 1 0 8 0 rtentry 176 95 0 1 5 0 5 5 0 8 0 unpcb 144 61 0 42 1 0 1 1 0 8 0 syncache 336 4 0 4 1 0 1 1 0 8 1 tcpcb 736 20 0 15 1 0 1 1 0 8 0 arp 128 10 0 0 1 0 1 1 0 8 0 inpcb 328 102 0 92 2 0 2 2 0 8 1 nd6 144 16 0 0 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 pffrag 232 2 0 0 1 0 1 1 0 482 0 pffrnode 88 2 0 0 1 0 1 1 0 8 0 pffrent 40 2 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 pftag 88 1 0 1 1 0 1 1 0 8 1 pfstitem 24 26 0 0 1 0 1 1 0 8 0 pfstkey 128 26 0 0 1 0 1 1 0 8 0 pfstate 384 26 0 0 3 0 3 3 0 8 0 pfrule 1344 22 0 17 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 437 0 0 28 0 28 28 0 8 0 art_table 40 438 0 0 5 0 5 5 0 8 0 art_node 32 95 0 11 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 2 1 0 1 1 0 8 1 semapl 112 1 0 0 1 0 1 1 0 8 0 shmpl 112 2 0 0 1 0 1 1 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 1679 0 167 95 0 95 95 0 8 0 ffsino 296 1679 0 167 117 0 117 117 0 8 0 nchpl 144 1936 0 249 63 0 63 63 0 8 0 uvmvnodes 80 1780 0 0 37 0 37 37 0 8 0 vnodes 216 1780 0 0 99 0 99 99 0 8 0 namei 1024 6130 0 6130 2 0 2 2 0 8 2 percpumem 16 49 0 0 1 0 1 1 0 8 0 kstatmem 264 26 0 0 2 0 2 2 0 8 0 scxspl 216 8325 0 8325 9 2 7 7 1 8 7 plimitpl 152 36 0 18 1 0 1 1 0 8 0 sigapl 424 511 0 456 7 0 7 7 0 8 0 knotepl 120 306 0 0 10 0 10 10 0 8 0 kqueuepl 224 38 0 28 1 0 1 1 0 8 0 pipepl 344 116 0 88 3 0 3 3 0 8 0 fdescpl 528 488 0 456 3 0 3 3 0 8 0 filepl 160 1954 0 1727 10 0 10 10 0 8 0 lockfpl 104 24 0 22 1 0 1 1 0 8 0 lockfspl 48 10 0 8 1 0 1 1 0 8 0 sessionpl 144 23 0 14 1 0 1 1 0 8 0 pgrppl 48 31 0 14 1 0 1 1 0 8 0 ucredpl 104 129 0 115 1 0 1 1 0 8 0 zombiepl 144 459 0 456 1 0 1 1 0 8 0 processpl 1232 511 0 456 5 0 5 5 0 8 0 procpl 664 624 0 564 6 0 6 6 0 8 0 sockpl 752 205 0 173 4 0 4 4 0 8 0 mcl64k 65536 3 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 44 0 0 6 0 6 6 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 191 0 0 12 0 12 12 0 8 0 bufpl 280 3523 0 123 243 0 243 243 0 8 0 anonpl 32 5554 0 0 45 0 45 45 0 246 0 amapchunkpl 152 10479 0 10028 31 3 28 28 0 158 7 amappl16 200 2223 0 2060 11 2 9 9 0 8 0 amappl15 192 3 0 3 1 1 0 1 0 8 0 amappl14 184 115 0 103 1 0 1 1 0 8 0 amappl13 176 7 0 7 1 1 0 1 0 8 0 amappl12 168 1148 0 1119 3 1 2 2 0 8 0 amappl11 160 49 0 35 1 0 1 1 0 8 0 amappl10 152 5 0 5 1 1 0 1 0 8 0 amappl9 144 250 0 250 1 1 0 1 0 8 0 amappl8 136 23 0 21 1 0 1 1 0 8 0 amappl7 128 111 0 99 1 0 1 1 0 8 0 amappl6 120 185 0 181 1 0 1 1 0 8 0 amappl5 112 125 0 116 1 0 1 1 0 8 0 amappl4 104 309 0 291 1 0 1 1 0 8 0 amappl3 96 1646 0 1543 4 0 4 4 0 8 0 amappl2 88 655 0 594 2 0 2 2 0 8 0 amappl1 80 8799 0 8198 15 0 15 15 0 8 0 amappl 88 2940 0 2787 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 dma512 512 1 0 1 1 0 1 1 0 8 1 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 4 0 0 1 0 1 1 0 8 0 uaddrrnd 24 488 0 456 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 488 0 456 1 0 1 1 0 8 0 vmmpekpl 168 5741 0 5702 2 0 2 2 0 8 0 vmmpepl 168 38134 0 36017 94 0 94 94 0 357 0 vmsppl 488 487 0 456 5 0 5 5 0 8 0 rwobjpl 80 15479 0 12647 59 0 59 59 0 8 0 pdppl 4096 984 0 912 102 30 72 84 0 8 0 pvpl 32 13297 0 0 109 1 108 108 0 265 0 pmappl 256 487 0 456 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 274 0 32 8 0 8 8 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace dt_ioctl_record_stop(ffff800001479000) at dt_ioctl_record_stop+0x108 sys/dev/dt/dt_dev.c:586 dtclose(11e5f,81,2000,ffff800032008020) at dtclose+0x109 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff800032008020) at dtclose+0x109 sys/dev/dt/dt_dev.c:232 spec_close(ffff800033c1adb0) at spec_close+0x466 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd8060f398a8,81,fffffd80097fb478,ffff800032008020) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffffd8067c15228,ffff800032008020) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd8067c15228,ffff800032008020) at vn_closefile+0x12b sys/kern/vfs_vnops.c:615 fdrop(fffffd8067c15228,ffff800032008020) at fdrop+0x121 sys/kern/kern_descrip.c:1280 closef(fffffd8067c15228,ffff800032008020) at closef+0x192 sys/kern/kern_descrip.c:1264 fdfree(ffff800032008020) at fdfree+0x116 sys/kern/kern_descrip.c:1195 exit1(ffff800032008020,0,0,1) at exit1+0x576 sys/kern/kern_exit.c:215 sys_exit(ffff800032008020,ffff800033c1b120,ffff800033c1b070) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff800033c1b120) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff800033c1b120) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x741bc988aeb0, count: -12 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 end of kernel end trace frame: 0x7a79a4d15370, count: 12 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 end of kernel end trace frame: 0x7a79a4d15370, count: -3