uvm_fault(0xfffff7007f222e60, 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 *419368 8686 0 0 0x4000000 0 syz-executor sys_shmat(ffff80002a7847e0,ffff80002a881960,ffff80002a8818b0) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80002a881960) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a881960) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd8c0a511f80, 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(0xfffff7007f222e60, 0x0, 0, 1) -> e ddb> show kasan No such command ddb> trace sys_shmat(ffff80002a7847e0,ffff80002a881960,ffff80002a8818b0) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80002a881960) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a881960) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd8c0a511f80, count: -3 ddb> show registers rdi 0xffff8000318a4000 rsi 0x5cc rbp 0xffff80002a881890 rbx 0 rdx 0 rcx 0 rax 0xfffff7007a5faf00 r8 0x100 r9 0xfffff70007ffd9c0 r10 0x1bf7815722f8f70b r11 0x6a3ed01f9b6270c3 r12 0xffff80002a7847e0 r13 0xffff8000015eb000 r14 0 r15 0x1 rip 0xffffffff8145e837 sys_shmat+0x3d7 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80002a881800 ss 0x10 sys_shmat+0x3d7: movq 0(%r14),%rdi ddb> show proc PROC (syz-executor) tid=419368 pid=8686 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=71, usrpri=71, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a784d10,0xffff80002a785250 process=0xffff80002a77c010 user=0xffff80002a87c000, vmspace=0xfffff7007f222e60 estcpu=21, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 8686 271222 76414 0 2 0 0 syz-executor 8686 19962 76414 0 2 0 0x4000000 syz-executor * 8686 419368 76414 0 7 0 0x4000000 syz-executor 39885 297726 35127 0 2 0 0 syz-executor 39885 422242 35127 0 3 0 0x4000080 fsleep syz-executor 39885 76306 35127 0 2 0 0x4000000 syz-executor 67702 224418 64252 0 2 0x100002 0 sh 64252 51492 5596 0 3 0x2 0x80 wait syz-executor 27334 104252 11244 0 3 0x10 0x80 nanoslp syz-executor 27334 382639 11244 0 3 0x10 0x4000080 netacc syz-executor 27334 339088 11244 0 3 0x10 0x4000080 fsleep syz-executor 26111 335648 29765 0 4 0x2000 0x80000 syz-executor 26111 123163 29765 0 2 0x2000 0x4080000 syz-executor 26111 321347 29765 0 3 0x2000 0x4000000 suspend syz-executor 26111 91425 29765 0 4 0x2000 0x4080000 syz-executor 35127 199227 5596 0 3 0x2 0x80 nanoslp syz-executor 42231 79803 5596 0 3 0x2 0x80 piperd syz-executor 29765 298826 5596 0 3 0x2 0x80 nanoslp syz-executor 76414 376296 5596 0 3 0x2 0x80 nanoslp syz-executor 52591 451371 5596 0 3 0x2 0x80 piperd syz-executor 11244 137112 5596 0 3 0x2 0x80 nanoslp syz-executor 56022 379558 5596 0 2 0x2 0x1 syz-executor 5596 447500 95577 0 2 0x2 0 syz-executor 95577 305846 41016 0 3 0x100002 0x88 sigsusp ksh 41016 128119 81518 0 3 0x10 0x88 kqread sshd-session 81518 365492 29905 0 3 0x12 0x80 kqread sshd-session 3629 272877 1 0 3 0x100003 0x80 ttyin getty 29905 92411 1 0 3 0 0x88 kqread sshd 9282 335181 70230 73 3 0x1100010 0x80 kqread syslogd 70230 30870 1 0 3 0x100002 0x80 sbwait syslogd-parent 88867 229976 1 0 3 0x100000 0x80 kqread resolvd 5542 34003 35164 77 3 0x100012 0x80 kqread dhcpleased 17654 346363 35164 77 3 0x100012 0x80 kqread dhcpleased 35164 513526 1 0 3 0 0x80 kqread dhcpleased 88681 91302 0 0 3 0x14000 0x200 bored smr 41008 114516 0 0 2 0x14000 0x200 zerothread 50215 356974 0 0 3 0x14000 0x200 aiodoned aiodoned 69944 55541 0 0 3 0x14000 0x200 syncer update 8880 77058 0 0 3 0x14000 0x200 cleaner cleaner 77851 129257 0 0 3 0x14000 0x200 reaper reaper 31989 174711 0 0 3 0x14000 0x200 pgdaemon pagedaemon 91811 53563 0 0 3 0x14000 0x200 bored viomb 38076 151280 0 0 3 0x14000 0x40000200 acpi0 acpi0 9369 102082 0 0 3 0x14000 0x200 bored softnet0 48917 211207 0 0 3 0x14000 0x200 bored systqmp 51388 241066 0 0 3 0x14000 0x200 bored systq 54675 9903 0 0 3 0x14000 0x40000200 tmoslp softclock 25972 254662 0 0 3 0x14000 0x40000200 idle0 1 316334 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 11030 12105K 12192K 166960K 12187 0 pcb 17 12K 12K 166960K 22 0 rtable 215 5K 6K 166960K 626 0 pf 30 12K 14K 166960K 55 0 ifaddr 39 6K 7K 166960K 83 0 ifgroup 50 2K 2K 166960K 90 0 sysctl 1 1K 9K 166960K 5 0 counters 33 17K 17K 166960K 43 0 ioctlops 0 0K 4K 166960K 83 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1291 81K 82K 166960K 1479 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 6 0K 0K 166960K 6 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 15 53K 89K 166960K 334 0 proc 60 59K 108K 166960K 778 0 subproc 72 4K 4K 166960K 162 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 9 0 in_multi 88 5K 6K 166960K 199 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 7 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 55 254K 254K 166960K 55 0 exec 0 0K 1K 166960K 511 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 201 159K 171K 166960K 4225 0 UVM aobj 3 2K 6K 166960K 5 0 pinsyscall 36 72K 92K 166960K 1668 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 7 0 NDP 13 0K 2K 166960K 55 0 temp 38 9114K 9178K 166960K 6709 0 kqueue 13 20K 24K 166960K 31 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 94 0 58 2 0 2 2 0 8 0 rtentry 136 210 0 111 4 0 4 4 0 8 0 unpcb 144 61 0 43 1 0 1 1 0 8 0 syncache 336 4 0 4 1 1 0 1 0 8 0 tcpcb 736 20 0 14 1 0 1 1 0 8 0 arp 96 36 0 20 1 0 1 1 0 8 0 ipq 40 1 0 0 1 0 1 1 0 8 0 ipqe 40 4 0 3 1 0 1 1 0 8 0 inpcb 328 147 0 137 3 1 2 2 0 8 1 nd6 112 51 0 30 1 0 1 1 0 8 0 kcovpl 48 18 0 10 1 0 1 1 0 8 0 pfrule 1360 2 0 2 1 1 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 854 0 443 34 5 29 31 0 8 1 art_table 40 855 0 443 6 1 5 6 0 8 0 art_node 32 210 0 120 1 0 1 1 0 8 0 sysvmsgpl 40 40 0 0 1 0 1 1 0 8 0 semapl 72 4 0 0 1 0 1 1 0 8 0 shmpl 120 1 0 0 1 0 1 1 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 1675 0 187 94 0 94 94 0 8 0 ffsino 256 1675 0 187 94 0 94 94 0 8 0 nchpl 144 1958 0 230 65 0 65 65 0 8 0 vnodes 216 1866 0 0 104 0 104 104 0 8 0 namei 1024 7484 0 7482 4 3 1 3 0 8 0 vcpupl 3968 32 0 32 4 4 0 4 0 8 0 vmpool 808 2 0 2 1 1 0 1 0 8 0 kstatmem 264 43 0 20 2 0 2 2 0 8 0 scsiplug 72 1 0 1 1 1 0 1 0 8 0 scxspl 216 6521 0 6521 4 3 1 4 1 8 1 plimitpl 152 46 0 30 1 0 1 1 0 8 0 sigapl 424 601 0 561 6 0 6 6 0 8 0 knotepl 120 4643 0 4596 4 0 4 4 0 8 2 kqueuepl 184 34 0 25 1 0 1 1 0 8 0 pipepl 304 157 0 130 3 0 3 3 0 8 0 fdescpl 448 588 0 561 5 1 4 5 0 8 0 filepl 120 2010 0 1761 8 0 8 8 0 8 0 lockfpl 104 15 0 12 1 0 1 1 0 8 0 lockfspl 48 9 0 6 1 0 1 1 0 8 0 sessionpl 144 33 0 25 1 0 1 1 0 8 0 pgrppl 48 52 0 36 1 0 1 1 0 8 0 ucredpl 104 124 0 112 1 0 1 1 0 8 0 zombiepl 144 581 0 581 1 0 1 1 0 8 1 processpl 1160 601 0 561 4 0 4 4 0 8 0 procpl 664 730 0 681 6 0 6 6 0 8 1 sockpl 552 302 0 238 6 1 5 5 0 8 0 mcl64k 65536 4 0 4 2 1 1 1 0 8 1 mcl16k 16384 1 0 1 1 0 1 1 0 8 1 mcl12k 12288 1 0 1 1 1 0 1 0 8 0 mcl8k 8192 15 0 15 2 1 1 1 0 8 1 mcl4k 4096 2649 0 2597 14 6 8 14 0 8 0 mcl2k 2048 334 0 333 1 0 1 1 0 8 0 mextrefs 64 82 0 82 2 1 1 1 0 8 1 mtagpl 96 5 0 5 1 1 0 1 0 8 0 mbufpl 256 5655 0 5475 13 1 12 12 0 8 0 bufpl 272 2391 0 88 154 0 154 154 0 8 0 anonpl 24 88270 0 85382 24 4 20 24 0 187 0 amapchunkpl 152 12419 0 12043 45 10 35 35 0 158 17 amappl16 200 1038 0 1025 4 2 2 4 0 8 0 amappl15 192 5 0 5 1 1 0 1 0 8 0 amappl14 184 508 0 506 1 0 1 1 0 8 0 amappl13 176 131 0 121 1 0 1 1 0 8 0 amappl12 168 857 0 831 2 0 2 2 0 8 0 amappl11 160 12 0 12 1 1 0 1 0 8 0 amappl10 152 62 0 54 1 0 1 1 0 8 0 amappl9 144 283 0 283 1 1 0 1 0 8 0 amappl8 136 122 0 121 1 0 1 1 0 8 0 amappl7 128 198 0 188 1 0 1 1 0 8 0 amappl6 120 165 0 163 1 0 1 1 0 8 0 amappl5 112 166 0 160 1 0 1 1 0 8 0 amappl4 104 291 0 276 1 0 1 1 0 8 0 amappl3 96 2246 0 2157 3 0 3 3 0 8 0 amappl2 88 485 0 436 2 0 2 2 0 8 0 amappl1 80 11312 0 10776 13 1 12 13 0 8 0 amappl 88 3399 0 3263 5 0 5 5 0 92 1 uvmvnodes 80 106 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 254 0 254 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 588 0 561 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 588 0 561 1 0 1 1 0 8 0 vmmpekpl 168 6326 0 6272 3 0 3 3 0 8 0 vmmpepl 168 46259 0 44655 83 3 80 80 0 357 3 vmsppl 368 587 0 561 4 1 3 4 0 8 0 rwobjpl 40 15720 0 14822 11 1 10 11 0 8 0 pdppl 4096 1186 0 1126 104 36 68 78 0 8 8 pvpl 32 246699 0 239109 77 4 73 77 0 265 2 pmappl 216 589 0 563 2 0 2 2 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 537 0 60 15 0 15 15 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace sys_shmat(ffff80002a7847e0,ffff80002a881960,ffff80002a8818b0) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80002a881960) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a881960) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd8c0a511f80, count: -3 ddb> machine ddbcpu 1 No such command ddb> trace sys_shmat(ffff80002a7847e0,ffff80002a881960,ffff80002a8818b0) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80002a881960) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a881960) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd8c0a511f80, count: -3