uvm_fault(0xfffff9807a6b6b88, 0x0, 0, 1) -> e kernel: page fault trap, code=0 Stopped at dt_ioctl_record_stop+0x121: movq 0(%r14),%r12 TID PID UID PRFLAGS PFLAGS CPU COMMAND 68002 22881 0 0x2 0 1 syz-executor dt_ioctl_record_stop(ffff800001716000) at dt_ioctl_record_stop+0x121 sys/dev/dt/dt_dev.c:592 dtclose(11e5f,81,2000,ffff80002a3142b0) at dtclose+0x109 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff80002a3142b0) at dtclose+0x109 sys/dev/dt/dt_dev.c:238 spec_close(ffff80002a3399b0) at spec_close+0x46f sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffff9806c852480,81,fffff980097fd0d0,ffff80002a3142b0) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffff98065b942d8,ffff80002a3142b0) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffff98065b942d8,ffff80002a3142b0) at vn_closefile+0x12b sys/kern/vfs_vnops.c:621 fdrop(fffff98065b942d8,ffff80002a3142b0) at fdrop+0x121 sys/kern/kern_descrip.c:1281 closef(fffff98065b942d8,ffff80002a3142b0) at closef+0x192 sys/kern/kern_descrip.c:1265 fdfree(ffff80002a3142b0) at fdfree+0x116 sys/kern/kern_descrip.c:1196 exit1(ffff80002a3142b0,0,0,1) at exit1+0x595 sys/kern/kern_exit.c:215 sys_exit(ffff80002a3142b0,ffff80002a339d20,ffff80002a339c70) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80002a339d20) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a339d20) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x71dc7480c020, 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(0xfffff9807a6b6b88, 0x0, 0, 1) -> e ddb{0}> show kasan No such command ddb{0}> trace dt_ioctl_record_stop(ffff800001716000) at dt_ioctl_record_stop+0x121 sys/dev/dt/dt_dev.c:592 dtclose(11e5f,81,2000,ffff80002a3142b0) at dtclose+0x109 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff80002a3142b0) at dtclose+0x109 sys/dev/dt/dt_dev.c:238 spec_close(ffff80002a3399b0) at spec_close+0x46f sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffff9806c852480,81,fffff980097fd0d0,ffff80002a3142b0) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffff98065b942d8,ffff80002a3142b0) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffff98065b942d8,ffff80002a3142b0) at vn_closefile+0x12b sys/kern/vfs_vnops.c:621 fdrop(fffff98065b942d8,ffff80002a3142b0) at fdrop+0x121 sys/kern/kern_descrip.c:1281 closef(fffff98065b942d8,ffff80002a3142b0) at closef+0x192 sys/kern/kern_descrip.c:1265 fdfree(ffff80002a3142b0) at fdfree+0x116 sys/kern/kern_descrip.c:1196 exit1(ffff80002a3142b0,0,0,1) at exit1+0x595 sys/kern/kern_exit.c:215 sys_exit(ffff80002a3142b0,ffff80002a339d20,ffff80002a339c70) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80002a339d20) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a339d20) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x71dc7480c020, count: -12 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff80002a3398d0 rbx 0 rdx 0 rcx 0xffff80002a3142b0 rax 0xffffffff839b4d68 dt_prov_syscall r8 0 r9 0 r10 0xb0fb399ca6e5b321 r11 0x3c75d1a4fa9e4939 r12 0xffff800000c00e00 r13 0 r14 0 r15 0xffff80000164d200 rip 0xffffffff824c08c1 dt_ioctl_record_stop+0x121 cs 0x8 rflags 0x10207 __ALIGN_SIZE+0xf207 rsp 0xffff80002a3398a0 ss 0x10 dt_ioctl_record_stop+0x121: movq 0(%r14),%r12 ddb{0}> show proc PROC (syz-executor) tid=62651 pid=15255 tcnt=0 stat=onproc flags process=1008 proc=2000 runpri=32, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80002a3142b0 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff80002a314548,0xffff80002a3147f0 process=0xffff80002a343570 user=0xffff80002a334000, vmspace=0xfffff9807a6b6b88 estcpu=36, cpticks=3, pctcpu=0.0, user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 55437 35119 55657 0 2 0 0 syz-executor 55437 318748 55657 0 3 0 0x4000080 fsleep syz-executor 55437 493523 55657 0 3 0 0x4000080 fsleep syz-executor 55437 211908 55657 0 3 0 0x4000080 fsleep syz-executor 22880 136002 22881 0 2 0 0 syz-executor 22880 9143 22881 0 2 0 0x4000000 syz-executor 79127 275569 77584 0 2 0 0 syz-executor 79127 520144 77584 0 3 0 0x4000080 kqpoll syz-executor 31954 174696 31501 0 2 0 0 syz-executor 31954 372261 31501 0 3 0 0x4000080 sbwait syz-executor 31954 429678 31501 0 3 0 0x4000080 fsleep syz-executor 243 290163 86877 0 2 0 0xc80 syz-executor 243 167251 86877 0 3 0 0x4000080 sbwait syz-executor 243 427207 86877 0 3 0 0x4000080 fsleep syz-executor 243 436255 86877 0 3 0 0x4000080 fsleep syz-executor 22881 68002 56549 0 7 0x2 0 syz-executor 70210 154360 0 0 3 0x14000 0x200 acct acct 74399 420606 1 0 3 0x100003 0x80 ttyin getty 31501 449503 56549 0 2 0x2 0xc80 syz-executor 74664 122390 56549 0 3 0x2 0x80 nanoslp syz-executor 18672 356611 56549 0 2 0x2 0xc80 syz-executor 55657 64050 56549 0 3 0x2 0x80 nanoslp syz-executor 77584 499577 56549 0 3 0x2 0x80 nanoslp syz-executor 86877 402529 56549 0 2 0x2 0 syz-executor 19566 118936 56549 0 2 0x2 0xc80 syz-executor 56549 125770 75950 0 3 0x2 0x80 kqread syz-executor 75950 471585 37617 0 3 0x100002 0x88 sigsusp ksh 37617 373348 97750 0 3 0x10 0x88 kqread sshd-session 97750 126970 30470 0 3 0x12 0x80 kqread sshd-session 30470 228136 1 0 3 0 0x88 kqread sshd 62734 399359 44827 74 3 0x1100012 0x80 bpf pflogd 44827 12182 1 0 3 0 0x80 sbwait pflogd 23004 392786 70811 73 3 0x1100010 0x80 kqread syslogd 70811 433605 1 0 3 0x100002 0x80 sbwait syslogd-parent 18131 96301 1 0 3 0x100000 0x80 kqread resolvd 70920 398509 18792 77 3 0x100012 0x80 kqread dhcpleased 29758 240151 18792 77 3 0x100012 0x80 kqread dhcpleased 18792 193455 1 0 3 0 0x80 kqread dhcpleased 33751 342561 0 0 3 0x14000 0x200 bored smr 78900 353942 0 0 2 0x14000 0x200 zerothread 90647 154982 0 0 3 0x14000 0x200 aiodoned aiodoned 94589 234867 0 0 3 0x14000 0x200 syncer update 17657 456698 0 0 3 0x14000 0x200 cleaner cleaner 52917 112984 0 0 2 0x14000 0x200 reaper 88271 357075 0 0 3 0x14000 0x200 pgdaemon pagedaemon 7993 358166 0 0 3 0x14000 0x200 bored viomb 49002 196990 0 0 3 0x14000 0x40000200 acpi0 acpi0 7152 477448 0 0 3 0x14000 0x40000200 idle1 77724 417602 0 0 3 0x14000 0x200 bored softnet1 66329 501317 0 0 3 0x14000 0x200 bored softnet0 5861 201314 0 0 3 0x14000 0x200 bored systqmp 72982 466354 0 0 3 0x14000 0x200 bored systq 235 136297 0 0 3 0x14000 0x200 tmoslp softclockmp 73752 467133 0 0 3 0x14000 0x40000200 tmoslp softclock 85329 496975 0 0 3 0x14000 0x40000200 idle0 1 304698 0 0 3 0x2 0x80 wait init 0 0 -1 0 3 0x10010000 0x200 scheduler swapper ddb{0}> show all locks Process 79127 (syz-executor) thread 0xffff80002a314fa8 (275569) Process 52917 (reaper) thread 0xffff800045ffdc90 (112984) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11107 12137K 12306K 166960K 13354 0 pcb 17 15K 30K 166960K 538 0 rtable 269 12K 12K 166960K 595 0 pf 43 19K 25K 166960K 237 0 ifaddr 46 8K 8K 166960K 107 0 ifgroup 63 2K 2K 166960K 187 0 sysctl 4 1K 9K 166960K 13 0 counters 76 37K 38K 166960K 178 0 ioctlops 0 0K 8K 166960K 2084 0 iov 0 0K 16K 166960K 91 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1427 90K 90K 166960K 2638 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 33 0 VM map 2 1K 1K 166960K 2 0 sem 27 1K 2K 166960K 120 0 dirhash 12 2K 3K 166960K 39 0 ACPI 1692 195K 286K 166960K 12472 0 file desc 18 65K 85K 166960K 1455 0 sigio 0 0K 0K 166960K 16 0 proc 73 115K 180K 166960K 860 0 subproc 72 4K 4K 166960K 110 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 315 0 in_multi 99 6K 6K 166960K 201 0 ether_multi 1 0K 0K 166960K 2 0 mrt 1 0K 0K 166960K 24 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 229 1023K 1023K 166960K 229 0 exec 0 0K 1K 166960K 809 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 262 152K 183K 166960K 15834 0 UVM aobj 109 4K 6K 166960K 117 0 pinsyscall 43 86K 101K 166960K 2738 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 103 0 NDP 15 0K 2K 166960K 79 0 temp 76 9140K 9204K 166960K 68632 0 kqueue 13 20K 28K 166960K 245 0 SYN cache 2 16K 24K 166960K 4 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 28 0 0 1 0 1 1 0 8 0 rtpcb 120 201 0 197 3 2 1 3 0 8 0 rtentry 176 173 0 58 7 1 6 6 0 8 0 unpcb 144 899 0 873 10 8 2 4 0 8 0 syncache 336 13 0 13 4 3 1 1 0 8 1 tcpqe 32 3 0 3 2 2 0 1 0 8 0 tcpcb 736 444 0 437 8 6 2 7 0 8 1 arp 136 27 0 8 1 0 1 1 0 8 0 inpcb 328 1794 0 1782 22 17 5 8 0 8 2 nd6 152 40 0 14 1 0 1 1 0 8 0 pkpcb 40 49 0 49 3 2 1 1 0 8 1 kcovpl 48 12 0 4 1 0 1 1 0 8 0 ppxss 1192 36 0 35 2 1 1 1 0 8 0 pppxif 1584 4 0 4 2 1 1 1 0 8 1 pfstscr 40 14 0 12 2 1 1 1 0 8 0 pffrag 232 19 0 9 1 0 1 1 0 482 0 pffrnode 88 19 0 9 1 0 1 1 0 8 0 pffrent 40 34 0 23 1 0 1 1 0 8 0 pfosfp 40 1437 0 1011 5 0 5 5 0 8 0 pfosfpen 112 1437 0 718 21 0 21 21 0 8 0 pfrktable 1344 2 0 2 1 1 0 1 0 8 0 pfsrclim 320 1 0 1 1 1 0 1 0 8 0 pfanchor 1288 5 0 0 1 0 1 1 0 8 0 pfqueue 320 3 0 3 2 1 1 1 0 8 1 pfstitem 24 107 0 59 1 0 1 1 0 8 0 pfstkey 128 117 0 69 2 0 2 2 0 8 0 pfstate 448 110 0 63 8 1 7 7 0 8 0 pfrule 1360 39 0 34 2 1 1 2 0 8 0 rttmr 136 2 0 2 2 1 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 749 0 236 37 4 33 33 0 8 0 art_table 40 750 0 236 6 0 6 6 0 8 0 art_node 32 168 0 63 1 0 1 1 0 8 0 sysvmsgpl 40 11 0 9 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 72 112 0 87 1 0 1 1 0 8 0 shmpl 120 109 0 3 4 0 4 4 0 8 0 dirhash 1024 35 0 18 3 0 3 3 0 8 0 dino2pl 256 3964 0 2489 93 0 93 93 0 8 0 ffsino 296 3964 0 2489 114 0 114 114 0 8 0 nchpl 144 6099 0 4372 64 0 64 64 0 8 0 rtmask 32 4 0 4 2 2 0 1 0 8 0 vnodes 216 4848 0 0 270 0 270 270 0 8 0 namei 1024 26268 0 26268 7 6 1 3 0 8 1 percpumem 16 105 0 51 1 0 1 1 0 8 0 vcpupl 3968 80 0 80 8 6 2 4 0 8 2 vmpool 848 5 0 5 3 2 1 1 0 8 1 kstatmem 264 115 0 80 3 0 3 3 0 8 0 scsiplug 72 9 0 9 5 4 1 1 0 8 1 scxspl 216 21629 0 21629 14 12 2 8 1 8 2 plimitpl 152 477 0 457 1 0 1 1 0 8 0 sigapl 424 1784 0 1735 9 3 6 8 0 8 0 knotepl 120 407 0 0 12 0 12 12 0 8 0 kqueuepl 224 671 0 659 11 10 1 5 0 8 0 pipepl 344 406 0 379 9 3 6 9 0 8 3 fdescpl 528 1747 0 1715 3 0 3 3 0 8 0 filepl 160 13164 0 12936 18 5 13 17 0 8 1 lockfpl 104 420 0 417 1 0 1 1 0 8 0 lockfspl 48 166 0 163 1 0 1 1 0 8 0 sessionpl 144 255 0 245 1 0 1 1 0 8 0 pgrppl 48 284 0 266 1 0 1 1 0 8 0 ucredpl 104 2643 0 2630 1 0 1 1 0 8 0 zombiepl 144 2761 0 2758 1 0 1 1 0 8 0 processpl 1240 1784 0 1735 6 0 6 6 0 8 0 procpl 664 4204 0 4142 9 2 7 8 0 8 0 sosppl 176 4 0 4 2 2 0 1 0 8 0 sockpl 752 3092 0 3050 31 21 10 18 0 8 4 mcl64k 65536 7 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 9 0 0 2 0 2 2 0 8 0 mcl4k 4096 126 0 0 16 0 16 16 0 8 0 mcl2k 2048 34 0 0 5 0 5 5 0 8 0 mextrefs 64 18 0 0 1 0 1 1 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 387 0 0 25 0 25 25 0 8 0 bufpl 272 6387 0 249 412 2 410 410 0 8 0 anonpl 32 7858 0 0 64 0 64 64 0 247 0 amapchunkpl 152 52206 0 51620 52 15 37 37 0 158 11 amappl16 200 3439 0 3399 24 15 9 15 0 8 0 amappl15 192 48 0 48 2 2 0 1 0 8 0 amappl14 184 471 0 470 1 0 1 1 0 8 0 amappl13 176 133 0 121 1 0 1 1 0 8 0 amappl12 168 2013 0 1981 2 0 2 2 0 8 0 amappl11 160 63 0 63 1 1 0 1 0 8 0 amappl10 152 64 0 52 1 0 1 1 0 8 0 amappl9 144 275 0 274 2 1 1 1 0 8 0 amappl8 136 111 0 108 1 0 1 1 0 8 0 amappl7 128 160 0 147 1 0 1 1 0 8 0 amappl6 120 145 0 143 1 0 1 1 0 8 0 amappl5 112 168 0 157 1 0 1 1 0 8 0 amappl4 104 310 0 292 1 0 1 1 0 8 0 amappl3 96 9535 0 9418 5 1 4 4 0 8 0 amappl2 88 1759 0 1683 2 0 2 2 0 8 0 amappl1 80 14974 0 14382 14 1 13 14 0 8 0 amappl 88 14864 0 14673 5 0 5 5 0 92 0 uvmvnodes 80 146 0 0 3 0 3 3 0 8 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 7 0 7 2 2 0 1 0 8 0 dma128 128 254 0 254 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 18 0 17 1 0 1 1 0 8 0 aobjpl 72 116 0 8 2 0 2 2 0 8 0 uaddrrnd 24 1747 0 1715 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1747 0 1715 1 0 1 1 0 8 0 vmmpekpl 168 15570 0 15517 4 0 4 4 0 8 0 vmmpepl 168 114232 0 112224 109 19 90 98 0 357 1 vmsppl 488 1746 0 1715 7 2 5 5 0 8 0 rwobjpl 80 31607 0 30377 32 5 27 30 0 8 0 pdppl 4096 3512 0 3440 112 38 74 84 0 8 2 pvpl 32 14539 0 0 118 1 117 117 0 265 0 pmappl 256 1751 0 1720 4 1 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 745 0 65 20 0 20 20 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace dt_ioctl_record_stop(ffff800001716000) at dt_ioctl_record_stop+0x121 sys/dev/dt/dt_dev.c:592 dtclose(11e5f,81,2000,ffff80002a3142b0) at dtclose+0x109 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff80002a3142b0) at dtclose+0x109 sys/dev/dt/dt_dev.c:238 spec_close(ffff80002a3399b0) at spec_close+0x46f sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffff9806c852480,81,fffff980097fd0d0,ffff80002a3142b0) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffff98065b942d8,ffff80002a3142b0) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffff98065b942d8,ffff80002a3142b0) at vn_closefile+0x12b sys/kern/vfs_vnops.c:621 fdrop(fffff98065b942d8,ffff80002a3142b0) at fdrop+0x121 sys/kern/kern_descrip.c:1281 closef(fffff98065b942d8,ffff80002a3142b0) at closef+0x192 sys/kern/kern_descrip.c:1265 fdfree(ffff80002a3142b0) at fdfree+0x116 sys/kern/kern_descrip.c:1196 exit1(ffff80002a3142b0,0,0,1) at exit1+0x595 sys/kern/kern_exit.c:215 sys_exit(ffff80002a3142b0,ffff80002a339d20,ffff80002a339c70) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80002a339d20) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a339d20) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x71dc7480c020, count: -12 ddb{0}> machine ddbcpu 1