uvm_fault(0xfffffc006d0bdb90, 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 * 25182 25046 0 0 0x4000000 0 syz-executor sys_shmat(ffff80002a74f778,ffff80002f0a3ae0,ffff80002f0a3a30) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80002f0a3ae0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002f0a3ae0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xbf327d6a9e0, 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(0xfffffc006d0bdb90, 0x0, 0, 1) -> e ddb> show kasan No such command ddb> trace sys_shmat(ffff80002a74f778,ffff80002f0a3ae0,ffff80002f0a3a30) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80002f0a3ae0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002f0a3ae0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xbf327d6a9e0, count: -3 ddb> show registers rdi 0xffff8000388c2000 rsi 0x115 rbp 0xffff80002f0a3a10 rbx 0 rdx 0x1 rcx 0x1 rax 0xfffffc006d37bf00 r8 0x180 r9 0xfffffc0007ffd340 r10 0x7adf709ba0918dd8 r11 0xbe330d41c4bf90e r12 0xffff80002a74f778 r13 0xffff8000015f2000 r14 0 r15 0x3 rip 0xffffffff82e001b7 sys_shmat+0x3d7 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80002f0a3980 ss 0x10 sys_shmat+0x3d7: movq 0(%r14),%rdi ddb> show proc PROC (syz-executor) tid=25182 pid=25046 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=70, usrpri=70, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a74f4e0,0xffff80002a74e2c8 process=0xffff80003a4d7680 user=0xffff80002f09e000, vmspace=0xfffffc006d0bdb90 estcpu=20, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 24292 387727 44420 0 2 0 0 syz-executor 52794 500335 75039 0 2 0 0 syz-executor 79931 267471 69071 0 2 0 0 syz-executor 98965 424399 8951 0 2 0 0 syz-executor 89337 344826 9784 0 2 0 0 syz-executor 29236 259864 73973 0 2 0 0 syz-executor 29236 431162 73973 0 2 0 0x4000000 syz-executor 18351 509112 53931 0 2 0x2 0 syz-executor 25046 32743 44850 0 2 0 0 syz-executor 25046 484581 44850 0 3 0 0x4000080 kqpoll syz-executor 25046 130473 44850 0 2 0 0x4000000 syz-executor *25046 25182 44850 0 7 0 0x4000000 syz-executor 44420 56630 53931 0 3 0x2 0x80 nanoslp syz-executor 75039 128794 53931 0 3 0x2 0x80 nanoslp syz-executor 69071 50066 53931 0 3 0x2 0x80 nanoslp syz-executor 44850 370760 53931 0 3 0x2 0x80 nanoslp syz-executor 8951 448707 53931 0 3 0x2 0x80 nanoslp syz-executor 9784 512906 53931 0 3 0x2 0x80 nanoslp syz-executor 73973 428247 53931 0 3 0x2 0x80 nanoslp syz-executor 53931 373745 45482 0 2 0x2 0 syz-executor 45482 292258 2301 0 3 0x100002 0x88 sigsusp ksh 2301 407247 22036 0 3 0x10 0x88 kqread sshd-session 22036 79289 77585 0 3 0x12 0x80 kqread sshd-session 12350 499134 1 0 3 0x100003 0x80 ttyin getty 77585 176095 1 0 3 0 0x88 kqread sshd 9527 3741 24065 73 3 0x1100010 0x80 kqread syslogd 24065 419367 1 0 3 0x100002 0x80 sbwait syslogd-parent 92072 465457 1 0 3 0x100000 0x80 kqread resolvd 20392 219313 10518 77 3 0x100012 0x80 kqread dhcpleased 57690 257619 10518 77 3 0x100012 0x80 kqread dhcpleased 10518 272500 1 0 3 0 0x80 kqread dhcpleased 3451 253148 0 0 3 0x14000 0x200 bored smr 45258 165620 0 0 2 0x14000 0x200 zerothread 88344 209515 0 0 3 0x14000 0x200 aiodoned aiodoned 250 76276 0 0 3 0x14000 0x200 syncer update 76017 471927 0 0 3 0x14000 0x200 cleaner cleaner 79184 438374 0 0 3 0x14000 0x200 reaper reaper 76867 93318 0 0 3 0x14000 0x200 pgdaemon pagedaemon 94948 126032 0 0 3 0x14000 0x200 bored viomb 81740 493183 0 0 3 0x14000 0x40000200 acpi0 acpi0 96637 412385 0 0 3 0x14000 0x200 bored softnet0 66357 109699 0 0 3 0x14000 0x200 smrbar systqmp 46798 295692 0 0 3 0x14000 0x200 bored systq 83036 429326 0 0 3 0x14000 0x40000200 tmoslp softclock 99122 316619 0 0 3 0x14000 0x40000200 idle0 1 50143 0 0 3 0x2 0x80 wait init 0 0 -1 0 3 0x10010000 0x200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11022 12098K 12270K 166960K 12250 0 pcb 17 16K 18K 166960K 117 0 rtable 193 5K 6K 166960K 355 0 pf 26 12K 13K 166960K 35 0 ifaddr 34 6K 7K 166960K 46 0 ifgroup 42 1K 2K 166960K 54 0 sysctl 1 1K 9K 166960K 5 0 counters 31 17K 18K 166960K 35 0 ioctlops 0 0K 4K 166960K 103 0 iov 0 0K 2K 166960K 1 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1354 85K 85K 166960K 1449 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 2 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 17 58K 81K 166960K 166 0 proc 59 59K 100K 166960K 498 0 subproc 63 3K 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 2 0 in_multi 77 5K 6K 166960K 99 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 5 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 43 201K 201K 166960K 43 0 exec 0 0K 1K 166960K 378 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 202 150K 157K 166960K 3224 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 38 76K 88K 166960K 1272 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 9 0K 2K 166960K 29 0 temp 32 9114K 9134K 166960K 3373 0 kqueue 13 20K 22K 166960K 28 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 35 1 0 1 1 0 8 0 rtentry 136 111 0 23 4 0 4 4 0 8 0 unpcb 144 52 0 37 1 0 1 1 0 8 0 syncache 336 4 0 4 1 1 0 1 0 8 0 tcpcb 736 44 0 40 4 0 4 4 0 8 3 arp 96 18 0 4 1 0 1 1 0 8 0 ipq 40 1 0 0 1 0 1 1 0 8 0 ipqe 40 1 0 0 1 0 1 1 0 8 0 inpcb 328 303 0 296 16 1 15 15 0 8 14 ip6q 80 1 0 0 1 0 1 1 0 8 0 ip6af 40 1 0 0 1 0 1 1 0 8 0 nd6 112 24 0 6 1 0 1 1 0 8 0 kcovpl 48 8 0 1 1 0 1 1 0 8 0 ppxss 1072 2 0 2 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 452 0 44 29 0 29 29 0 8 1 art_table 40 453 0 44 5 0 5 5 0 8 0 art_node 32 111 0 31 1 0 1 1 0 8 0 sysvmsgpl 40 3 0 3 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 1619 0 155 92 0 92 92 0 8 0 ffsino 256 1619 0 155 92 0 92 92 0 8 0 nchpl 144 1846 0 153 63 0 63 63 0 8 0 vnodes 216 1778 0 0 99 0 99 99 0 8 0 namei 1024 6203 0 6203 4 3 1 3 0 8 1 kstatmem 264 27 0 8 2 0 2 2 0 8 0 scxspl 216 6264 0 6264 3 2 1 3 1 8 1 plimitpl 152 32 0 16 1 0 1 1 0 8 0 sigapl 424 457 0 415 7 1 6 6 0 8 1 knotepl 120 3265 0 3217 2 0 2 2 0 8 0 kqueuepl 184 29 0 19 1 0 1 1 0 8 0 pipepl 304 131 0 104 3 0 3 3 0 8 0 fdescpl 448 443 0 414 5 1 4 4 0 8 0 filepl 120 1779 0 1583 14 0 14 14 0 8 6 lockfpl 104 22 0 19 1 0 1 1 0 8 0 lockfspl 48 12 0 9 1 0 1 1 0 8 0 sessionpl 144 24 0 16 1 0 1 1 0 8 0 pgrppl 48 33 0 17 1 0 1 1 0 8 0 ucredpl 104 118 0 107 1 0 1 1 0 8 0 zombiepl 144 436 0 436 2 1 1 1 0 8 1 processpl 1160 457 0 415 5 1 4 4 0 8 0 procpl 664 510 0 464 6 0 6 6 0 8 2 sockpl 552 394 0 369 14 0 14 14 0 8 12 mcl64k 65536 8 0 7 1 0 1 1 0 8 0 mcl16k 16384 1 0 1 1 0 1 1 0 8 1 mcl12k 12288 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 14 0 14 2 1 1 1 0 8 1 mcl4k 4096 2621 0 2568 15 7 8 15 0 8 1 mcl2k 2048 157 0 156 2 1 1 1 0 8 0 mextrefs 64 53 0 53 2 1 1 1 0 8 1 mtagpl 96 4 0 4 1 1 0 1 0 8 0 mbufpl 256 4651 0 4515 10 0 10 10 0 8 0 bufpl 272 2309 0 88 149 0 149 149 0 8 0 anonpl 24 74686 0 71833 20 0 20 20 0 187 0 amapchunkpl 152 8580 0 8173 22 1 21 21 0 158 5 amappl16 200 882 0 865 5 3 2 4 0 8 0 amappl15 192 4 0 4 1 1 0 1 0 8 0 amappl14 184 402 0 401 1 0 1 1 0 8 0 amappl13 176 114 0 104 1 0 1 1 0 8 0 amappl12 168 680 0 652 3 1 2 2 0 8 0 amappl11 160 103 0 103 1 1 0 1 0 8 0 amappl10 152 60 0 52 1 0 1 1 0 8 0 amappl9 144 291 0 291 1 1 0 1 0 8 0 amappl8 136 92 0 91 1 0 1 1 0 8 0 amappl7 128 149 0 139 1 0 1 1 0 8 0 amappl6 120 113 0 111 1 0 1 1 0 8 0 amappl5 112 125 0 119 1 0 1 1 0 8 0 amappl4 104 264 0 251 1 0 1 1 0 8 0 amappl3 96 1612 0 1512 5 1 4 4 0 8 1 amappl2 88 434 0 389 2 0 2 2 0 8 0 amappl1 80 10081 0 9539 12 0 12 12 0 8 0 amappl 88 2552 0 2411 5 0 5 5 0 92 1 uvmvnodes 80 99 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 443 0 414 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 443 0 414 1 0 1 1 0 8 0 vmmpekpl 168 5340 0 5301 2 0 2 2 0 8 0 vmmpepl 168 37066 0 35380 85 6 79 79 0 357 4 vmsppl 368 442 0 414 4 1 3 4 0 8 0 rwobjpl 40 13355 0 12480 10 0 10 10 0 8 0 pdppl 4096 892 0 828 96 30 66 74 0 8 2 pvpl 32 200200 0 192522 75 2 73 73 0 265 2 pmappl 216 442 0 414 2 0 2 2 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 514 0 47 14 0 14 14 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace sys_shmat(ffff80002a74f778,ffff80002f0a3ae0,ffff80002f0a3a30) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80002f0a3ae0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002f0a3ae0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xbf327d6a9e0, count: -3 ddb> machine ddbcpu 1 No such command ddb> trace sys_shmat(ffff80002a74f778,ffff80002f0a3ae0,ffff80002f0a3a30) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80002f0a3ae0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002f0a3ae0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xbf327d6a9e0, count: -3