uvm_fault(0xfffff0006cf0c188, 0x0, 0, 1) -> e kernel: page fault trap, code=0 Stopped at sys_shmat+0x3d7: movq 0(%r14),%rdi TID PID UID PRFLAGS PFLAGS CPU COMMAND *182467 69311 0 0 0x4000000 0 syz-executor sys_shmat(ffff80002a7279f8,ffff800033cd5db0,ffff800033cd5d00) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff800033cd5db0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff800033cd5db0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xecca82e2d80, count: 12 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(0xfffff0006cf0c188, 0x0, 0, 1) -> e ddb> show kasan No such command ddb> trace sys_shmat(ffff80002a7279f8,ffff800033cd5db0,ffff800033cd5d00) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff800033cd5db0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff800033cd5db0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xecca82e2d80, count: -3 ddb> show registers rdi 0 rsi 0 rbp 0xffff800033cd5ce0 rbx 0 rdx 0x1 rcx 0x1 rax 0xfffff00066bbbf00 r8 0x180 r9 0xfffff00007ffd7b8 r10 0x13fc3a4c255c7422 r11 0xc53db040e0c7413c r12 0xffff80002a7279f8 r13 0xffff8000015e2000 r14 0 r15 0x3 rip 0xffffffff82f61eb7 sys_shmat+0x3d7 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff800033cd5c50 ss 0x10 sys_shmat+0x3d7: movq 0(%r14),%rdi ddb> show proc PROC (syz-executor) tid=182467 pid=69311 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=80, usrpri=80, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a726d00,0xffff80002a726a78 process=0xffff8000380cbb00 user=0xffff800033cd0000, vmspace=0xfffff0006cf0c188 estcpu=30, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 47169 376754 24263 0 2 0 0 syz-executor 47169 178056 24263 0 3 0 0x4000080 fsleep syz-executor 29850 490477 48274 0 2 0 0xc80 syz-executor 29850 33385 48274 0 2 0 0x4000000 syz-executor 29850 107567 48274 0 3 0 0x4000080 fsleep syz-executor 29850 233276 48274 0 3 0 0x4000080 fsleep syz-executor 72913 128176 6209 0 2 0 0 syz-executor 72913 397669 6209 0 3 0 0x4000080 fsleep syz-executor 72913 294818 6209 0 3 0 0x4000080 fsleep syz-executor 69311 263815 75115 0 2 0 0 syz-executor 69311 344329 75115 0 2 0 0x4000000 syz-executor *69311 182467 75115 0 7 0 0x4000000 syz-executor 69311 166917 75115 0 3 0 0x4000080 fsleep syz-executor 1927 472405 58578 0 2 0x2 0 syz-executor 48274 487730 58578 0 3 0x2 0x80 nanoslp syz-executor 41110 64397 58578 0 2 0x2 0 syz-executor 75115 74761 58578 0 3 0x2 0x80 nanoslp syz-executor 24263 75256 58578 0 3 0x2 0x80 nanoslp syz-executor 18754 48997 58578 0 3 0x2 0x80 piperd syz-executor 6209 63276 58578 0 2 0x2 0xc80 syz-executor 58578 416023 35679 0 2 0x10000002 0 syz-executor 35679 424271 19385 0 3 0x100002 0x88 sigsusp ksh 19385 63554 82183 0 3 0x10 0x88 kqread sshd-session 82183 235209 9218 0 3 0x12 0x80 kqread sshd-session 19523 465293 1 0 3 0x100003 0x80 ttyin getty 9218 207578 1 0 3 0 0x88 kqread sshd 63804 1751 33044 73 3 0x1100010 0x80 kqread syslogd 33044 17274 1 0 3 0x100002 0x80 sbwait syslogd-parent 961 57262 1 0 3 0x100000 0x80 kqread resolvd 14782 273104 14735 77 3 0x100012 0x80 kqread dhcpleased 20011 483621 14735 77 3 0x100012 0x80 kqread dhcpleased 14735 476888 1 0 3 0 0x80 kqread dhcpleased 19048 515412 0 0 3 0x14000 0x200 bored smr 72576 89653 0 0 2 0x14000 0x200 zerothread 81697 486624 0 0 3 0x14000 0x200 aiodoned aiodoned 32409 244601 0 0 3 0x14000 0x200 syncer update 27105 158026 0 0 3 0x14000 0x200 cleaner cleaner 71620 392023 0 0 3 0x14000 0x200 reaper reaper 2045 401076 0 0 3 0x14000 0x200 pgdaemon pagedaemon 18147 465207 0 0 3 0x14000 0x200 bored viomb 39774 98037 0 0 3 0x14000 0x40000200 acpi0 acpi0 42513 390 0 0 3 0x14000 0x200 bored softnet0 85302 29337 0 0 3 0x14000 0x200 smrbar systqmp 22407 194297 0 0 3 0x14000 0x200 bored systq 25561 483499 0 0 3 0x14000 0x40000200 tmoslp softclock 93449 162893 0 0 3 0x14000 0x40000200 idle0 1 252813 0 0 3 0x2 0x80 wait init 0 0 -1 0 3 0x10000 0x200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11023 12098K 12167K 166960K 12208 0 pcb 17 12K 12K 166960K 42 0 rtable 193 5K 6K 166960K 894 0 pf 27 12K 13K 166960K 72 0 ifaddr 34 6K 7K 166960K 120 0 ifgroup 42 1K 2K 166960K 129 0 sysctl 2 1K 9K 166960K 6 0 counters 31 17K 17K 166960K 53 0 ioctlops 0 0K 4K 166960K 55 0 iov 0 0K 12K 166960K 6 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1350 85K 85K 166960K 1718 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 3 5K 5K 166960K 4 0 VM map 2 1K 1K 166960K 2 0 sem 27 1K 1K 166960K 73 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 14 49K 89K 166960K 509 0 sigio 0 0K 0K 166960K 2 0 proc 59 59K 91K 166960K 1014 0 subproc 62 3K 4K 166960K 242 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 8 0 in_multi 77 5K 6K 166960K 299 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 11 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 55 254K 254K 166960K 55 0 exec 0 0K 1K 166960K 612 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 183 133K 154K 166960K 5249 0 UVM aobj 4 2K 2K 166960K 5 0 pinsyscall 35 70K 93K 166960K 2071 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 1 0 NDP 13 0K 1K 166960K 83 0 temp 31 9113K 9139K 166960K 11320 0 kqueue 15 20K 26K 166960K 48 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 80 0 77 1 0 1 1 0 8 0 rtentry 136 309 0 221 4 0 4 4 0 8 0 unpcb 144 245 0 229 4 0 4 4 0 8 3 syncache 336 5 0 5 2 1 1 1 0 8 1 tcpcb 736 31 0 27 1 0 1 1 0 8 0 arp 96 54 0 40 1 0 1 1 0 8 0 inpcb 328 254 0 247 4 0 4 4 0 8 3 nd6 112 78 0 60 1 0 1 1 0 8 0 kcovpl 48 26 0 20 1 0 1 1 0 8 0 ppxss 1072 1 0 1 1 0 1 1 0 8 1 pfstscr 40 2 0 0 1 0 1 1 0 8 0 pfstitem 24 2 0 0 1 0 1 1 0 8 0 pfstkey 128 2 0 0 1 0 1 1 0 8 0 pfstate 384 1 0 0 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1247 0 836 32 0 32 32 0 8 4 art_table 40 1248 0 836 6 0 6 6 0 8 0 art_node 32 309 0 229 1 0 1 1 0 8 0 semapl 72 71 0 46 1 0 1 1 0 8 0 shmpl 120 2 0 1 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1779 0 277 94 0 94 94 0 8 0 ffsino 256 1779 0 277 94 0 94 94 0 8 0 nchpl 144 2117 0 369 65 0 65 65 0 8 0 vnodes 216 2187 0 0 122 0 122 122 0 8 0 namei 1024 9529 0 9527 6 3 3 3 0 8 2 kstatmem 264 63 0 44 2 0 2 2 0 8 0 scxspl 216 7391 0 7391 10 2 8 8 1 8 8 plimitpl 152 61 0 44 1 0 1 1 0 8 0 sigapl 424 758 0 718 6 0 6 6 0 8 0 knotepl 120 6282 0 6234 29 12 17 17 0 8 14 kqueuepl 184 443 0 433 7 0 7 7 0 8 6 pipepl 304 189 0 162 3 0 3 3 0 8 0 fdescpl 448 745 0 719 5 0 5 5 0 8 1 filepl 120 3490 0 3290 16 0 16 16 0 8 7 lockfpl 104 311 0 308 2 0 2 2 0 8 1 lockfspl 48 149 0 146 1 0 1 1 0 8 0 sessionpl 144 49 0 40 1 0 1 1 0 8 0 pgrppl 48 79 0 62 1 0 1 1 0 8 0 ucredpl 104 246 0 235 1 0 1 1 0 8 0 zombiepl 144 828 0 827 2 1 1 1 0 8 0 processpl 1160 758 0 718 4 0 4 4 0 8 0 procpl 664 994 0 945 7 0 7 7 0 8 2 sockpl 552 582 0 556 10 0 10 10 0 8 8 mcl8k 8192 12 0 12 1 1 0 1 0 8 0 mcl4k 4096 2671 0 2616 16 8 8 15 0 8 0 mcl2k 2048 525 0 525 3 1 2 2 0 8 2 mextrefs 64 152 0 152 2 1 1 1 0 8 1 mtagpl 96 4 0 4 1 1 0 1 0 8 0 mbufpl 256 7170 0 7031 12 0 12 12 0 8 1 bufpl 272 2527 0 87 163 0 163 163 0 8 0 anonpl 24 114924 0 112150 34 2 32 32 0 187 11 amapchunkpl 152 14785 0 14420 28 0 28 28 0 158 13 amappl16 200 1429 0 1413 5 3 2 4 0 8 0 amappl15 192 83 0 83 1 1 0 1 0 8 0 amappl14 184 623 0 622 1 0 1 1 0 8 0 amappl13 176 177 0 167 1 0 1 1 0 8 0 amappl12 168 1051 0 1027 2 0 2 2 0 8 0 amappl11 160 64 0 64 1 1 0 1 0 8 0 amappl10 152 58 0 50 1 0 1 1 0 8 0 amappl9 144 282 0 282 1 1 0 1 0 8 0 amappl8 136 157 0 156 1 0 1 1 0 8 0 amappl7 128 176 0 165 1 0 1 1 0 8 0 amappl6 120 223 0 222 1 0 1 1 0 8 0 amappl5 112 200 0 193 1 0 1 1 0 8 0 amappl4 104 315 0 302 1 0 1 1 0 8 0 amappl3 96 2917 0 2830 4 0 4 4 0 8 0 amappl2 88 506 0 460 2 0 2 2 0 8 0 amappl1 80 12840 0 12307 13 0 13 13 0 8 1 amappl 88 4275 0 4151 4 0 4 4 0 92 0 uvmvnodes 80 100 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 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 1 1 0 1 1 0 8 0 uaddrrnd 24 745 0 719 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 745 0 719 1 0 1 1 0 8 0 vmmpekpl 168 7518 0 7462 3 0 3 3 0 8 0 vmmpepl 168 56561 0 54988 82 1 81 81 0 357 7 vmsppl 368 744 0 719 4 1 3 4 0 8 0 rwobjpl 40 18720 0 17849 12 1 11 11 0 8 0 pdppl 4096 1496 0 1438 106 40 66 78 0 8 8 pvpl 32 306744 0 299611 93 1 92 92 0 265 22 pmappl 216 744 0 719 2 0 2 2 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 546 0 57 15 0 15 15 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace sys_shmat(ffff80002a7279f8,ffff800033cd5db0,ffff800033cd5d00) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff800033cd5db0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff800033cd5db0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xecca82e2d80, count: -3 ddb> machine ddbcpu 1 No such command ddb> trace sys_shmat(ffff80002a7279f8,ffff800033cd5db0,ffff800033cd5d00) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff800033cd5db0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff800033cd5db0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xecca82e2d80, count: -3