uvm_fault(0xffffffff839b9bc0, 0xffff8000276f5635, 0, 2) -> d kernel: page fault trap, code=2 Stopped at memset+0x49: repe stosb %es:(%rdi) TID PID UID PRFLAGS PFLAGS CPU COMMAND *218383 3937 0 0x2 0x1 0 syz-executor memset() at memset+0x49 ffs_write(ffff80002a8e2df0) at ffs_write+0xb9a sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffffd805eb2b480,ffff80002a8e2ea0,3,fffffd8007bfd618) at VOP_WRITE+0x101 sys/kern/vfs_vops.c:245 ktrwriteraw(ffff80002a776f98,fffffd805eb2b480,fffffd8007bfd618,ffff80002a8e2f70,ffff80002a8e2f50) at ktrwriteraw+0x19b sys/kern/kern_ktrace.c:691 ktrsysret(ffff80002a776f98,88,16,ffff80002a8e3030) at ktrsysret+0x17f ktrwrite2 sys/kern/kern_ktrace.c:-1 [inline] ktrsysret(ffff80002a776f98,88,16,ffff80002a8e3030) at ktrsysret+0x17f sys/kern/kern_ktrace.c:209 syscall(ffff80002a8e30e0) at syscall+0xad9 mi_syscall_return sys/sys/syscall_mi.h:204 [inline] syscall(ffff80002a8e30e0) at syscall+0xad9 sys/arch/amd64/amd64/trap.c:796 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7266baf31db0, 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic *cpu0: uvm_fault(0xffffffff839b9bc0, 0xffff8000276f5635, 0, 2) -> d ddb> trace memset() at memset+0x49 ffs_write(ffff80002a8e2df0) at ffs_write+0xb9a sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffffd805eb2b480,ffff80002a8e2ea0,3,fffffd8007bfd618) at VOP_WRITE+0x101 sys/kern/vfs_vops.c:245 ktrwriteraw(ffff80002a776f98,fffffd805eb2b480,fffffd8007bfd618,ffff80002a8e2f70,ffff80002a8e2f50) at ktrwriteraw+0x19b sys/kern/kern_ktrace.c:691 ktrsysret(ffff80002a776f98,88,16,ffff80002a8e3030) at ktrsysret+0x17f ktrwrite2 sys/kern/kern_ktrace.c:-1 [inline] ktrsysret(ffff80002a776f98,88,16,ffff80002a8e3030) at ktrsysret+0x17f sys/kern/kern_ktrace.c:209 syscall(ffff80002a8e30e0) at syscall+0xad9 mi_syscall_return sys/sys/syscall_mi.h:204 [inline] syscall(ffff80002a8e30e0) at syscall+0xad9 sys/arch/amd64/amd64/trap.c:796 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7266baf31db0, count: -7 ddb> show registers rdi 0xffff8000276f5635 rsi 0 rbp 0xffff80002a8e2d10 rbx 0x27635 acpi_pdirpa+0x134a6 rdx 0x3 rcx 0x3 rax 0 r8 0x1c8 r9 0xffff80002a8e2c70 r10 0xf5c8c15796d586c7 r11 0xffff8000276f5635 r12 0x3635 __ALIGN_SIZE+0x2635 r13 0x3800 __ALIGN_SIZE+0x2800 r14 0xfffffd805eb2b480 r15 0x1 rip 0xffffffff82f11ed9 memset+0x49 cs 0x8 rflags 0x10202 __ALIGN_SIZE+0xf202 rsp 0xffff80002a8e2b08 ss 0x10 memset+0x49: repe stosb %es:(%rdi) ddb> show proc PROC (syz-executor) tid=218383 pid=3937 tcnt=1 stat=onproc flags process=2 proc=1 runpri=17, usrpri=50, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a776008,0xffff80003c93a2c8 process=0xffff80002a7dfa90 user=0xffff80002a8de000, vmspace=0xfffffd807377d008 estcpu=36, cpticks=18, pctcpu=0.0, user=2, sys=16, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 20634 349982 12362 0 2 0 syz-executor 20634 15362 12362 0 2 0x4000000 syz-executor 77953 6290 38354 0 2 0 syz-executor 77953 158517 38354 0 3 0x4000080 sbwait syz-executor 91825 497141 54956 0 2 0 syz-executor 91825 76786 54956 0 3 0x4000080 msgwait syz-executor 54956 520225 20531 0 3 0x82 nanoslp syz-executor 17448 413368 0 0 3 0x14200 acct acct 40194 314192 0 0 3 0x14280 nfsidl nfsio 7395 367511 0 0 3 0x14280 nfsidl nfsio 17311 363741 0 0 3 0x14280 nfsidl nfsio 65420 270275 0 0 3 0x14280 nfsidl nfsio 8730 471427 0 0 3 0x14280 nfsidl nfsio 88575 292295 0 0 3 0x14280 nfsidl nfsio 44259 136312 0 0 3 0x14280 nfsidl nfsio 29553 504445 0 0 3 0x14280 nfsidl nfsio 97720 8094 0 0 3 0x14280 nfsidl nfsio 85944 331700 0 0 3 0x14280 nfsidl nfsio 72220 73980 0 0 3 0x14280 nfsidl nfsio 65088 148107 0 0 3 0x14280 nfsidl nfsio 86177 51469 0 0 3 0x14280 nfsidl nfsio 9202 504255 0 0 3 0x14280 nfsidl nfsio 14948 484138 0 0 3 0x14280 nfsidl nfsio 95830 199499 0 0 3 0x14280 nfsidl nfsio 41058 509466 0 0 3 0x14280 nfsidl nfsio 1356 59699 0 0 3 0x14280 nfsidl nfsio 77363 107483 0 0 3 0x14280 nfsidl nfsio 54619 323955 0 0 3 0x14280 nfsidl nfsio 40100 189094 20531 0 3 0x82 wait syz-executor 62525 328324 1 0 3 0x100083 ttyopn getty 38354 108345 20531 0 3 0x82 nanoslp syz-executor * 3937 218383 20531 0 7 0x3 syz-executor 23989 88508 20531 0 3 0x82 nanoslp syz-executor 12362 8915 20531 0 3 0x82 nanoslp syz-executor 26857 54021 20531 0 3 0x82 wait syz-executor 83767 190793 20531 0 3 0x82 wait syz-executor 20531 264510 53193 0 2 0x2 syz-executor 53193 64570 10468 0 3 0x10008a sigsusp ksh 10468 417513 80609 0 3 0x98 kqread sshd-session 80609 365289 95661 0 3 0x92 kqread sshd-session 95661 213854 1 0 3 0x88 kqread sshd 46313 169957 72600 73 3 0x1100090 kqread syslogd 72600 430593 1 0 3 0x100082 sbwait syslogd 75574 493487 1 0 3 0x100080 kqread resolvd 46518 252584 38549 77 3 0x100092 kqread dhcpleased 93034 249407 38549 77 3 0x100092 kqread dhcpleased 38549 411910 1 0 3 0x80 kqread dhcpleased 21452 220875 0 0 3 0x14200 bored smr 27528 22648 0 0 2 0x14200 zerothread 79281 453954 0 0 3 0x14200 aiodoned aiodoned 15297 439709 0 0 3 0x14200 syncer update 28897 449791 0 0 3 0x14200 cleaner cleaner 7441 248966 0 0 3 0x14200 reaper reaper 36745 227779 0 0 3 0x14200 pgdaemon pagedaemon 22387 280756 0 0 3 0x14200 bored viomb 89459 493708 0 0 3 0x40014200 acpi0 acpi0 82825 21960 0 0 3 0x14200 bored softnet0 2533 444538 0 0 3 0x14200 bored systqmp 99744 22833 0 0 3 0x14200 bored systq 64712 373547 0 0 3 0x40014200 tmoslp softclock 63081 372928 0 0 3 0x40014200 idle0 1 67655 0 0 3 0x80082 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10218 11150K 11425K 166960K 13865 0 pcb 18 15K 16K 166960K 292 0 rtable 230 11K 11K 166960K 656 0 pf 34 13K 20K 166960K 184 0 ifaddr 35 6K 8K 166960K 130 0 ifgroup 54 2K 2K 166960K 219 0 sysctl 4 1K 9K 166960K 25 0 counters 34 17K 18K 166960K 189 0 ioctlops 0 0K 4K 166960K 500 0 iov 0 0K 32K 166960K 257 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1498 94K 95K 166960K 3179 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 24 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 50 0 dirhash 6 1K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 110K 166960K 1402 0 sigio 0 0K 0K 166960K 23 0 proc 60 59K 124K 166960K 692 0 subproc 72 4K 4K 166960K 100 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 163 0 in_multi 63 4K 7K 166960K 180 0 ether_multi 1 0K 0K 166960K 20 0 mrt 1 0K 0K 166960K 9 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 241 1076K 1076K 166960K 241 0 exec 0 0K 1K 166960K 557 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 3 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 241 143K 160K 166960K 13699 0 UVM aobj 104 9K 10K 166960K 109 0 pinsyscall 38 76K 96K 166960K 2542 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 168 0 NDP 12 0K 2K 166960K 91 0 temp 67 8669K 8763K 166960K 84072 0 kqueue 13 20K 31K 166960K 252 0 SYN cache 2 16K 16K 166960K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 239 0 236 2 0 2 2 0 8 1 rtentry 136 192 0 106 4 0 4 4 0 8 0 unpcb 144 1274 0 1255 6 0 6 6 0 8 5 syncache 336 10 0 10 1 0 1 1 0 8 1 tcpqe 32 2 0 2 1 0 1 1 0 8 1 tcpcb 736 564 0 557 7 0 7 7 0 8 6 arp 96 32 0 14 1 0 1 1 0 8 0 ipq 40 8 0 2 1 0 1 1 0 8 0 ipqe 40 13 0 6 1 0 1 1 0 8 0 inpcb 328 1628 0 1616 12 2 10 12 0 8 8 ip6q 72 4 0 2 1 0 1 1 0 8 0 ip6af 40 7 0 5 1 0 1 1 0 8 0 nd6 112 42 0 28 1 0 1 1 0 8 0 pkpcb 40 11 0 11 1 0 1 1 0 8 1 kcovpl 48 11 0 3 1 0 1 1 0 8 0 mppekey 1024 1 0 1 1 0 1 1 0 8 1 ppxss 1072 137 0 137 1 0 1 1 0 8 1 pppxif 1384 10 0 10 1 0 1 1 0 8 1 pfstscr 40 1 0 1 1 0 1 1 0 8 1 pfstitem 24 2 0 0 1 0 1 1 0 8 0 pfstkey 128 7 0 5 1 0 1 1 0 8 0 pfstate 384 4 0 3 1 0 1 1 0 8 0 pfrule 1344 3 0 3 1 0 1 1 0 8 1 art_heap8 4096 5 0 0 5 0 5 5 0 8 0 art_heap4 256 740 0 414 29 0 29 29 0 8 8 art_table 40 745 0 414 5 0 5 5 0 8 0 art_node 32 190 0 114 1 0 1 1 0 8 0 sysvmsgpl 40 15 0 6 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 48 0 38 1 0 1 1 0 8 0 shmpl 112 101 0 3 3 0 3 3 0 8 0 dirhash 1024 17 0 13 3 0 3 3 0 8 1 dino2pl 256 4185 0 2684 95 0 95 95 0 8 0 ffsino 256 4185 0 2684 95 0 95 95 0 8 0 nchpl 144 6121 0 4421 64 0 64 64 0 8 0 rtmask 32 14 0 14 1 0 1 1 0 8 1 vnodes 216 5340 0 0 297 0 297 297 0 8 0 namei 1024 22207 0 22207 2 0 2 2 0 8 2 vcpupl 3904 3 0 0 1 0 1 1 0 8 0 vmpool 800 5 0 2 1 0 1 1 0 8 0 kstatmem 264 136 0 112 2 0 2 2 0 8 0 scsiplug 72 3 0 3 1 0 1 1 0 8 1 scxspl 216 21004 0 21004 8 0 8 8 1 8 8 plimitpl 152 337 0 320 1 0 1 1 0 8 0 sigapl 424 1693 0 1630 8 0 8 8 0 8 0 knotepl 120 176604 0 176557 16 5 11 15 0 8 7 kqueuepl 184 454 0 445 2 0 2 2 0 8 1 pipepl 304 275 0 248 8 0 8 8 0 8 5 fdescpl 448 1657 0 1628 5 0 5 5 0 8 1 filepl 120 12711 0 12485 14 0 14 14 0 8 4 lockfpl 104 1172 0 1168 4 0 4 4 0 8 3 lockfspl 48 257 0 253 1 0 1 1 0 8 0 sessionpl 144 26 0 18 1 0 1 1 0 8 0 pgrppl 48 54 0 38 1 0 1 1 0 8 0 ucredpl 104 2664 0 2651 1 0 1 1 0 8 0 zombiepl 144 1634 0 1630 1 0 1 1 0 8 0 processpl 1152 1693 0 1630 5 0 5 5 0 8 0 procpl 664 3515 0 3449 7 0 7 7 0 8 0 sosppl 176 10 0 10 1 0 1 1 0 8 1 sockpl 552 3253 0 3219 18 7 11 13 0 8 8 mcl64k 65536 117 0 115 2 0 2 2 0 8 1 mcl16k 16384 34 0 34 1 0 1 1 0 8 1 mcl12k 12288 2 0 2 1 0 1 1 0 8 1 mcl9k 9216 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 57 0 57 1 0 1 1 0 8 1 mcl4k 4096 4144 0 4094 13 0 13 13 0 8 6 mcl2k2 2112 3 0 3 1 0 1 1 0 8 1 mcl2k 2048 2100 0 2093 3 0 3 3 0 8 2 mtagpl 96 78 0 49 2 0 2 2 0 8 0 mbufpl 256 20984 0 20788 21 1 20 20 0 8 4 bufpl 280 8249 0 2028 445 0 445 445 0 8 0 anonpl 24 278937 0 272804 75 0 75 75 0 187 21 amapchunkpl 152 47111 0 46536 40 0 40 40 0 158 13 amappl16 200 6129 0 5995 29 8 21 26 0 8 7 amappl15 192 13 0 13 1 0 1 1 0 8 1 amappl14 184 9 0 9 1 0 1 1 0 8 1 amappl13 176 441 0 440 1 0 1 1 0 8 0 amappl12 168 2015 0 1977 2 0 2 2 0 8 0 amappl11 160 12 0 12 1 0 1 1 0 8 1 amappl10 152 64 0 54 1 0 1 1 0 8 0 amappl9 144 323 0 323 1 0 1 1 0 8 1 amappl8 136 48 0 45 1 0 1 1 0 8 0 amappl7 128 115 0 114 1 0 1 1 0 8 0 amappl6 120 306 0 294 1 0 1 1 0 8 0 amappl5 112 69 0 60 1 0 1 1 0 8 0 amappl4 104 400 0 375 1 0 1 1 0 8 0 amappl3 96 9358 0 9250 4 0 4 4 0 8 0 amappl2 88 537 0 480 2 0 2 2 0 8 0 amappl1 80 14045 0 13500 13 0 13 13 0 8 1 amappl 88 12717 0 12544 5 0 5 5 0 92 0 uvmvnodes 80 132 0 0 3 0 3 3 0 8 0 dma65536 65536 1 0 1 1 0 1 1 0 8 1 dma4096 4096 2 0 2 1 0 1 1 0 8 1 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 7 0 7 1 0 1 1 0 8 1 dma128 128 255 0 255 1 0 1 1 0 8 1 dma64 64 10 0 10 1 0 1 1 0 8 1 dma32 32 7 0 7 1 0 1 1 0 8 1 dma16 16 20 0 19 1 0 1 1 0 8 0 aobjpl 72 108 0 5 2 0 2 2 0 8 0 uaddrrnd 24 1657 0 1628 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1657 0 1628 1 0 1 1 0 8 0 vmmpekpl 168 14222 0 14174 3 0 3 3 0 8 0 vmmpepl 168 109403 0 107474 100 0 100 100 0 357 10 vmsppl 368 1656 0 1628 4 0 4 4 0 8 1 rwobjpl 40 29792 0 28587 15 0 15 15 0 8 0 pdppl 4096 3331 0 3263 107 35 72 83 0 8 4 pvpl 32 750961 0 738621 166 0 166 166 0 265 46 pmappl 216 1661 0 1630 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 399 0 36 11 0 11 11 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace memset() at memset+0x49 ffs_write(ffff80002a8e2df0) at ffs_write+0xb9a sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffffd805eb2b480,ffff80002a8e2ea0,3,fffffd8007bfd618) at VOP_WRITE+0x101 sys/kern/vfs_vops.c:245 ktrwriteraw(ffff80002a776f98,fffffd805eb2b480,fffffd8007bfd618,ffff80002a8e2f70,ffff80002a8e2f50) at ktrwriteraw+0x19b sys/kern/kern_ktrace.c:691 ktrsysret(ffff80002a776f98,88,16,ffff80002a8e3030) at ktrsysret+0x17f ktrwrite2 sys/kern/kern_ktrace.c:-1 [inline] ktrsysret(ffff80002a776f98,88,16,ffff80002a8e3030) at ktrsysret+0x17f sys/kern/kern_ktrace.c:209 syscall(ffff80002a8e30e0) at syscall+0xad9 mi_syscall_return sys/sys/syscall_mi.h:204 [inline] syscall(ffff80002a8e30e0) at syscall+0xad9 sys/arch/amd64/amd64/trap.c:796 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7266baf31db0, count: -7 ddb> machine ddbcpu 1 No such command ddb> trace memset() at memset+0x49 ffs_write(ffff80002a8e2df0) at ffs_write+0xb9a sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffffd805eb2b480,ffff80002a8e2ea0,3,fffffd8007bfd618) at VOP_WRITE+0x101 sys/kern/vfs_vops.c:245 ktrwriteraw(ffff80002a776f98,fffffd805eb2b480,fffffd8007bfd618,ffff80002a8e2f70,ffff80002a8e2f50) at ktrwriteraw+0x19b sys/kern/kern_ktrace.c:691 ktrsysret(ffff80002a776f98,88,16,ffff80002a8e3030) at ktrsysret+0x17f ktrwrite2 sys/kern/kern_ktrace.c:-1 [inline] ktrsysret(ffff80002a776f98,88,16,ffff80002a8e3030) at ktrsysret+0x17f sys/kern/kern_ktrace.c:209 syscall(ffff80002a8e30e0) at syscall+0xad9 mi_syscall_return sys/sys/syscall_mi.h:204 [inline] syscall(ffff80002a8e30e0) at syscall+0xad9 sys/arch/amd64/amd64/trap.c:796 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7266baf31db0, count: -7