uvm_fault(0xfffffa006d0e1010, 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 *316299 26631 0 0 0x4000000 0 syz-executor sys_shmat(ffff80002a77b248,ffff80003c90b7e0,ffff80003c90b730) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80003c90b7e0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c90b7e0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd9416a57720, 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(0xfffffa006d0e1010, 0x0, 0, 1) -> e ddb> show kasan No such command ddb> trace sys_shmat(ffff80002a77b248,ffff80003c90b7e0,ffff80003c90b730) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80003c90b7e0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c90b7e0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd9416a57720, count: -3 ddb> show registers rdi 0xffff80002f0a8000 rsi 0x11e rbp 0xffff80003c90b710 rbx 0 rdx 0x1 rcx 0x1 rax 0xfffffa006cbb4e10 r8 0x180 r9 0xfffffa0007ffd9c0 r10 0x57eda793725e474e r11 0xa27879bb26f36897 r12 0xffff80002a77b248 r13 0xffff8000015f5000 r14 0 r15 0x3 rip 0xffffffff82567ac7 sys_shmat+0x3d7 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c90b680 ss 0x10 sys_shmat+0x3d7: movq 0(%r14),%rdi ddb> show proc PROC (syz-executor) tid=316299 pid=26631 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=51, usrpri=51, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a77aa80,0xffff80002a77a030 process=0xffff80003a4cd6c0 user=0xffff80003c906000, vmspace=0xfffffa006d0e1010 estcpu=1, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 21640 495806 14710 0 2 0 0 syz-executor 21640 152293 14710 0 2 0 0x4000000 syz-executor 26631 386812 43151 0 2 0 0 syz-executor *26631 316299 43151 0 7 0 0x4000000 syz-executor 26631 450566 43151 0 2 0 0x4000000 syz-executor 94341 121408 67766 0 2 0 0 syz-executor 94341 12323 67766 0 3 0 0x4000080 fsleep syz-executor 46256 30716 1629 0 2 0 0 syz-executor 46256 183076 1629 0 3 0 0x4000080 fsleep syz-executor 26029 144080 42597 0 2 0 0xc80 syz-executor 26029 510186 42597 0 3 0 0x4000080 sbwait syz-executor 26029 400923 42597 0 3 0 0x4000080 fsleep syz-executor 67766 376872 63273 0 3 0x2 0x80 nanoslp syz-executor 32205 507055 63273 0 3 0x2 0x80 nanoslp syz-executor 1629 523184 63273 0 2 0x2 0xc80 syz-executor 14710 237441 63273 0 2 0x2 0xc80 syz-executor 81108 89859 63273 0 3 0x2 0x80 nanoslp syz-executor 43151 411482 63273 0 3 0x2 0x80 nanoslp syz-executor 42597 428108 63273 0 2 0x2 0xc80 syz-executor 67423 395348 63273 0 3 0x2 0x80 nanoslp syz-executor 63273 402542 60306 0 2 0x2 0 syz-executor 60306 82257 93914 0 3 0x100002 0x88 sigsusp ksh 93914 469666 2144 0 3 0x10 0x88 kqread sshd-session 2144 90216 46424 0 3 0x12 0x80 kqread sshd-session 49620 375677 1 0 3 0x100003 0x80 ttyin getty 46424 273030 1 0 3 0 0x88 kqread sshd 98056 157125 50829 73 3 0x1100010 0x80 kqread syslogd 50829 145859 1 0 3 0x100002 0x80 sbwait syslogd-parent 44794 270534 1 0 3 0x100000 0x80 kqread resolvd 12883 16272 2429 77 3 0x100012 0x80 kqread dhcpleased 48128 335491 2429 77 3 0x100012 0x80 kqread dhcpleased 2429 162788 1 0 3 0 0x80 kqread dhcpleased 19497 269034 0 0 3 0x14000 0x200 bored smr 19071 65689 0 0 2 0x14000 0x200 zerothread 9955 456559 0 0 3 0x14000 0x200 aiodoned aiodoned 41149 482626 0 0 3 0x14000 0x200 syncer update 39015 170682 0 0 3 0x14000 0x200 cleaner cleaner 84403 415943 0 0 3 0x14000 0x200 reaper reaper 76595 205163 0 0 3 0x14000 0x200 pgdaemon pagedaemon 87538 400049 0 0 3 0x14000 0x200 bored viomb 65621 484960 0 0 3 0x14000 0x40000200 acpi0 acpi0 73935 203789 0 0 3 0x14000 0x200 bored softnet0 83285 35026 0 0 3 0x14000 0x200 bored systqmp 25880 135059 0 0 3 0x14000 0x200 bored systq 43007 95306 0 0 3 0x14000 0x40000200 tmoslp softclock 59496 246162 0 0 3 0x14000 0x40000200 idle0 1 50935 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 11035 12232K 12304K 166960K 12145 0 pcb 17 12K 12K 166960K 32 0 rtable 242 7K 7K 166960K 361 0 pf 30 12K 15K 166960K 33 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 4K 166960K 38 0 iov 0 0K 8K 166960K 1 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1328 84K 84K 166960K 1424 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 5 0K 0K 166960K 5 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 18 65K 93K 166960K 170 0 sigio 0 0K 0K 166960K 2 0 proc 60 59K 83K 166960K 502 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 2 0 in_multi 99 6K 6K 166960K 99 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 377 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 234 151K 159K 166960K 3333 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 39 78K 95K 166960K 1274 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 1 0 NDP 11 0K 1K 166960K 27 0 temp 34 9114K 9120K 166960K 3336 0 kqueue 14 22K 26K 166960K 29 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 112 0 1 4 0 4 4 0 8 0 unpcb 144 53 0 34 1 0 1 1 0 8 0 syncache 336 6 0 6 1 1 0 1 0 8 0 tcpcb 736 21 0 14 1 0 1 1 0 8 0 arp 96 18 0 0 1 0 1 1 0 8 0 ipq 40 3 0 0 1 0 1 1 0 8 0 ipqe 40 3 0 0 1 0 1 1 0 8 0 inpcb 328 116 0 104 4 2 2 4 0 8 0 nd6 112 25 0 0 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 pfrktable 1344 1 0 0 1 0 1 1 0 8 0 pfsrclim 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 466 0 0 30 0 30 30 0 8 0 art_table 40 467 0 0 5 0 5 5 0 8 0 art_node 32 112 0 11 1 0 1 1 0 8 0 semapl 72 3 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 1637 0 172 92 0 92 92 0 8 0 ffsino 256 1637 0 172 92 0 92 92 0 8 0 nchpl 144 1877 0 184 64 0 64 64 0 8 0 vnodes 216 1770 0 0 99 0 99 99 0 8 0 namei 1024 6217 0 6217 3 2 1 3 0 8 1 kstatmem 264 23 0 0 2 0 2 2 0 8 0 scsiplug 72 1 0 1 1 1 0 1 0 8 0 scxspl 216 6291 0 6291 4 3 1 4 1 8 1 plimitpl 152 35 0 16 1 0 1 1 0 8 0 sigapl 424 460 0 417 6 1 5 6 0 8 0 knotepl 120 3403 0 3353 2 0 2 2 0 8 0 kqueuepl 184 33 0 22 1 0 1 1 0 8 0 pipepl 304 126 0 99 3 0 3 3 0 8 0 fdescpl 448 447 0 417 5 1 4 5 0 8 0 filepl 120 1643 0 1420 9 0 9 9 0 8 0 lockfpl 104 10 0 8 1 0 1 1 0 8 0 lockfspl 48 6 0 4 1 0 1 1 0 8 0 sessionpl 144 26 0 18 1 0 1 1 0 8 0 pgrppl 48 34 0 18 1 0 1 1 0 8 0 ucredpl 104 121 0 108 1 0 1 1 0 8 0 zombiepl 144 423 0 418 1 0 1 1 0 8 0 processpl 1160 460 0 417 4 0 4 4 0 8 0 procpl 664 514 0 459 5 0 5 5 0 8 0 sosppl 176 2 0 2 1 1 0 1 0 8 0 sockpl 552 213 0 178 5 2 3 5 0 8 0 mcl64k 65536 8 0 8 1 1 0 1 0 8 0 mcl16k 16384 2 0 2 1 1 0 1 0 8 0 mcl12k 12288 1 0 1 1 1 0 1 0 8 0 mcl8k 8192 13 0 13 1 1 0 1 0 8 0 mcl4k 4096 2585 0 2530 14 6 8 14 0 8 0 mcl2k 2048 143 0 140 3 2 1 3 0 8 0 mextrefs 64 75 0 73 2 1 1 1 0 8 0 mtagpl 96 4 0 4 1 1 0 1 0 8 0 mbufpl 256 4628 0 4468 12 0 12 12 0 8 0 bufpl 272 2313 0 83 149 0 149 149 0 8 0 anonpl 24 83802 0 80636 21 1 20 21 0 187 0 amapchunkpl 152 8989 0 8478 21 1 20 20 0 158 0 amappl16 200 1284 0 1262 4 2 2 4 0 8 0 amappl15 192 5 0 5 1 1 0 1 0 8 0 amappl14 184 400 0 399 1 0 1 1 0 8 0 amappl13 176 117 0 107 1 0 1 1 0 8 0 amappl12 168 683 0 654 2 0 2 2 0 8 0 amappl11 160 1 0 1 1 1 0 1 0 8 0 amappl10 152 61 0 53 1 0 1 1 0 8 0 amappl9 144 280 0 280 1 1 0 1 0 8 0 amappl8 136 91 0 90 1 0 1 1 0 8 0 amappl7 128 138 0 128 1 0 1 1 0 8 0 amappl6 120 112 0 111 1 0 1 1 0 8 0 amappl5 112 232 0 226 1 0 1 1 0 8 0 amappl4 104 261 0 247 1 0 1 1 0 8 0 amappl3 96 1642 0 1520 3 0 3 3 0 8 0 amappl2 88 438 0 387 2 0 2 2 0 8 0 amappl1 80 10165 0 9619 13 1 12 13 0 8 0 amappl 88 2653 0 2481 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 3 0 0 1 0 1 1 0 8 0 uaddrrnd 24 447 0 417 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 447 0 417 1 0 1 1 0 8 0 vmmpekpl 168 5285 0 5255 2 0 2 2 0 8 0 vmmpepl 168 37698 0 35885 79 0 79 79 0 357 0 vmsppl 368 446 0 417 4 1 3 4 0 8 0 rwobjpl 40 13878 0 12938 11 1 10 11 0 8 0 pdppl 4096 900 0 834 92 26 66 80 0 8 0 pvpl 32 213721 0 203998 79 0 79 79 0 265 0 pmappl 216 446 0 417 3 0 3 3 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 509 0 45 14 0 14 14 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace sys_shmat(ffff80002a77b248,ffff80003c90b7e0,ffff80003c90b730) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80003c90b7e0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c90b7e0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd9416a57720, count: -3 ddb> machine ddbcpu 1 No such command ddb> trace sys_shmat(ffff80002a77b248,ffff80003c90b7e0,ffff80003c90b730) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80003c90b7e0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c90b7e0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd9416a57720, count: -3