uvm_fault(0xfffff6800e071d08, 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 *224625 10718 0 0 0x4000000 0 syz-executor sys_shmat(ffff80002a82f258,ffff80002a841d80,ffff80002a841cd0) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80002a841d80) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a841d80) at syscall+0x962 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xce1b7ec9670, 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(0xfffff6800e071d08, 0x0, 0, 1) -> e ddb> show kasan No such command ddb> trace sys_shmat(ffff80002a82f258,ffff80002a841d80,ffff80002a841cd0) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80002a841d80) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a841d80) at syscall+0x962 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xce1b7ec9670, count: -3 ddb> show registers rdi 0 rsi 0x2000 __ALIGN_SIZE+0x1000 rbp 0xffff80002a841cb0 rbx 0 rdx 0x1 rcx 0x1 rax 0xfffff6806cb39f08 r8 0x180 r9 0xfffff68007ffd5b0 r10 0 r11 0xb3bd8b253cd651d7 r12 0xffff80002a82f258 r13 0xffff800001608000 r14 0 r15 0x3 rip 0xffffffff8178dc37 sys_shmat+0x3d7 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80002a841c20 ss 0x10 sys_shmat+0x3d7: movq 0(%r14),%rdi ddb> show proc PROC (syz-executor) tid=224625 pid=10718 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=56, usrpri=56, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a82ed28,0xffff80002a82efd0 process=0xffff8000380c84a0 user=0xffff80002a83c000, vmspace=0xfffff6800e071d08 estcpu=6, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 10718 106870 33381 0 2 0 0 syz-executor *10718 224625 33381 0 7 0 0x4000000 syz-executor 10718 475279 33381 0 2 0 0x4000000 syz-executor 26492 298126 6463 0 2 0 0 syz-executor 26492 8977 6463 0 2 0 0x4000000 syz-executor 26492 244294 6463 0 2 0 0x4000000 syz-executor 26492 354486 6463 0 3 0 0x4000000 vmmaplk syz-executor 26375 442244 47284 0 2 0x2 0 ifconfig 47284 204066 65889 0 3 0x100002 0x88 sigsusp sh 3539 278995 31561 0 2 0 0x1 syz-executor 3539 175448 31561 0 2 0 0x4000000 syz-executor 3539 284328 31561 0 3 0 0x4000080 fsleep syz-executor 65889 231436 66574 0 3 0x2 0x80 wait syz-executor 31561 390037 66574 0 2 0x2 0x1 syz-executor 6463 361586 66574 0 2 0x2 0x1 syz-executor 39750 482283 66574 0 3 0x2 0x80 piperd syz-executor 10050 232442 0 0 3 0x14000 0x280 nfsidl nfsio 62087 143468 0 0 3 0x14000 0x280 nfsidl nfsio 10856 14009 0 0 3 0x14000 0x280 nfsidl nfsio 57731 493378 0 0 3 0x14000 0x280 nfsidl nfsio 85391 376085 0 0 3 0x14000 0x280 nfsidl nfsio 88500 186148 0 0 3 0x14000 0x280 nfsidl nfsio 65461 273849 0 0 3 0x14000 0x280 nfsidl nfsio 67637 119502 0 0 3 0x14000 0x280 nfsidl nfsio 49745 210123 0 0 3 0x14000 0x280 nfsidl nfsio 76676 392583 0 0 3 0x14000 0x280 nfsidl nfsio 35273 212347 0 0 3 0x14000 0x280 nfsidl nfsio 26881 329438 0 0 3 0x14000 0x280 nfsidl nfsio 50844 50982 0 0 3 0x14000 0x280 nfsidl nfsio 65079 92483 0 0 3 0x14000 0x280 nfsidl nfsio 66585 488832 0 0 3 0x14000 0x280 nfsidl nfsio 59721 364326 0 0 3 0x14000 0x280 nfsidl nfsio 92246 292071 0 0 3 0x14000 0x280 nfsidl nfsio 60431 319645 0 0 3 0x14000 0x280 nfsidl nfsio 98588 182089 0 0 3 0x14000 0x280 nfsidl nfsio 75021 169034 0 0 3 0x14000 0x280 nfsidl nfsio 33381 19979 66574 0 2 0x2 0x1 syz-executor 65529 38976 66574 0 3 0x2 0x80 piperd syz-executor 90067 281360 66574 0 3 0x2 0x80 piperd syz-executor 66574 500127 78091 0 2 0x10000002 0x1 syz-executor 78091 155705 60197 0 3 0x100002 0x88 sigsusp ksh 60197 392130 56726 0 3 0x10 0x88 kqread sshd-session 56726 376927 51658 0 3 0x12 0x80 kqread sshd-session 63241 445827 1 0 3 0x100003 0x80 ttyin getty 51658 398672 1 0 3 0 0x88 kqread sshd 31956 420218 8090 73 3 0x1100010 0x80 kqread syslogd 8090 448688 1 0 3 0x100002 0x80 sbwait syslogd-parent 58147 394655 1 0 3 0x100000 0x80 kqread resolvd 49043 152354 72417 77 3 0x100012 0x80 kqread dhcpleased 9577 511200 72417 77 3 0x100012 0x80 kqread dhcpleased 72417 514348 1 0 3 0 0x80 kqread dhcpleased 53196 186838 0 0 3 0x14000 0x200 bored smr 20634 41582 0 0 2 0x14000 0x200 zerothread 43365 423160 0 0 3 0x14000 0x200 aiodoned aiodoned 97387 476472 0 0 3 0x14000 0x200 syncer update 98599 189678 0 0 3 0x14000 0x200 cleaner cleaner 40220 443165 0 0 3 0x14000 0x200 reaper reaper 53862 313925 0 0 3 0x14000 0x200 pgdaemon pagedaemon 54153 364999 0 0 3 0x14000 0x200 bored viomb 78788 474569 0 0 3 0x14000 0x40000200 acpi0 acpi0 27274 132992 0 0 3 0x14000 0x200 bored softnet0 48431 432387 0 0 3 0x14000 0x200 bored systqmp 42783 469558 0 0 3 0x14000 0x200 bored systq 43378 46321 0 0 3 0x14000 0x40000200 tmoslp softclock 58779 339377 0 0 3 0x14000 0x40000200 idle0 1 466728 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 11031 12111K 12257K 166960K 12208 0 pcb 18 12K 12K 166960K 39 0 rtable 214 7K 8K 166960K 744 0 pf 30 12K 14K 166960K 67 0 ifaddr 39 6K 7K 166960K 101 0 ifgroup 50 2K 2K 166960K 112 0 sysctl 2 1K 9K 166960K 6 0 counters 33 17K 18K 166960K 54 0 ioctlops 0 0K 4K 166960K 70 0 iov 0 0K 12K 166960K 4 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1291 81K 81K 166960K 1548 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 0K 0K 166960K 106 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1692 195K 286K 166960K 12472 0 file desc 14 49K 93K 166960K 428 0 sigio 0 0K 0K 166960K 2 0 proc 67 67K 100K 166960K 872 0 subproc 63 3K 4K 166960K 189 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 4 0 in_multi 84 5K 6K 166960K 240 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 10 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 556 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 188 137K 159K 166960K 4908 0 UVM aobj 3 2K 2K 166960K 5 0 pinsyscall 35 70K 94K 166960K 1865 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 9 0 NDP 12 0K 2K 166960K 69 0 temp 32 9117K 9182K 166960K 8890 0 kqueue 13 20K 26K 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 73 0 70 1 0 1 1 0 8 0 rtentry 136 252 0 155 4 0 4 4 0 8 0 unpcb 144 93 0 78 1 0 1 1 0 8 0 syncache 336 6 0 6 1 1 0 1 0 8 0 tcpqe 32 2 0 2 1 0 1 1 0 8 1 tcpcb 736 27 0 21 1 0 1 1 0 8 0 arp 96 44 0 28 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 172 0 161 2 0 2 2 0 8 1 ip6q 80 1 0 0 1 0 1 1 0 8 0 ip6af 40 2 0 0 1 0 1 1 0 8 0 nd6 112 62 0 43 1 0 1 1 0 8 0 pkpcb 40 1 0 1 1 0 1 1 0 8 1 kcovpl 48 21 0 14 1 0 1 1 0 8 0 ppxss 1072 7 0 7 2 1 1 1 0 8 1 pfosfp 40 1 0 0 1 0 1 1 0 8 0 pfosfpen 112 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 1013 0 618 29 0 29 29 0 8 2 art_table 40 1014 0 618 5 0 5 5 0 8 0 art_node 32 252 0 164 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 72 104 0 79 1 0 1 1 0 8 0 shmpl 120 2 0 1 2 1 1 1 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 1765 0 268 94 0 94 94 0 8 0 ffsino 256 1765 0 268 94 0 94 94 0 8 0 nchpl 144 2093 0 347 65 0 65 65 0 8 0 rtmask 32 2 0 2 1 1 0 1 0 8 0 vnodes 216 2007 0 0 112 0 112 112 0 8 0 namei 1024 8475 0 8475 5 2 3 3 0 8 3 vcpupl 3968 16 0 16 2 2 0 2 0 8 0 vmpool 808 1 0 1 1 1 0 1 0 8 0 kstatmem 264 57 0 34 2 0 2 2 0 8 0 scsiplug 72 1 0 1 1 0 1 1 0 8 1 scxspl 216 6929 0 6929 4 3 1 4 1 8 1 plimitpl 152 122 0 106 1 0 1 1 0 8 0 sigapl 424 712 0 652 8 0 8 8 0 8 1 knotepl 120 5237 0 5190 2 0 2 2 0 8 0 kqueuepl 184 51 0 42 1 0 1 1 0 8 0 pipepl 304 168 0 141 3 0 3 3 0 8 0 fdescpl 448 679 0 653 5 1 4 5 0 8 0 filepl 120 2464 0 2267 7 0 7 7 0 8 0 lockfpl 104 66 0 63 1 0 1 1 0 8 0 lockfspl 48 31 0 28 1 0 1 1 0 8 0 sessionpl 144 39 0 31 1 0 1 1 0 8 0 pgrppl 48 60 0 44 1 0 1 1 0 8 0 ucredpl 104 171 0 160 1 0 1 1 0 8 0 zombiepl 144 720 0 719 1 0 1 1 0 8 0 processpl 1160 712 0 652 5 0 5 5 0 8 0 procpl 664 922 0 855 7 0 7 7 0 8 0 sockpl 552 341 0 312 3 0 3 3 0 8 0 mcl64k 65536 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 12 0 12 1 1 0 1 0 8 0 mcl4k 4096 2663 0 2602 16 7 9 15 0 8 1 mcl2k 2048 423 0 423 3 1 2 2 0 8 2 mextrefs 64 135 0 135 2 1 1 1 0 8 1 mtagpl 96 4 0 4 1 1 0 1 0 8 0 mbufpl 256 6453 0 6294 13 0 13 13 0 8 0 bufpl 272 2451 0 86 158 0 158 158 0 8 0 anonpl 24 108255 0 105452 31 0 31 31 0 187 7 amapchunkpl 152 14556 0 14135 38 6 32 32 0 158 15 amappl16 200 1341 0 1327 4 2 2 4 0 8 0 amappl15 192 2 0 2 1 1 0 1 0 8 0 amappl14 184 552 0 550 1 0 1 1 0 8 0 amappl13 176 151 0 141 1 0 1 1 0 8 0 amappl12 168 977 0 952 2 0 2 2 0 8 0 amappl11 160 5 0 5 1 1 0 1 0 8 0 amappl10 152 57 0 49 1 0 1 1 0 8 0 amappl9 144 280 0 280 1 1 0 1 0 8 0 amappl8 136 146 0 144 1 0 1 1 0 8 0 amappl7 128 170 0 159 1 0 1 1 0 8 0 amappl6 120 192 0 188 1 0 1 1 0 8 0 amappl5 112 181 0 173 1 0 1 1 0 8 0 amappl4 104 301 0 288 1 0 1 1 0 8 0 amappl3 96 2683 0 2595 3 0 3 3 0 8 0 amappl2 88 489 0 439 2 0 2 2 0 8 0 amappl1 80 11985 0 11457 13 0 13 13 0 8 0 amappl 88 4007 0 3879 4 0 4 4 0 92 0 uvmvnodes 80 101 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 5 0 2 1 0 1 1 0 8 0 uaddrrnd 24 679 0 653 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 679 0 653 1 0 1 1 0 8 0 vmmpekpl 168 7050 0 6995 3 0 3 3 0 8 0 vmmpepl 168 51759 0 50223 82 2 80 80 0 357 6 vmsppl 368 678 0 653 4 1 3 4 0 8 0 rwobjpl 40 17326 0 16439 11 1 10 11 0 8 0 pdppl 4096 1366 0 1308 98 34 64 80 0 8 6 pvpl 32 285915 0 278742 80 0 80 80 0 265 4 pmappl 216 679 0 654 3 1 2 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 532 0 52 14 0 14 14 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace sys_shmat(ffff80002a82f258,ffff80002a841d80,ffff80002a841cd0) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80002a841d80) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a841d80) at syscall+0x962 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xce1b7ec9670, count: -3 ddb> machine ddbcpu 1 No such command ddb> trace sys_shmat(ffff80002a82f258,ffff80002a841d80,ffff80002a841cd0) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80002a841d80) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a841d80) at syscall+0x962 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xce1b7ec9670, count: -3