uvm_fault(0xffffffff83504770, 0xffff800012872ef4, 0, 2) -> d kernel: page fault trap, code=2 Stopped at memset+0x49: repe stosb %es:(%rdi) TID PID UID PRFLAGS PFLAGS CPU COMMAND *469877 19859 0 0x2 0x1 0K syz-executor memset() at memset+0x49 ffs_write(ffff80002a14e210) at ffs_write+0xbab sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffffd8064271c28,ffff80002a14e2c8,3,fffffd807f7d3680) at VOP_WRITE+0x102 sys/kern/vfs_vops.c:245 ktrwriteraw(ffff80003722e7d0,fffffd8064271c28,fffffd807f7d3680,ffff80002a14e398,ffff80002a14e370) at ktrwriteraw+0x1bc sys/kern/kern_ktrace.c:682 ktrstruct(ffff80003722e7d0,ffffffff82ffd896,ffff80002a14e490,10) at ktrstruct+0x19a sys/kern/kern_ktrace.c:308 sys_nanosleep(ffff80003722e7d0,ffff80002a14e5d0,ffff80002a14e520) at sys_nanosleep+0x109 sys/kern/kern_time.c:292 syscall(ffff80002a14e5d0) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff80002a14e5d0) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x78ddd0656480, count: 7 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(0xffffffff83504770, 0xffff800012872ef4, 0, 2) -> d ddb{0}> trace memset() at memset+0x49 ffs_write(ffff80002a14e210) at ffs_write+0xbab sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffffd8064271c28,ffff80002a14e2c8,3,fffffd807f7d3680) at VOP_WRITE+0x102 sys/kern/vfs_vops.c:245 ktrwriteraw(ffff80003722e7d0,fffffd8064271c28,fffffd807f7d3680,ffff80002a14e398,ffff80002a14e370) at ktrwriteraw+0x1bc sys/kern/kern_ktrace.c:682 ktrstruct(ffff80003722e7d0,ffffffff82ffd896,ffff80002a14e490,10) at ktrstruct+0x19a sys/kern/kern_ktrace.c:308 sys_nanosleep(ffff80003722e7d0,ffff80002a14e5d0,ffff80002a14e520) at sys_nanosleep+0x109 sys/kern/kern_time.c:292 syscall(ffff80002a14e5d0) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff80002a14e5d0) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x78ddd0656480, count: -8 ddb{0}> show registers rdi 0xffff800012872ef4 rsi 0 rbp 0xffff80002a14e130 rbx 0xc8ef4 acpi_pdirpa+0xb4d65 rdx 0x4 rcx 0x4 rax 0 r8 0x3108 __ALIGN_SIZE+0x2108 r9 0xffff80002a14e090 r10 0x4042da230f75b22c r11 0xffff800012872ef4 r12 0x4000 __ALIGN_SIZE+0x3000 r13 0xef4 r14 0xfffffd8064271c28 r15 0x1 rip 0xffffffff810078b9 memset+0x49 cs 0x8 rflags 0x10202 __ALIGN_SIZE+0xf202 rsp 0xffff80002a14df28 ss 0x10 memset+0x49: repe stosb %es:(%rdi) ddb{0}> show proc PROC (syz-executor) tid=469877 pid=19859 tcnt=1 stat=onproc flags process=2 proc=1 runpri=32, usrpri=84, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000341982b0,0xffff80003722e048 process=0xffff80003723f1d8 user=0xffff80002a149000, vmspace=0xfffffd806b13d538 estcpu=34, cpticks=1, pctcpu=0.4, user=0, sys=8, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 84405 114123 43654 0 2 0x10 syz-executor 84405 237251 43654 0 2 0x4000010 syz-executor 84405 386125 43654 0 3 0x4000090 fsleep syz-executor 47288 95657 48677 0 2 0 syz-executor 47288 489093 48677 0 3 0x4000080 fsleep syz-executor 45457 143293 62283 0 2 0 syz-executor 45457 124309 62283 0 3 0x4000080 pipewr syz-executor 45457 129600 62283 0 3 0x4000080 pipewr syz-executor 45457 293199 62283 0 3 0x4000080 fsleep syz-executor 42613 187821 19859 0 2 0 syz-executor 42613 306713 19859 0 3 0x4000080 sbwait syz-executor 42613 342559 19859 0 3 0x4000080 fsleep syz-executor 64455 203418 13686 -1 2 0x10 syz-executor 64455 462277 13686 -1 3 0x4000090 fsleep syz-executor 64455 65932 13686 -1 3 0x4000090 fsleep syz-executor 82291 497848 60324 0 2 0 syz-executor 82291 170312 60324 0 2 0x4000000 syz-executor 82291 152362 60324 0 3 0x4000080 fsleep syz-executor 26142 258932 41321 0 3 0x82 wait syz-executor 60324 247525 41321 0 2 0x482 syz-executor 48677 325419 41321 0 2 0x482 syz-executor *19859 469877 41321 0 7 0x3 syz-executor 43654 437048 41321 0 2 0x482 syz-executor 13686 495825 41321 0 2 0x482 syz-executor 62283 222809 41321 0 2 0x482 syz-executor 716 175225 0 0 3 0x14280 nfsidl nfsio 29931 269766 0 0 3 0x14280 nfsidl nfsio 69827 225075 0 0 3 0x14280 nfsidl nfsio 12783 16673 0 0 3 0x14280 nfsidl nfsio 86256 11708 0 0 3 0x14280 nfsidl nfsio 67267 215610 0 0 3 0x14280 nfsidl nfsio 59507 364407 0 0 3 0x14280 nfsidl nfsio 92960 37349 0 0 3 0x14280 nfsidl nfsio 74171 305211 0 0 3 0x14280 nfsidl nfsio 43533 317338 0 0 3 0x14280 nfsidl nfsio 73715 317440 0 0 3 0x14280 nfsidl nfsio 44316 76599 0 0 3 0x14280 nfsidl nfsio 48188 319440 0 0 3 0x14280 nfsidl nfsio 39526 123026 0 0 3 0x14280 nfsidl nfsio 49157 100692 0 0 3 0x14280 nfsidl nfsio 2348 391377 0 0 3 0x14280 nfsidl nfsio 91914 513655 0 0 3 0x14280 nfsidl nfsio 25472 462454 0 0 3 0x14280 nfsidl nfsio 64900 102065 0 0 3 0x14280 nfsidl nfsio 36334 97114 0 0 3 0x14280 nfsidl nfsio 84683 159603 0 0 3 0x14200 bored sosplice 41321 111022 40694 0 3 0x82 wait syz-executor 40694 141539 92428 0 3 0x10008a sigsusp ksh 92428 72634 71859 0 3 0x98 kqread sshd-session 71859 333367 85079 0 3 0x92 kqread sshd-session 21204 186635 1 0 3 0x100083 ttyopn getty 85079 321021 1 0 3 0x88 kqread sshd 48255 504776 85536 74 3 0x1100092 bpf pflogd 85536 150180 1 0 3 0x80 sbwait pflogd 64470 389218 32455 73 3 0x1100090 kqread syslogd 32455 239012 1 0 3 0x100082 sbwait syslogd 94959 131346 1 0 3 0x100080 kqread resolvd 3061 376530 71261 77 3 0x100092 kqread dhcpleased 93851 61387 71261 77 3 0x100092 kqread dhcpleased 71261 251399 1 0 3 0x80 kqread dhcpleased 91764 481294 0 0 3 0x14200 bored smr 89066 42854 0 0 2 0x14200 zerothread 87247 121652 0 0 3 0x14200 aiodoned aiodoned 39473 513571 0 0 3 0x14200 syncer update 40904 63465 0 0 3 0x14200 cleaner cleaner 48084 484040 0 0 3 0x14200 reaper reaper 26708 160766 0 0 3 0x14200 pgdaemon pagedaemon 51617 287213 0 0 3 0x14200 bored viomb 66461 98494 0 0 3 0x40014200 acpi0 acpi0 67252 36987 0 0 7 0x40014200 idle1 8119 188598 0 0 3 0x14200 bored softnet3 49310 142322 0 0 3 0x14200 bored softnet2 95937 503541 0 0 3 0x14200 bored softnet1 73810 225945 0 0 3 0x14200 bored softnet0 45814 27942 0 0 3 0x14200 bored systqmp 2192 123342 0 0 3 0x14200 bored systq 92319 474321 0 0 3 0x14200 tmoslp softclockmp 46000 90816 0 0 2 0x40014200 softclock 48216 69443 0 0 3 0x40014200 idle0 1 135548 0 0 3 0x80082 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 19859 (syz-executor) thread 0xffff80003722e7d0 (469877) exclusive rrwlock inode r = 0 (0xfffffd80786e3d68) #0 witness_lock+0x5b8 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5b8 sys/kern/subr_witness.c:1151 #1 rw_enter+0x41b sys/kern/kern_rwlock.c:309 #2 rrw_enter+0xbe sys/kern/kern_rwlock.c:464 #3 VOP_LOCK+0xa6 sys/kern/vfs_vops.c:524 #4 vn_lock+0xa4 sys/kern/vfs_vnops.c:564 #5 vget+0x2bd sys/kern/vfs_subr.c:676 #6 ktrwriteraw+0x172 sys/kern/kern_ktrace.c:679 #7 ktrstruct+0x19a sys/kern/kern_ktrace.c:308 #8 sys_nanosleep+0x109 sys/kern/kern_time.c:292 #9 syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] #9 syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 #10 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff83553178) #0 witness_lock+0x5b8 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5b8 sys/kern/subr_witness.c:1151 #1 ktrstruct+0xe2 sys/kern/kern_ktrace.c:307 #2 sys_nanosleep+0x109 sys/kern/kern_time.c:292 #3 syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] #3 syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 #4 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10223 10104K 10617K 166960K 12280 0 pcb 18 13K 14K 166960K 128 0 rtable 233 7K 8K 166960K 1211 0 pf 35 17K 21K 166960K 144 0 ifaddr 42 7K 8K 166960K 168 0 ifgroup 55 2K 2K 166960K 189 0 sysctl 2 0K 0K 166960K 2 0 counters 64 36K 37K 166960K 136 0 ioctlops 0 0K 4K 166960K 1543 0 iov 0 0K 16K 166960K 36 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1504 95K 95K 166960K 2200 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 10 0 VM map 2 1K 1K 166960K 2 0 sem 11 0K 0K 166960K 13 0 dirhash 12 2K 2K 166960K 18 0 ACPI 1690 195K 286K 166960K 12418 0 file desc 17 61K 93K 166960K 956 0 sigio 0 0K 0K 166960K 11 0 proc 72 91K 128K 166960K 1333 0 subproc 104 6K 7K 166960K 455 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 68 0 in_multi 95 7K 7K 166960K 417 0 ether_multi 1 0K 0K 166960K 2 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 223 996K 996K 166960K 223 0 exec 0 0K 1K 166960K 774 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 250 73K 95K 166960K 8831 0 UVM aobj 14 2K 2K 166960K 17 0 pinsyscall 42 84K 111K 166960K 2762 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 31 0 NDP 12 0K 2K 166960K 120 0 temp 58 6819K 6886K 166960K 16725 0 kqueue 13 20K 28K 166960K 89 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 24 0 0 1 0 1 1 0 8 0 rtpcb 120 127 0 123 1 0 1 1 0 8 0 rtentry 112 421 0 313 5 1 4 4 0 8 0 unpcb 144 355 0 336 5 3 2 4 0 8 1 syncache 336 8 0 8 4 4 0 1 0 8 0 tcpqe 32 2 0 2 1 1 0 1 0 8 0 tcpcb 808 230 0 158 13 5 8 8 0 8 0 arp 120 75 0 57 1 0 1 1 0 8 0 inpcb 336 765 0 622 16 4 12 12 0 8 0 nd6 136 108 0 84 1 0 1 1 0 8 0 pkpcb 40 6 0 6 2 2 0 1 0 8 0 kcovpl 48 35 0 27 1 0 1 1 0 8 0 ppxss 1168 6 0 6 3 2 1 1 0 8 1 pfstscr 40 1 0 1 1 1 0 1 0 8 0 pffrag 232 3 0 2 2 1 1 1 0 482 0 pffrnode 88 3 0 2 2 1 1 1 0 8 0 pffrent 40 48 0 47 2 1 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 pfanchor 1288 3 0 0 1 0 1 1 0 8 0 pfstitem 24 80 0 46 1 0 1 1 0 8 0 pfstkey 128 81 0 47 2 0 2 2 0 8 0 pfstate 376 81 0 47 4 0 4 4 0 8 0 pfrule 1344 27 0 20 2 0 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1691 0 1248 34 5 29 31 0 8 0 art_table 32 1692 0 1248 4 0 4 4 0 8 0 art_node 16 418 0 319 1 0 1 1 0 8 0 sysvmsgpl 40 15 0 8 1 0 1 1 0 8 0 semapl 112 10 0 1 1 0 1 1 0 8 0 shmpl 112 14 0 3 1 0 1 1 0 8 0 dirhash 1024 21 0 4 3 0 3 3 0 8 0 dino2pl 256 2329 0 778 98 0 98 98 0 8 0 ffsino 272 2330 0 779 105 1 104 104 0 8 0 nchpl 144 3217 0 2583 63 39 24 63 0 8 0 uvmvnodes 80 3147 0 0 65 0 65 65 0 8 0 vnodes 216 3147 0 0 175 0 175 175 0 8 0 namei 1024 13147 0 13147 3 2 1 1 0 8 1 percpumem 16 82 0 36 1 0 1 1 0 8 0 kstatmem 264 96 0 72 3 1 2 3 0 8 0 acpiwqpl 32 1 0 1 1 0 1 1 1 8 1 scsiplug 72 1 0 1 1 1 0 1 0 8 0 scxspl 216 17693 0 17693 11 10 1 8 1 8 1 plimitpl 152 376 0 358 1 0 1 1 0 8 0 sigapl 424 1229 0 1159 10 1 9 9 0 8 0 futexpl 64 6741 0 6734 4 3 1 1 0 8 0 knotepl 120 370 0 0 10 0 10 10 0 8 0 kqueuepl 216 130 0 121 1 0 1 1 0 8 0 pipepl 320 302 0 274 5 2 3 5 0 8 0 fdescpl 496 1190 0 1159 6 1 5 5 0 8 0 filepl 152 6020 0 5635 24 8 16 16 0 8 1 lockfpl 104 144 0 142 1 0 1 1 0 8 0 lockfspl 48 66 0 64 1 0 1 1 0 8 0 sessionpl 144 54 0 45 1 0 1 1 0 8 0 pgrppl 48 93 0 76 1 0 1 1 0 8 0 ucredpl 104 716 0 699 1 0 1 1 0 8 0 zombiepl 144 1161 0 1159 1 0 1 1 0 8 0 processpl 1160 1229 0 1159 6 0 6 6 0 8 0 procpl 648 1959 0 1877 10 2 8 8 0 8 0 srpgc 96 8 0 8 2 2 0 1 0 8 0 sosppl 168 2 0 1 2 1 1 1 0 8 0 sockpl 664 1267 0 1100 22 7 15 15 0 8 0 mcl64k 65536 3 0 0 1 0 1 1 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 4 0 0 1 0 1 1 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 230 0 0 29 0 29 29 0 8 0 mtagpl 96 10 0 0 1 0 1 1 0 8 0 mbufpl 256 646 0 0 39 0 39 39 0 8 0 bufpl 280 7254 0 1097 442 0 442 442 0 8 0 anonpl 24 261505 0 249756 87 4 83 83 0 185 9 amapchunkpl 152 28423 0 27804 35 5 30 33 0 158 4 amappl16 200 6341 0 5902 50 26 24 24 0 8 0 amappl15 192 13 0 13 1 1 0 1 0 8 0 amappl14 184 186 0 174 1 0 1 1 0 8 0 amappl13 176 10 0 9 1 0 1 1 0 8 0 amappl12 168 2271 0 2240 4 2 2 3 0 8 0 amappl11 160 55 0 41 1 0 1 1 0 8 0 amappl10 152 13 0 13 1 1 0 1 0 8 0 amappl9 144 149 0 149 1 1 0 1 0 8 0 amappl8 136 23 0 21 1 0 1 1 0 8 0 amappl7 128 172 0 160 1 0 1 1 0 8 0 amappl6 120 439 0 438 1 0 1 1 0 8 0 amappl5 112 246 0 235 1 0 1 1 0 8 0 amappl4 104 406 0 388 1 0 1 1 0 8 0 amappl3 96 5402 0 5283 4 0 4 4 0 8 0 amappl2 88 1104 0 1035 2 0 2 2 0 8 0 amappl1 80 12847 0 12278 15 0 15 15 0 8 0 amappl 88 8192 0 8006 6 1 5 5 0 92 0 dma16384 16384 1 0 1 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 16 0 3 1 0 1 1 0 8 0 uaddrrnd 24 1190 0 1159 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1190 0 1159 1 0 1 1 0 8 0 vmmpekpl 168 11506 0 11447 3 0 3 3 0 8 0 vmmpepl 168 82692 0 80402 118 16 102 102 0 357 1 vmsppl 440 1189 0 1159 7 2 5 5 0 8 0 rwobjpl 56 31197 0 26677 67 3 64 64 0 8 0 pdppl 4096 2387 0 2318 124 53 71 85 0 8 2 pvpl 32 28689 0 0 234 2 232 232 0 265 0 pmappl 248 1189 0 1159 3 0 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 480 0 79 12 0 12 12 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace memset() at memset+0x49 ffs_write(ffff80002a14e210) at ffs_write+0xbab sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffffd8064271c28,ffff80002a14e2c8,3,fffffd807f7d3680) at VOP_WRITE+0x102 sys/kern/vfs_vops.c:245 ktrwriteraw(ffff80003722e7d0,fffffd8064271c28,fffffd807f7d3680,ffff80002a14e398,ffff80002a14e370) at ktrwriteraw+0x1bc sys/kern/kern_ktrace.c:682 ktrstruct(ffff80003722e7d0,ffffffff82ffd896,ffff80002a14e490,10) at ktrstruct+0x19a sys/kern/kern_ktrace.c:308 sys_nanosleep(ffff80003722e7d0,ffff80002a14e5d0,ffff80002a14e520) at sys_nanosleep+0x109 sys/kern/kern_time.c:292 syscall(ffff80002a14e5d0) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff80002a14e5d0) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x78ddd0656480, count: -8 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffff800029b7bff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:393 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+0x41e sys/dev/acpi/acpicpu.c:1219 sched_idle(ffff800029b7bff0) at sched_idle+0x558 sys/kern/kern_sched.c:182 end trace frame: 0x0, count: 10 ddb{1}> trace x86_ipi_db(ffff800029b7bff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:393 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+0x41e sys/dev/acpi/acpicpu.c:1219 sched_idle(ffff800029b7bff0) at sched_idle+0x558 sys/kern/kern_sched.c:182 end trace frame: 0x0, count: -5