uvm_fault(0xffffffff83997a28, 0xffff80001cf44990, 0, 2) -> d kernel: page fault trap, code=2 Stopped at memset+0x52: repe stosq %es:(%rdi) TID PID UID PRFLAGS PFLAGS CPU COMMAND *128399 29087 0 0x2 0x1 0 syz-executor memset() at memset+0x52 ffs_write(ffff80002a7cda60) at ffs_write+0xb9a sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffffd806a9a9eb8,ffff80002a7cdb10,3,fffffd8007ffd680) at VOP_WRITE+0x101 sys/kern/vfs_vops.c:245 ktrwriteraw(ffff80002a7814d0,fffffd806a9a9eb8,fffffd8007ffd680,ffff80002a7cdbe0,ffff80002a7cdbc0) at ktrwriteraw+0x19b sys/kern/kern_ktrace.c:691 ktrsyscall(ffff80002a7814d0,3,18,ffff80002a7cdd60) at ktrsyscall+0x332 ktrwrite sys/kern/kern_ktrace.c:-1 [inline] ktrsyscall(ffff80002a7814d0,3,18,ffff80002a7cdd60) at ktrsyscall+0x332 sys/kern/kern_ktrace.c:183 syscall(ffff80002a7cdd60) at syscall+0x2bc mi_syscall sys/sys/syscall_mi.h:154 [inline] syscall(ffff80002a7cdd60) at syscall+0x2bc sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x75d46166b2b0, 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(0xffffffff83997a28, 0xffff80001cf44990, 0, 2) -> d ddb> trace memset() at memset+0x52 ffs_write(ffff80002a7cda60) at ffs_write+0xb9a sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffffd806a9a9eb8,ffff80002a7cdb10,3,fffffd8007ffd680) at VOP_WRITE+0x101 sys/kern/vfs_vops.c:245 ktrwriteraw(ffff80002a7814d0,fffffd806a9a9eb8,fffffd8007ffd680,ffff80002a7cdbe0,ffff80002a7cdbc0) at ktrwriteraw+0x19b sys/kern/kern_ktrace.c:691 ktrsyscall(ffff80002a7814d0,3,18,ffff80002a7cdd60) at ktrsyscall+0x332 ktrwrite sys/kern/kern_ktrace.c:-1 [inline] ktrsyscall(ffff80002a7814d0,3,18,ffff80002a7cdd60) at ktrsyscall+0x332 sys/kern/kern_ktrace.c:183 syscall(ffff80002a7cdd60) at syscall+0x2bc mi_syscall sys/sys/syscall_mi.h:154 [inline] syscall(ffff80002a7cdd60) at syscall+0x2bc sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x75d46166b2b0, count: -7 ddb> show registers rdi 0xffff80001cf44990 rsi 0 rbp 0xffff80002a7cd980 rbx 0xaa990 acpi_pdirpa+0x96801 rdx 0 rcx 0x2ce rax 0 r8 0x1670 __ALIGN_SIZE+0x670 r9 0xffff80002a7cd8e0 r10 0x355ac6778c450e06 r11 0xffff80001cf44990 r12 0x2990 __ALIGN_SIZE+0x1990 r13 0x4000 __ALIGN_SIZE+0x3000 r14 0xfffffd806a9a9eb8 r15 0x1 rip 0xffffffff8125e082 memset+0x52 cs 0x8 rflags 0x10202 __ALIGN_SIZE+0xf202 rsp 0xffff80002a7cd778 ss 0x10 memset+0x52: repe stosq %es:(%rdi) ddb> show proc PROC (syz-executor) tid=128399 pid=29087 tcnt=1 stat=onproc flags process=2 proc=1 runpri=78, usrpri=78, slppri=24, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a7807d8,0xffff80002a780020 process=0xffff80002a77df90 user=0xffff80002a7c8000, vmspace=0xfffffd807ece2170 estcpu=28, cpticks=28, pctcpu=0.2, user=5, sys=21, intr=2 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 13892 236268 77630 0 2 0 syz-executor 13892 327540 77630 0 3 0x4000080 ttyout syz-executor 50350 284579 9966 0 2 0 syz-executor 50350 108396 9966 0 3 0x4000080 fsleep syz-executor 66811 286838 26759 0 2 0 syz-executor 66811 364144 26759 0 3 0x4000080 fsleep syz-executor 66811 326906 26759 0 3 0x4000080 fsleep syz-executor 75381 376231 83498 0 2 0 syz-executor 75381 235882 83498 0 3 0x4000080 ttyin syz-executor 75381 48725 83498 0 3 0x4000080 fsleep syz-executor 7102 327257 52526 0 2 0xc80 syz-executor 7102 523442 52526 0 3 0x4000080 sbwait syz-executor 7102 351114 52526 0 3 0x4000080 fsleep syz-executor 26759 39342 29087 0 3 0x82 nanoslp syz-executor 58200 386435 1 0 3 0x100083 ttyin getty 19774 140679 0 0 3 0x14280 nfsidl nfsio 19951 76439 0 0 3 0x14280 nfsidl nfsio 27502 239441 0 0 3 0x14280 nfsidl nfsio 25408 75299 0 0 3 0x14280 nfsidl nfsio 27708 77769 0 0 3 0x14280 nfsidl nfsio 22139 239766 0 0 3 0x14280 nfsidl nfsio 94391 152484 0 0 3 0x14280 nfsidl nfsio 97368 378529 0 0 3 0x14280 nfsidl nfsio 36449 140922 0 0 3 0x14280 nfsidl nfsio 22431 290095 0 0 3 0x14280 nfsidl nfsio 59243 442062 0 0 3 0x14280 nfsidl nfsio 72235 138201 0 0 3 0x14280 nfsidl nfsio 68376 20486 0 0 3 0x14280 nfsidl nfsio 51710 81003 0 0 3 0x14280 nfsidl nfsio 30074 84518 0 0 3 0x14280 nfsidl nfsio 22825 399482 0 0 3 0x14280 nfsidl nfsio 6954 443484 0 0 3 0x14280 nfsidl nfsio 63271 71101 0 0 3 0x14280 nfsidl nfsio 78567 265300 0 0 3 0x14280 nfsidl nfsio 37329 226681 0 0 3 0x14280 nfsidl nfsio 97540 267729 0 0 3 0x14200 acct acct 83498 48114 29087 0 3 0x82 nanoslp syz-executor 39470 443932 29087 0 3 0x82 piperd syz-executor 77630 431038 29087 0 3 0x82 nanoslp syz-executor 1298 43898 29087 0 2 0xc82 syz-executor 9966 213834 29087 0 2 0xc82 syz-executor 52526 457389 29087 0 2 0xc82 syz-executor 69732 354762 29087 0 2 0xc82 syz-executor *29087 128399 73540 0 7 0x3 syz-executor 73540 361052 75401 0 3 0x10008a sigsusp ksh 75401 78363 46580 0 3 0x98 kqread sshd-session 46580 162791 70983 0 3 0x92 kqread sshd-session 70983 178640 1 0 3 0x88 kqread sshd 78491 345856 83855 73 3 0x1100090 kqread syslogd 83855 158410 1 0 3 0x100082 sbwait syslogd 70325 280197 1 0 3 0x100080 kqread resolvd 29341 214383 3133 77 3 0x100092 kqread dhcpleased 76862 492540 3133 77 3 0x100092 kqread dhcpleased 3133 483524 1 0 3 0x80 kqread dhcpleased 11745 88347 0 0 3 0x14200 bored smr 99561 305311 0 0 2 0x14200 zerothread 31188 334053 0 0 3 0x14200 aiodoned aiodoned 43703 297006 0 0 3 0x14200 syncer update 32917 234694 0 0 3 0x14200 cleaner cleaner 53371 49209 0 0 3 0x14200 reaper reaper 99644 207101 0 0 3 0x14200 pgdaemon pagedaemon 23846 503621 0 0 3 0x14200 bored viomb 42042 198844 0 0 3 0x40014200 acpi0 acpi0 76401 165308 0 0 3 0x14200 bored softnet0 56524 51266 0 0 3 0x14200 bored systqmp 85945 8551 0 0 3 0x14200 bored systq 75797 398460 0 0 3 0x40014200 tmoslp softclock 96205 271179 0 0 3 0x40014200 idle0 1 69326 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11055 12147K 12569K 166960K 13530 0 pcb 17 15K 16K 166960K 261 0 rtable 263 10K 12K 166960K 551 0 pf 39 14K 94K 166960K 203 0 ifaddr 46 8K 8K 166960K 86 0 ifgroup 59 2K 2K 166960K 139 0 sysctl 4 1K 9K 166960K 44 0 counters 35 18K 18K 166960K 76 0 ioctlops 0 0K 4K 166960K 375 0 iov 0 0K 16K 166960K 105 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1381 87K 87K 166960K 2542 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 16 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 38 0 dirhash 12 2K 2K 166960K 24 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 85K 166960K 1037 0 sigio 0 0K 0K 166960K 11 0 proc 60 59K 91K 166960K 631 0 subproc 72 4K 4K 166960K 81 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 121 0 in_multi 102 7K 7K 166960K 146 0 ether_multi 1 0K 0K 166960K 5 0 mrt 1 0K 0K 166960K 25 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 103 466K 466K 166960K 103 0 exec 0 0K 1K 166960K 560 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 233 159K 176K 166960K 11165 0 UVM aobj 23 3K 3K 166960K 25 0 pinsyscall 38 76K 91K 166960K 2211 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 53 0 NDP 13 0K 2K 166960K 57 0 temp 70 9074K 9138K 166960K 42719 0 kqueue 14 22K 29K 166960K 204 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 108 0 104 1 0 1 1 0 8 0 rtentry 136 155 0 43 5 0 5 5 0 8 0 unpcb 144 529 0 511 2 0 2 2 0 8 1 syncache 336 12 0 12 2 1 1 1 0 8 1 tcpqe 32 3 0 3 1 1 0 1 0 8 0 tcpcb 736 460 0 450 10 6 4 8 0 8 2 arp 96 23 0 3 1 0 1 1 0 8 0 ipq 40 6 0 1 1 0 1 1 0 8 0 ipqe 40 9 0 2 1 0 1 1 0 8 0 inpcb 328 1065 0 1050 13 5 8 8 0 8 6 ip6q 72 3 0 0 1 0 1 1 0 8 0 ip6af 40 6 0 1 1 0 1 1 0 8 0 nd6 112 36 0 8 1 0 1 1 0 8 0 pkpcb 40 8 0 8 2 1 1 1 0 8 1 kcovpl 48 9 0 1 1 0 1 1 0 8 0 mppekey 1024 1 0 1 1 0 1 1 0 8 1 ppxss 1072 32 0 32 2 1 1 1 0 8 1 pppxif 1416 3 0 3 2 1 1 1 0 8 1 pfstscr 40 4 0 4 2 1 1 1 0 8 1 pfrktable 1344 15 0 15 1 0 1 1 0 8 1 pfsrclim 320 1 0 1 1 1 0 1 0 8 0 pfanchor 1288 11 0 7 1 0 1 1 0 8 0 pftag 88 2 0 2 1 1 0 1 0 8 0 pfqueue 320 2 0 2 1 1 0 1 0 8 0 pfstitem 24 14 0 4 1 0 1 1 0 8 0 pfstkey 128 87 0 74 1 0 1 1 0 8 0 pfstate 384 44 0 39 1 0 1 1 0 8 0 pfrule 1360 14 0 14 1 0 1 1 0 8 1 rttmr 136 1 0 1 1 0 1 1 0 8 1 art_heap8 4096 4 0 0 4 0 4 4 0 8 0 art_heap4 256 613 0 125 34 0 34 34 0 8 2 art_table 40 617 0 125 6 0 6 6 0 8 0 art_node 32 150 0 49 1 0 1 1 0 8 0 sysvmsgpl 40 16 0 11 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 36 0 26 1 0 1 1 0 8 0 shmpl 112 22 0 2 1 0 1 1 0 8 0 dirhash 1024 25 0 8 3 0 3 3 0 8 0 dino2pl 256 3606 0 2154 92 0 92 92 0 8 0 ffsino 256 3606 0 2154 92 0 92 92 0 8 0 nchpl 144 5063 0 3365 64 0 64 64 0 8 0 rtmask 32 6 0 6 2 1 1 1 0 8 1 vnodes 216 4185 0 0 233 0 233 233 0 8 0 namei 1024 17760 0 17760 3 2 1 2 0 8 1 pfiaddrpl 120 4 0 4 1 0 1 1 0 8 1 kstatmem 264 78 0 52 2 0 2 2 0 8 0 scsiplug 72 3 0 3 1 1 0 1 0 8 0 scxspl 216 19279 0 19278 9 7 2 8 1 8 1 plimitpl 152 358 0 338 1 0 1 1 0 8 0 sigapl 424 1361 0 1298 8 0 8 8 0 8 0 knotepl 120 44180 0 44131 25 15 10 17 0 8 8 kqueuepl 184 410 0 400 4 3 1 4 0 8 0 pipepl 304 249 0 222 5 0 5 5 0 8 2 fdescpl 448 1327 0 1298 4 0 4 4 0 8 0 filepl 120 9400 0 9140 15 4 11 12 0 8 1 lockfpl 104 576 0 573 2 0 2 2 0 8 1 lockfspl 48 203 0 200 1 0 1 1 0 8 0 sessionpl 144 91 0 82 1 0 1 1 0 8 0 pgrppl 48 108 0 91 1 0 1 1 0 8 0 ucredpl 104 2293 0 2282 1 0 1 1 0 8 0 zombiepl 144 1300 0 1298 1 0 1 1 0 8 0 processpl 1152 1361 0 1298 5 0 5 5 0 8 0 procpl 664 2729 0 2658 7 0 7 7 0 8 0 sockpl 552 1774 0 1737 12 4 8 8 0 8 5 mcl64k 65536 114 0 114 2 1 1 1 0 8 1 mcl16k 16384 1 0 1 1 1 0 1 0 8 0 mcl8k 8192 12 0 12 2 1 1 1 0 8 1 mcl4k 4096 3755 0 3702 15 7 8 15 0 8 0 mcl2k 2048 1005 0 998 2 0 2 2 0 8 0 mtagpl 96 18 0 12 1 0 1 1 0 8 0 mbufpl 256 14130 0 13962 29 14 15 27 0 8 2 bufpl 280 7542 0 1328 445 0 445 445 0 8 0 anonpl 24 211088 0 207696 70 12 58 58 0 187 28 amapchunkpl 152 37706 0 37200 48 4 44 44 0 158 23 amappl16 200 3888 0 3853 26 15 11 15 0 8 7 amappl15 192 7 0 7 1 1 0 1 0 8 0 amappl14 184 425 0 424 1 0 1 1 0 8 0 amappl13 176 131 0 121 1 0 1 1 0 8 0 amappl12 168 1579 0 1551 2 0 2 2 0 8 0 amappl11 160 5 0 5 1 1 0 1 0 8 0 amappl10 152 62 0 51 1 0 1 1 0 8 0 amappl9 144 262 0 262 1 1 0 1 0 8 0 amappl8 136 104 0 102 1 0 1 1 0 8 0 amappl7 128 153 0 142 1 0 1 1 0 8 0 amappl6 120 178 0 175 1 0 1 1 0 8 0 amappl5 112 104 0 96 1 0 1 1 0 8 0 amappl4 104 299 0 282 1 0 1 1 0 8 0 amappl3 96 7421 0 7306 4 0 4 4 0 8 1 amappl2 88 592 0 536 2 0 2 2 0 8 0 amappl1 80 15319 0 14776 17 2 15 15 0 8 2 amappl 88 10209 0 10039 5 0 5 5 0 92 1 uvmvnodes 80 129 0 0 3 0 3 3 0 8 0 dma65536 65536 2 0 2 1 1 0 1 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 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 24 0 2 1 0 1 1 0 8 0 uaddrrnd 24 1327 0 1298 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1327 0 1298 1 0 1 1 0 8 0 vmmpekpl 168 12424 0 12379 3 0 3 3 0 8 0 vmmpepl 168 92101 0 90293 102 10 92 93 0 357 11 vmsppl 368 1326 0 1298 4 1 3 4 0 8 0 rwobjpl 40 26923 0 25908 14 1 13 13 0 8 0 pdppl 4096 2660 0 2596 112 46 66 76 0 8 2 pvpl 32 588619 0 579788 136 13 123 123 0 265 36 pmappl 216 1326 0 1298 2 0 2 2 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 417 0 83 11 0 11 11 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace memset() at memset+0x52 ffs_write(ffff80002a7cda60) at ffs_write+0xb9a sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffffd806a9a9eb8,ffff80002a7cdb10,3,fffffd8007ffd680) at VOP_WRITE+0x101 sys/kern/vfs_vops.c:245 ktrwriteraw(ffff80002a7814d0,fffffd806a9a9eb8,fffffd8007ffd680,ffff80002a7cdbe0,ffff80002a7cdbc0) at ktrwriteraw+0x19b sys/kern/kern_ktrace.c:691 ktrsyscall(ffff80002a7814d0,3,18,ffff80002a7cdd60) at ktrsyscall+0x332 ktrwrite sys/kern/kern_ktrace.c:-1 [inline] ktrsyscall(ffff80002a7814d0,3,18,ffff80002a7cdd60) at ktrsyscall+0x332 sys/kern/kern_ktrace.c:183 syscall(ffff80002a7cdd60) at syscall+0x2bc mi_syscall sys/sys/syscall_mi.h:154 [inline] syscall(ffff80002a7cdd60) at syscall+0x2bc sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x75d46166b2b0, count: -7 ddb> machine ddbcpu 1 No such command ddb> trace memset() at memset+0x52 ffs_write(ffff80002a7cda60) at ffs_write+0xb9a sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffffd806a9a9eb8,ffff80002a7cdb10,3,fffffd8007ffd680) at VOP_WRITE+0x101 sys/kern/vfs_vops.c:245 ktrwriteraw(ffff80002a7814d0,fffffd806a9a9eb8,fffffd8007ffd680,ffff80002a7cdbe0,ffff80002a7cdbc0) at ktrwriteraw+0x19b sys/kern/kern_ktrace.c:691 ktrsyscall(ffff80002a7814d0,3,18,ffff80002a7cdd60) at ktrsyscall+0x332 ktrwrite sys/kern/kern_ktrace.c:-1 [inline] ktrsyscall(ffff80002a7814d0,3,18,ffff80002a7cdd60) at ktrsyscall+0x332 sys/kern/kern_ktrace.c:183 syscall(ffff80002a7cdd60) at syscall+0x2bc mi_syscall sys/sys/syscall_mi.h:154 [inline] syscall(ffff80002a7cdd60) at syscall+0x2bc sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x75d46166b2b0, count: -7