uvm_fault(0xfffff7007ec6d2f8, 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 *285172 58648 0 0x1000 0x4080000 0 syz-executor sys_shmat(ffff8000338b07e8,ffff80002ac9d5b0,ffff80002ac9d500) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80002ac9d5b0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002ac9d5b0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xea50a37a890, 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(0xfffff7007ec6d2f8, 0x0, 0, 1) -> e ddb> show kasan No such command ddb> trace sys_shmat(ffff8000338b07e8,ffff80002ac9d5b0,ffff80002ac9d500) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80002ac9d5b0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002ac9d5b0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xea50a37a890, count: -3 ddb> show registers rdi 0 rsi 0x2000 __ALIGN_SIZE+0x1000 rbp 0xffff80002ac9d4e0 rbx 0 rdx 0 rcx 0 rax 0xfffff7006208ad98 r8 0x100 r9 0xfffff70007ffd410 r10 0xa3bbbcb681dfa505 r11 0xc967a50270bd0f77 r12 0xffff8000338b07e8 r13 0xffff8000015ea000 r14 0 r15 0x1 rip 0xffffffff826ff4f7 sys_shmat+0x3d7 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80002ac9d450 ss 0x10 sys_shmat+0x3d7: movq 0(%r14),%rdi ddb> show proc PROC (syz-executor) tid=285172 pid=58648 tcnt=3 stat=onproc flags process=1000 proc=4080000 runpri=74, usrpri=74, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80002a785770 scnt=2 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000338b1a10,0xffff8000338b1258 process=0xffff8000394c9238 user=0xffff80002ac98000, vmspace=0xfffff7007ec6d2f8 estcpu=24, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 58648 224704 68577 0 3 0x1000 0x2000 suspend syz-executor 58648 165393 68577 0 2 0x1000 0x4080000 syz-executor *58648 285172 68577 0 7 0x1000 0x4080000 syz-executor 5827 261071 83676 0 3 0 0x80 nanoslp syz-executor 5827 508668 83676 0 2 0 0x4000000 syz-executor 5827 475974 83676 0 3 0 0x4000080 fsleep syz-executor 63877 28572 56612 0 3 0x1000 0x2000 suspend syz-executor 63877 252162 56612 0 3 0x1000 0x4080000 inode syz-executor 63877 311337 56612 0 2 0x1000 0x4080000 syz-executor 36676 173767 62180 0 2 0x2 0xc80 syz-executor 56612 521185 62180 0 3 0x2 0x80 wait syz-executor 68577 242929 62180 0 2 0x2 0xc80 syz-executor 83676 362427 62180 0 2 0x2 0xc80 syz-executor 78803 433458 62180 0 3 0x2 0x80 piperd syz-executor 62180 381612 25056 0 3 0x2 0x80 wait syz-executor 25056 84557 64431 0 3 0x100002 0x88 sigsusp ksh 64431 458185 13855 0 3 0x10 0x88 kqread sshd-session 13855 499102 9635 0 3 0x12 0x80 kqread sshd-session 43613 253947 1 0 3 0x100003 0x80 ttyin getty 9635 272159 1 0 3 0 0x88 kqread sshd 35145 177487 16547 73 3 0x1100010 0x80 kqread syslogd 16547 333971 1 0 3 0x100002 0x80 sbwait syslogd-parent 74882 382733 1 0 3 0x100000 0x80 kqread resolvd 13945 256449 42219 77 3 0x100012 0x80 kqread dhcpleased 61216 261164 42219 77 3 0x100012 0x80 kqread dhcpleased 42219 256500 1 0 3 0 0x80 kqread dhcpleased 87141 194726 0 0 3 0x14000 0x200 bored smr 15796 187735 0 0 2 0x14000 0x200 zerothread 3331 410485 0 0 3 0x14000 0x200 aiodoned aiodoned 55 290054 0 0 3 0x14000 0x200 syncer update 26176 338476 0 0 3 0x14000 0x200 cleaner cleaner 99741 211151 0 0 3 0x14000 0x200 reaper reaper 51630 145907 0 0 3 0x14000 0x200 pgdaemon pagedaemon 86952 70069 0 0 3 0x14000 0x200 bored viomb 46405 175488 0 0 3 0x14000 0x40000200 acpi0 acpi0 92577 26019 0 0 3 0x14000 0x200 bored softnet0 38435 146042 0 0 3 0x14000 0x200 bored systqmp 10294 142416 0 0 3 0x14000 0x200 bored systq 54106 450736 0 0 3 0x14000 0x40000200 tmoslp softclock 31531 358515 0 0 3 0x14000 0x40000200 idle0 1 239371 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 11034 12140K 12234K 166960K 12164 0 pcb 17 12K 18K 166960K 75 0 rtable 215 5K 6K 166960K 381 0 pf 28 12K 12K 166960K 32 0 ifaddr 38 6K 7K 166960K 48 0 ifgroup 46 2K 2K 166960K 54 0 sysctl 1 1K 9K 166960K 5 0 counters 32 17K 17K 166960K 34 0 ioctlops 0 0K 4K 166960K 38 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1301 82K 82K 166960K 1392 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 3 5K 5K 166960K 3 0 VM map 2 1K 1K 166960K 2 0 sem 2 0K 0K 166960K 3 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 13 45K 93K 166960K 177 0 proc 61 67K 83K 166960K 531 0 subproc 63 3K 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 12 0 in_multi 88 5K 6K 166960K 110 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 3 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 49 228K 228K 166960K 49 0 exec 0 0K 1K 166960K 385 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 193 141K 159K 166960K 3296 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 34 68K 97K 166960K 1287 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 10 0K 2K 166960K 30 0 temp 29 9109K 9174K 166960K 3339 0 kqueue 13 20K 22K 166960K 26 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 40 0 36 1 0 1 1 0 8 0 rtentry 136 122 0 23 4 0 4 4 0 8 0 unpcb 144 83 0 67 2 0 2 2 0 8 1 syncache 336 4 0 4 1 1 0 1 0 8 0 tcpcb 736 13 0 8 1 0 1 1 0 8 0 arp 96 20 0 4 1 0 1 1 0 8 0 inpcb 328 85 0 77 2 0 2 2 0 8 0 nd6 112 27 0 6 1 0 1 1 0 8 0 kcovpl 48 9 0 2 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 496 0 88 29 0 29 29 0 8 3 art_table 40 497 0 88 5 0 5 5 0 8 0 art_node 32 122 0 32 1 0 1 1 0 8 0 semapl 72 1 0 1 1 0 1 1 0 8 1 shmpl 120 1 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1615 0 145 92 0 92 92 0 8 0 ffsino 256 1615 0 145 92 0 92 92 0 8 0 nchpl 144 1848 0 143 64 0 64 64 0 8 0 vnodes 216 1722 0 0 96 0 96 96 0 8 0 namei 1024 6207 0 6207 3 2 1 2 0 8 1 kstatmem 264 25 0 4 2 0 2 2 0 8 0 scxspl 216 8043 0 8043 4 3 1 4 1 8 1 plimitpl 152 34 0 17 1 0 1 1 0 8 0 sigapl 424 459 0 420 6 1 5 6 0 8 0 knotepl 120 2902 0 2855 2 0 2 2 0 8 0 kqueuepl 184 25 0 16 1 0 1 1 0 8 0 pipepl 304 129 0 102 3 0 3 3 0 8 0 fdescpl 448 446 0 421 5 1 4 5 0 8 0 filepl 120 1692 0 1488 9 0 9 9 0 8 1 lockfpl 104 28 0 25 1 0 1 1 0 8 0 lockfspl 48 15 0 12 1 0 1 1 0 8 0 sessionpl 144 25 0 17 1 0 1 1 0 8 0 pgrppl 48 34 0 18 1 0 1 1 0 8 0 ucredpl 104 118 0 107 1 0 1 1 0 8 0 zombiepl 144 441 0 435 1 0 1 1 0 8 0 processpl 1160 459 0 420 4 0 4 4 0 8 0 procpl 664 527 0 482 5 0 5 5 0 8 0 sockpl 552 262 0 234 6 0 6 6 0 8 4 mcl64k 65536 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 13 0 13 2 1 1 1 0 8 1 mcl4k 4096 2597 0 2545 14 6 8 14 0 8 1 mcl2k 2048 170 0 159 2 0 2 2 0 8 0 mextrefs 64 60 0 49 1 0 1 1 0 8 0 mtagpl 96 4 0 4 1 1 0 1 0 8 0 mbufpl 256 4687 0 4525 12 0 12 12 0 8 0 bufpl 272 3215 0 87 209 0 209 209 0 8 0 anonpl 24 102183 0 96195 47 10 37 37 0 187 0 amapchunkpl 152 9332 0 8911 25 2 23 23 0 158 1 amappl16 200 1969 0 1800 12 3 9 9 0 8 0 amappl15 192 13 0 12 1 0 1 1 0 8 0 amappl14 184 411 0 410 1 0 1 1 0 8 0 amappl13 176 115 0 104 1 0 1 1 0 8 0 amappl12 168 685 0 661 2 0 2 2 0 8 0 amappl11 160 7 0 6 1 0 1 1 0 8 0 amappl10 152 68 0 60 1 0 1 1 0 8 0 amappl9 144 282 0 282 1 1 0 1 0 8 0 amappl8 136 93 0 92 1 0 1 1 0 8 0 amappl7 128 138 0 128 1 0 1 1 0 8 0 amappl6 120 127 0 126 1 0 1 1 0 8 0 amappl5 112 134 0 128 1 0 1 1 0 8 0 amappl4 104 261 0 249 1 0 1 1 0 8 0 amappl3 96 1671 0 1580 4 0 4 4 0 8 0 amappl2 88 437 0 387 2 0 2 2 0 8 0 amappl1 80 9995 0 9470 13 0 13 13 0 8 1 amappl 88 2619 0 2486 5 0 5 5 0 92 1 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 3 0 0 1 0 1 1 0 8 0 uaddrrnd 24 446 0 421 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 446 0 421 1 0 1 1 0 8 0 vmmpekpl 168 5350 0 5310 2 0 2 2 0 8 0 vmmpepl 168 38295 0 36578 84 0 84 84 0 357 1 vmsppl 368 445 0 421 4 1 3 4 0 8 0 rwobjpl 40 14489 0 13454 12 1 11 11 0 8 0 pdppl 4096 898 0 842 92 28 64 80 0 8 8 pvpl 32 230068 0 219460 111 22 89 95 0 265 0 pmappl 216 445 0 421 3 0 3 3 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 566 0 42 16 0 16 16 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace sys_shmat(ffff8000338b07e8,ffff80002ac9d5b0,ffff80002ac9d500) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80002ac9d5b0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002ac9d5b0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xea50a37a890, count: -3 ddb> machine ddbcpu 1 No such command ddb> trace sys_shmat(ffff8000338b07e8,ffff80002ac9d5b0,ffff80002ac9d500) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80002ac9d5b0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002ac9d5b0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xea50a37a890, count: -3