uvm_fault(0xffffee806d020188, 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 *258062 38055 0 0 0x4000000 0 syz-executor sys_shmat(ffff80002a7847e0,ffff80003a4d75b0,ffff80003a4d7500) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80003a4d75b0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003a4d75b0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf0cf1d93e00, 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(0xffffee806d020188, 0x0, 0, 1) -> e ddb> show kasan No such command ddb> trace sys_shmat(ffff80002a7847e0,ffff80003a4d75b0,ffff80003a4d7500) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80003a4d75b0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003a4d75b0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf0cf1d93e00, count: -3 ddb> show registers rdi 0xffff8000304b0000 rsi 0x11e rbp 0xffff80003a4d74e0 rbx 0 rdx 0x1 rcx 0x1 rax 0xffffee806d067f00 r8 0x180 r9 0xffffee8007ffd820 r10 0x90116c87751cfa23 r11 0xc6adf0673b1b88bb r12 0xffff80002a7847e0 r13 0xffff8000015ec000 r14 0 r15 0x3 rip 0xffffffff81a40117 sys_shmat+0x3d7 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003a4d7450 ss 0x10 sys_shmat+0x3d7: movq 0(%r14),%rdi ddb> show proc PROC (syz-executor) tid=258062 pid=38055 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=53, usrpri=53, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a784a78,0xffff80002f8a5258 process=0xffff80002a77c498 user=0xffff80003a4d2000, vmspace=0xffffee806d020188 estcpu=3, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 25831 94077 49004 0 2 0 0 syz-executor 25831 21954 49004 0 3 0 0x4000080 fsleep syz-executor 44363 4885 25374 0 2 0 0 syz-executor 44363 84528 25374 0 3 0 0x4000080 fsleep syz-executor 83511 295217 76609 0 2 0 0 syz-executor 83511 339912 76609 0 2 0 0x4000000 syz-executor 83511 270297 76609 0 2 0 0x4000000 syz-executor 83511 188278 76609 0 2 0 0x4000000 syz-executor 12137 267845 44694 0 2 0 0 syz-executor 12137 186486 44694 0 3 0 0x4000080 fsleep syz-executor 12137 173113 44694 0 2 0 0x4000000 syz-executor 38055 35409 71641 0 2 0 0 syz-executor *38055 258062 71641 0 7 0 0x4000000 syz-executor 38055 316633 71641 0 2 0 0x4000000 syz-executor 42391 86921 92308 0 2 0 0 syz-executor 42391 339522 92308 0 3 0 0x4000080 fsleep syz-executor 47640 203048 70893 0 2 0 0 syz-executor 20693 374084 73993 0 2 0x2 0 ndp 73993 54451 45446 0 3 0x100002 0x88 sigsusp sh 25374 492318 67287 0 3 0x2 0x80 nanoslp syz-executor 49004 262984 67287 0 3 0x2 0x80 nanoslp syz-executor 92308 497428 67287 0 3 0x2 0x80 nanoslp syz-executor 71641 395255 67287 0 3 0x2 0x80 nanoslp syz-executor 45446 77894 67287 0 3 0x2 0x80 wait syz-executor 70893 424880 67287 0 3 0x2 0x80 nanoslp syz-executor 44694 411087 67287 0 3 0x2 0x80 nanoslp syz-executor 76609 209276 67287 0 3 0x2 0x80 nanoslp syz-executor 67287 362177 92191 0 3 0x2 0x80 kqread syz-executor 92191 408806 77415 0 3 0x100002 0x88 sigsusp ksh 77415 328985 24782 0 3 0x10 0x88 kqread sshd-session 24782 493065 1151 0 3 0x12 0x80 kqread sshd-session 73938 302463 1 0 3 0x100003 0x80 ttyin getty 1151 496069 1 0 3 0 0x88 kqread sshd 3005 349429 78701 73 3 0x1100010 0x80 kqread syslogd 78701 407778 1 0 3 0x100002 0x80 sbwait syslogd-parent 89196 339494 1 0 3 0x100000 0x80 kqread resolvd 67664 513662 33483 77 3 0x100012 0x80 kqread dhcpleased 87498 319534 33483 77 3 0x100012 0x80 kqread dhcpleased 33483 342896 1 0 3 0 0x80 kqread dhcpleased 77957 261124 0 0 3 0x14000 0x200 bored smr 5682 459366 0 0 2 0x14000 0x200 zerothread 26330 314653 0 0 3 0x14000 0x200 aiodoned aiodoned 5776 250815 0 0 3 0x14000 0x200 syncer update 36188 478752 0 0 3 0x14000 0x200 cleaner cleaner 70666 285551 0 0 3 0x14000 0x200 reaper reaper 70821 378197 0 0 3 0x14000 0x200 pgdaemon pagedaemon 14670 12317 0 0 3 0x14000 0x200 bored viomb 57960 200562 0 0 3 0x14000 0x40000200 acpi0 acpi0 97551 36577 0 0 3 0x14000 0x200 bored softnet0 88336 224258 0 0 3 0x14000 0x200 bored systqmp 39469 37201 0 0 3 0x14000 0x200 bored systq 89214 303352 0 0 3 0x14000 0x40000200 tmoslp softclock 32245 514320 0 0 3 0x14000 0x40000200 idle0 1 426241 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 11029 12103K 12118K 166960K 12115 0 pcb 17 12K 12K 166960K 18 0 rtable 225 6K 6K 166960K 340 0 pf 30 12K 12K 166960K 30 0 ifaddr 42 7K 7K 166960K 44 0 ifgroup 50 2K 2K 166960K 50 0 sysctl 1 1K 9K 166960K 5 0 counters 33 17K 17K 166960K 33 0 ioctlops 0 0K 2K 166960K 30 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1292 81K 81K 166960K 1363 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 3 0K 0K 166960K 3 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12472 0 file desc 19 69K 89K 166960K 145 0 proc 58 59K 83K 166960K 496 0 subproc 72 4K 4K 166960K 72 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 1 0 in_multi 99 6K 6K 166960K 99 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 2 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 375 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 214 143K 150K 166960K 2948 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 40 80K 94K 166960K 1248 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 2 0K 0K 166960K 2 0 NDP 27 2K 2K 166960K 27 0 temp 34 9118K 9182K 166960K 3227 0 kqueue 14 22K 24K 166960K 27 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 38 0 34 1 0 1 1 0 8 0 rtentry 136 110 0 1 4 0 4 4 0 8 0 unpcb 144 39 0 22 1 0 1 1 0 8 0 syncache 336 4 0 4 1 1 0 1 0 8 0 tcpcb 736 8 0 4 1 0 1 1 0 8 0 arp 96 18 0 0 1 0 1 1 0 8 0 inpcb 328 65 0 56 2 0 2 2 0 8 0 nd6 112 23 0 0 1 0 1 1 0 8 0 kcovpl 48 8 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 451 0 0 29 0 29 29 0 8 0 art_table 40 452 0 0 5 0 5 5 0 8 0 art_node 32 110 0 11 1 0 1 1 0 8 0 semapl 72 1 0 0 1 0 1 1 0 8 0 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 1575 0 109 92 0 92 92 0 8 0 ffsino 256 1575 0 109 92 0 92 92 0 8 0 nchpl 144 1780 0 85 63 0 63 63 0 8 0 vnodes 216 1660 0 0 93 0 93 93 0 8 0 namei 1024 5920 0 5919 3 2 1 3 0 8 0 kstatmem 264 23 0 0 2 0 2 2 0 8 0 scxspl 216 6125 0 6125 5 3 2 4 1 8 2 plimitpl 152 30 0 13 1 0 1 1 0 8 0 sigapl 424 435 0 391 6 0 6 6 0 8 0 knotepl 120 2405 0 2354 2 0 2 2 0 8 0 kqueuepl 184 24 0 14 1 0 1 1 0 8 0 pipepl 304 124 0 97 3 0 3 3 0 8 0 fdescpl 448 422 0 391 5 0 5 5 0 8 0 filepl 120 1461 0 1240 7 0 7 7 0 8 0 lockfpl 104 7 0 4 1 0 1 1 0 8 0 lockfspl 48 5 0 2 1 0 1 1 0 8 0 sessionpl 144 23 0 15 1 0 1 1 0 8 0 pgrppl 48 31 0 15 1 0 1 1 0 8 0 ucredpl 104 104 0 93 1 0 1 1 0 8 0 zombiepl 144 391 0 391 2 1 1 1 0 8 1 processpl 1160 435 0 391 4 0 4 4 0 8 0 procpl 664 454 0 399 5 0 5 5 0 8 0 sockpl 552 142 0 112 3 0 3 3 0 8 0 mcl8k 8192 12 0 12 1 1 0 1 0 8 0 mcl4k 4096 2573 0 2522 14 6 8 14 0 8 0 mcl2k 2048 112 0 112 1 0 1 1 0 8 1 mextrefs 64 41 0 41 1 0 1 1 0 8 1 mtagpl 96 4 0 4 1 1 0 1 0 8 0 mbufpl 256 4403 0 4271 10 1 9 10 0 8 0 bufpl 272 2260 0 86 145 0 145 145 0 8 0 anonpl 24 79078 0 76019 20 1 19 20 0 187 0 amapchunkpl 152 8025 0 7589 18 1 17 17 0 158 0 amappl16 200 1101 0 1086 4 3 1 4 0 8 0 amappl15 192 5 0 4 1 0 1 1 0 8 0 amappl14 184 404 0 402 1 0 1 1 0 8 0 amappl13 176 110 0 100 1 0 1 1 0 8 0 amappl12 168 656 0 627 2 0 2 2 0 8 0 amappl11 160 2 0 1 1 0 1 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 91 0 90 1 0 1 1 0 8 0 amappl7 128 137 0 127 1 0 1 1 0 8 0 amappl6 120 115 0 113 1 0 1 1 0 8 0 amappl5 112 131 0 124 1 0 1 1 0 8 0 amappl4 104 264 0 250 1 0 1 1 0 8 0 amappl3 96 1482 0 1375 3 0 3 3 0 8 0 amappl2 88 428 0 380 2 0 2 2 0 8 0 amappl1 80 10262 0 9696 13 0 13 13 0 8 0 amappl 88 2290 0 2138 4 0 4 4 0 92 0 uvmvnodes 80 98 0 0 2 0 2 2 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 422 0 391 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 422 0 391 1 0 1 1 0 8 0 vmmpekpl 168 5115 0 5086 2 0 2 2 0 8 0 vmmpepl 168 36085 0 34303 80 2 78 78 0 357 0 vmsppl 368 421 0 391 4 0 4 4 0 8 0 rwobjpl 40 13620 0 12697 11 1 10 11 0 8 0 pdppl 4096 850 0 782 90 22 68 78 0 8 0 pvpl 32 198452 0 190201 70 3 67 68 0 265 0 pmappl 216 421 0 391 2 0 2 2 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 495 0 35 14 0 14 14 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace sys_shmat(ffff80002a7847e0,ffff80003a4d75b0,ffff80003a4d7500) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80003a4d75b0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003a4d75b0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf0cf1d93e00, count: -3 ddb> machine ddbcpu 1 No such command ddb> trace sys_shmat(ffff80002a7847e0,ffff80003a4d75b0,ffff80003a4d7500) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80003a4d75b0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003a4d75b0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf0cf1d93e00, count: -3