uvm_fault(0xfffff5006d15de70, 0x0, 0, 1) -> e kernel: page fault trap, code=0 Stopped at sys_shmat+0x39d: movq 0(%r14),%rdi TID PID UID PRFLAGS PFLAGS CPU COMMAND *294161 49214 0 0 0x4000000 0 syz-executor sys_shmat(ffff80002a790018,ffff80003c951040,ffff80003c950f90) at sys_shmat+0x39d sys/kern/sysv_shm.c:283 syscall(ffff80003c951040) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c951040) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd76276e08e0, 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(0xfffff5006d15de70, 0x0, 0, 1) -> e ddb> show kasan No such command ddb> trace sys_shmat(ffff80002a790018,ffff80003c951040,ffff80003c950f90) at sys_shmat+0x39d sys/kern/sysv_shm.c:283 syscall(ffff80003c951040) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c951040) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd76276e08e0, count: -3 ddb> show registers rdi 0 rsi 0 rbp 0xffff80003c950f70 rbx 0 rdx 0x1 rcx 0x1 rax 0xfffff5006ce92ca8 r8 0x180 r9 0xfffff50007ffd680 r10 0xbd5d2ad88bfa421f r11 0xfea4f8f2c3371ef2 r12 0xffff80002a790018 r13 0xffff800001603000 r14 0 r15 0x3 rip 0xffffffff82a9e46d sys_shmat+0x39d cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c950ee0 ss 0x10 sys_shmat+0x39d: movq 0(%r14),%rdi ddb> show proc PROC (syz-executor) tid=294161 pid=49214 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=77, usrpri=77, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003c93efb8,0xffff80002a791a18 process=0xffff8000380cbb00 user=0xffff80003c94c000, vmspace=0xfffff5006d15de70 estcpu=27, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 99332 126114 82847 0 2 0x2002 0 ifconfig 82847 482312 2511 0 3 0x100002 0x88 sigsusp sh 49214 15229 18993 0 2 0 0 syz-executor *49214 294161 18993 0 7 0 0x4000000 syz-executor 49214 388130 18993 0 2 0 0x4000000 syz-executor 49214 156498 18993 0 3 0 0x4000080 fsleep syz-executor 2511 77688 15326 0 3 0x2 0x80 wait syz-executor 30309 354675 15326 0 2 0x2 0 syz-executor 71371 200174 0 0 3 0x14000 0x280 nfsidl nfsio 52319 232966 0 0 3 0x14000 0x280 nfsidl nfsio 75242 517102 0 0 3 0x14000 0x280 nfsidl nfsio 98509 334307 0 0 3 0x14000 0x280 nfsidl nfsio 95555 239912 0 0 3 0x14000 0x280 nfsidl nfsio 81012 378314 0 0 3 0x14000 0x280 nfsidl nfsio 75675 379729 0 0 3 0x14000 0x280 nfsidl nfsio 51722 467700 0 0 3 0x14000 0x280 nfsidl nfsio 38004 380594 0 0 3 0x14000 0x280 nfsidl nfsio 758 218940 0 0 3 0x14000 0x280 nfsidl nfsio 83746 128338 0 0 3 0x14000 0x280 nfsidl nfsio 93328 308424 0 0 3 0x14000 0x280 nfsidl nfsio 4663 21663 0 0 3 0x14000 0x280 nfsidl nfsio 55031 518464 0 0 3 0x14000 0x280 nfsidl nfsio 53281 274053 0 0 3 0x14000 0x280 nfsidl nfsio 78642 107517 0 0 3 0x14000 0x280 nfsidl nfsio 50442 122604 0 0 3 0x14000 0x280 nfsidl nfsio 16665 429645 0 0 3 0x14000 0x280 nfsidl nfsio 52801 489918 0 0 3 0x14000 0x280 nfsidl nfsio 75348 57956 0 0 3 0x14000 0x280 nfsidl nfsio 18993 436266 15326 0 2 0x2 0x1 syz-executor 12517 319021 15326 0 3 0x2 0x80 piperd syz-executor 99514 473064 15326 0 3 0x2 0x80 piperd syz-executor 15326 17599 22701 0 2 0x2 0 syz-executor 22701 188472 5274 0 3 0x100002 0x88 sigsusp ksh 5274 497519 2290 0 3 0x10 0x88 kqread sshd-session 2290 317488 90688 0 3 0x12 0x80 kqread sshd-session 37698 223781 1 0 3 0x100003 0x80 ttyin getty 90688 46300 1 0 3 0 0x88 kqread sshd 50618 112671 83140 73 3 0x1100010 0x80 kqread syslogd 83140 42110 1 0 3 0x100002 0x80 sbwait syslogd 79224 310076 1 0 3 0x100000 0x80 kqread resolvd 57064 177384 5656 77 3 0x100012 0x80 kqread dhcpleased 1729 41469 5656 77 3 0x100012 0x80 kqread dhcpleased 5656 136091 1 0 3 0 0x80 kqread dhcpleased 18300 44824 0 0 3 0x14000 0x200 bored smr 90669 323039 0 0 2 0x14000 0x200 zerothread 71764 144355 0 0 3 0x14000 0x200 aiodoned aiodoned 35818 420306 0 0 3 0x14000 0x200 syncer update 3960 177889 0 0 3 0x14000 0x200 cleaner cleaner 68625 335607 0 0 3 0x14000 0x200 reaper reaper 31002 290586 0 0 3 0x14000 0x200 pgdaemon pagedaemon 40465 429106 0 0 3 0x14000 0x200 bored viomb 80485 234700 0 0 3 0x14000 0x40000200 acpi0 acpi0 61557 237250 0 0 3 0x14000 0x200 bored softnet0 93376 32988 0 0 3 0x14000 0x200 bored systqmp 65388 24952 0 0 3 0x14000 0x200 bored systq 49572 27289 0 0 3 0x14000 0x40000200 tmoslp softclock 27579 30098 0 0 3 0x14000 0x40000200 idle0 1 338205 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 11057 12108K 12198K 166960K 12280 0 pcb 17 12K 12K 166960K 39 0 rtable 224 6K 6K 166960K 971 0 pf 30 12K 14K 166960K 82 0 ifaddr 40 7K 7K 166960K 132 0 ifgroup 47 1K 2K 166960K 138 0 sysctl 3 1K 9K 166960K 28 0 counters 33 17K 17K 166960K 56 0 ioctlops 0 0K 4K 166960K 78 0 iov 0 0K 12K 166960K 14 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1294 81K 82K 166960K 1630 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 12 0K 2K 166960K 31 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 13 45K 93K 166960K 568 0 proc 63 67K 83K 166960K 1103 0 subproc 72 4K 4K 166960K 261 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 6 0 in_multi 89 6K 6K 166960K 322 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 217 970K 970K 166960K 217 0 exec 0 0K 2K 166960K 813 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 159K 167K 166960K 5832 0 UVM aobj 3 2K 4K 166960K 6 0 pinsyscall 34 68K 92K 166960K 2219 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 5 0 NDP 11 0K 2K 166960K 90 0 temp 36 9118K 9138K 166960K 13076 0 kqueue 13 20K 24K 166960K 37 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 89 0 86 1 0 1 1 0 8 0 rtentry 136 335 0 232 4 0 4 4 0 8 0 unpcb 144 234 0 219 6 5 1 6 0 8 0 syncache 336 5 0 5 1 1 0 1 0 8 0 tcpcb 736 54 0 50 2 1 1 2 0 8 0 arp 96 60 0 42 1 0 1 1 0 8 0 ipq 40 2 0 0 1 0 1 1 0 8 0 ipqe 40 2 0 0 1 0 1 1 0 8 0 inpcb 328 235 0 228 2 0 2 2 0 8 1 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 84 0 63 1 0 1 1 0 8 0 pkpcb 40 1 0 1 1 0 1 1 0 8 1 kcovpl 48 29 0 21 1 0 1 1 0 8 0 ppxss 1072 2 0 2 2 1 1 1 0 8 1 pftag 88 1 0 0 1 0 1 1 0 8 0 pfqueue 320 1 0 0 1 0 1 1 0 8 0 pfrule 1360 1 0 1 1 1 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1347 0 930 29 0 29 29 0 8 0 art_table 40 1348 0 930 5 0 5 5 0 8 0 art_node 32 335 0 241 1 0 1 1 0 8 0 sysvmsgpl 40 1 0 1 1 1 0 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 72 19 0 9 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 1809 0 305 95 0 95 95 0 8 0 ffsino 256 1809 0 305 95 0 95 95 0 8 0 nchpl 144 2181 0 412 66 0 66 66 0 8 0 vnodes 216 2121 0 0 118 0 118 118 0 8 0 namei 1024 9768 0 9765 7 4 3 4 0 8 2 vcpupl 3968 32 0 32 2 2 0 2 0 8 0 vmpool 808 2 0 2 1 1 0 1 0 8 0 kstatmem 264 69 0 46 2 0 2 2 0 8 0 scxspl 216 7169 0 7169 3 2 1 3 1 8 1 plimitpl 152 128 0 112 1 0 1 1 0 8 0 sigapl 424 844 0 786 8 0 8 8 0 8 0 knotepl 120 13915 0 13868 11 0 11 11 0 8 8 kqueuepl 184 59 0 50 1 0 1 1 0 8 0 pipepl 304 192 0 165 3 0 3 3 0 8 0 fdescpl 448 811 0 786 5 1 4 5 0 8 0 filepl 120 2965 0 2764 13 4 9 11 0 8 1 lockfpl 104 67 0 65 1 0 1 1 0 8 0 lockfspl 48 29 0 27 1 0 1 1 0 8 0 sessionpl 144 46 0 38 1 0 1 1 0 8 0 pgrppl 48 75 0 59 1 0 1 1 0 8 0 ucredpl 104 325 0 313 1 0 1 1 0 8 0 zombiepl 144 862 0 859 1 0 1 1 0 8 0 processpl 1160 844 0 786 5 0 5 5 0 8 0 procpl 664 1102 0 1041 8 1 7 7 0 8 0 sockpl 552 562 0 537 12 9 3 12 0 8 1 mcl64k 65536 5 0 5 2 1 1 1 0 8 1 mcl16k 16384 3 0 3 1 1 0 1 0 8 0 mcl12k 12288 2 0 2 1 1 0 1 0 8 0 mcl9k128 9344 3 0 3 1 1 0 1 0 8 0 mcl8k 8192 7 0 7 1 1 0 1 0 8 0 mcl4k 4096 2645 0 2591 15 7 8 15 0 8 0 mcl2k 2048 581 0 580 4 0 4 4 0 8 3 mextrefs 64 177 0 177 1 0 1 1 0 8 1 mtagpl 96 4 0 4 1 1 0 1 0 8 0 mbufpl 256 7140 0 7010 16 0 16 16 0 8 3 bufpl 272 2499 0 102 160 0 160 160 0 8 0 anonpl 24 113906 0 111134 32 0 32 32 0 187 9 amapchunkpl 152 16014 0 15680 27 1 26 26 0 158 10 amappl16 200 1328 0 1311 4 2 2 4 0 8 0 amappl14 184 665 0 663 1 0 1 1 0 8 0 amappl13 176 159 0 149 1 0 1 1 0 8 0 amappl12 168 1130 0 1107 2 0 2 2 0 8 0 amappl11 160 3 0 3 1 1 0 1 0 8 0 amappl10 152 59 0 49 1 0 1 1 0 8 0 amappl9 144 270 0 270 1 1 0 1 0 8 0 amappl8 136 178 0 176 1 0 1 1 0 8 0 amappl7 128 182 0 171 1 0 1 1 0 8 0 amappl6 120 361 0 358 1 0 1 1 0 8 0 amappl5 112 117 0 110 1 0 1 1 0 8 0 amappl4 104 322 0 307 1 0 1 1 0 8 0 amappl3 96 2917 0 2852 3 0 3 3 0 8 0 amappl2 88 847 0 786 2 0 2 2 0 8 0 amappl1 80 13282 0 12750 13 1 12 13 0 8 0 amappl 88 4771 0 4653 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 8 0 8 2 1 1 1 0 8 1 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 6 0 3 1 0 1 1 0 8 0 uaddrrnd 24 811 0 786 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 811 0 786 1 0 1 1 0 8 0 vmmpekpl 168 8291 0 8247 3 0 3 3 0 8 0 vmmpepl 168 60263 0 58780 81 2 79 80 0 357 9 vmsppl 368 810 0 786 4 1 3 4 0 8 0 rwobjpl 40 19514 0 18619 11 1 10 11 0 8 0 pdppl 4096 1632 0 1576 108 40 68 80 0 8 12 pvpl 32 320314 0 313222 87 3 84 84 0 265 10 pmappl 216 812 0 788 3 0 3 3 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 554 0 62 15 0 15 15 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace sys_shmat(ffff80002a790018,ffff80003c951040,ffff80003c950f90) at sys_shmat+0x39d sys/kern/sysv_shm.c:283 syscall(ffff80003c951040) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c951040) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd76276e08e0, count: -3 ddb> machine ddbcpu 1 No such command ddb> trace sys_shmat(ffff80002a790018,ffff80003c951040,ffff80003c950f90) at sys_shmat+0x39d sys/kern/sysv_shm.c:283 syscall(ffff80003c951040) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c951040) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd76276e08e0, count: -3