uvm_fault(0xfffff6806d0e2740, 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 *221460 54884 0 0 0x4000000 0 syz-executor sys_shmat(ffff80003c8f0fb0,ffff80003a4d1b80,ffff80003a4d1ad0) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80003a4d1b80) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003a4d1b80) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd7370ecb270, 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(0xfffff6806d0e2740, 0x0, 0, 1) -> e ddb> show kasan No such command ddb> trace sys_shmat(ffff80003c8f0fb0,ffff80003a4d1b80,ffff80003a4d1ad0) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80003a4d1b80) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003a4d1b80) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd7370ecb270, count: -3 ddb> show registers rdi 0 rsi 0x2000 __ALIGN_SIZE+0x1000 rbp 0xffff80003a4d1ab0 rbx 0 rdx 0x1 rcx 0x1 rax 0xfffff6807844bf00 r8 0x180 r9 0xfffff68007ffd270 r10 0 r11 0x3651ef9d821d5b4 r12 0xffff80003c8f0fb0 r13 0xffff800001603000 r14 0 r15 0x3 rip 0xffffffff82109147 sys_shmat+0x3d7 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003a4d1a20 ss 0x10 sys_shmat+0x3d7: movq 0(%r14),%rdi ddb> show proc PROC (syz-executor) tid=221460 pid=54884 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=76, usrpri=76, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003c8f1778,0xffff80003c8f14f0 process=0xffff80002a77f670 user=0xffff80003a4cc000, vmspace=0xfffff6806d0e2740 estcpu=26, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 30379 473151 1734 0 2 0 0 syz-executor 30379 371507 1734 0 2 0 0x4000000 syz-executor 57741 212506 50524 0 3 0 0 vmmaplk syz-executor 57741 134744 50524 0 3 0 0x4000080 fsleep syz-executor 57741 506514 50524 0 2 0 0x4000000 syz-executor 59027 23898 1710 0 2 0 0 syz-executor 59027 493866 1710 0 2 0 0x4000000 syz-executor 40184 199238 85192 60929 2 0x10 0 syz-executor 40184 389665 85192 60929 3 0x10 0x4000080 fsleep syz-executor 54884 349619 61915 0 2 0 0 syz-executor 54884 366238 61915 0 2 0 0x4000000 syz-executor 54884 472369 61915 0 2 0 0x4000000 syz-executor *54884 221460 61915 0 7 0 0x4000000 syz-executor 57851 47069 37481 0 2 0 0 syz-executor 57851 364339 37481 0 3 0 0x4000080 fsleep syz-executor 1734 27444 3710 0 2 0x2 0x1 syz-executor 50524 523381 3710 0 2 0x2 0x1 syz-executor 4946 38659 3710 0 2 0x2 0 syz-executor 1710 381866 3710 0 2 0x2 0x1 syz-executor 37481 98014 3710 0 2 0x2 0x1 syz-executor 85192 258415 3710 0 2 0x2 0x1 syz-executor 75538 46503 3710 0 2 0x2 0 syz-executor 61915 14511 3710 0 2 0x2 0x1 syz-executor 3710 376653 35702 0 3 0x2 0x80 kqread syz-executor 35702 124851 47310 0 3 0x100002 0x88 sigsusp ksh 47310 253832 42858 0 3 0x10 0x88 kqread sshd-session 42858 224312 51613 0 3 0x12 0x80 kqread sshd-session 8107 467773 1 0 3 0x100003 0x80 ttyin getty 51613 423712 1 0 3 0 0x88 kqread sshd 70124 357202 96304 73 3 0x1100010 0x80 kqread syslogd 96304 21491 1 0 3 0x100002 0x80 sbwait syslogd-parent 81259 52465 1 0 3 0x100000 0x80 kqread resolvd 78963 327385 27516 77 3 0x100012 0x80 kqread dhcpleased 2027 460341 27516 77 3 0x100012 0x80 kqread dhcpleased 27516 343411 1 0 3 0 0x80 kqread dhcpleased 86080 251837 0 0 3 0x14000 0x200 bored smr 53279 83762 0 0 2 0x14000 0x200 zerothread 65904 372453 0 0 3 0x14000 0x200 aiodoned aiodoned 9752 264877 0 0 3 0x14000 0x200 syncer update 70028 218860 0 0 3 0x14000 0x200 cleaner cleaner 43357 278122 0 0 3 0x14000 0x200 reaper reaper 14774 290879 0 0 3 0x14000 0x200 pgdaemon pagedaemon 84085 92473 0 0 3 0x14000 0x200 bored viomb 2295 82995 0 0 3 0x14000 0x40000200 acpi0 acpi0 40625 133727 0 0 3 0x14000 0x200 bored softnet0 76271 335467 0 0 3 0x14000 0x200 bored systqmp 16366 183847 0 0 3 0x14000 0x200 bored systq 76638 445389 0 0 3 0x14000 0x40000200 tmoslp softclock 58063 470045 0 0 3 0x14000 0x40000200 idle0 1 2602 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 11029 12103K 12169K 166960K 12135 0 pcb 17 12K 12K 166960K 27 0 rtable 237 6K 6K 166960K 353 0 pf 30 12K 14K 166960K 32 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 37 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1294 81K 81K 166960K 1373 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 3 0K 0K 166960K 4 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 17 61K 89K 166960K 172 0 proc 59 59K 108K 166960K 500 0 subproc 72 4K 4K 166960K 72 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 in_multi 99 6K 6K 166960K 99 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 2 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 372 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 208 150K 158K 166960K 3125 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 38 76K 93K 166960K 1266 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 11 0K 1K 166960K 27 0 temp 36 9114K 9178K 166960K 4294 0 kqueue 13 20K 24K 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 39 0 35 1 0 1 1 0 8 0 rtentry 136 111 0 1 4 0 4 4 0 8 0 unpcb 144 46 0 31 1 0 1 1 0 8 0 syncache 336 5 0 5 2 1 1 1 0 8 1 tcpcb 736 26 0 21 1 0 1 1 0 8 0 arp 96 18 0 0 1 0 1 1 0 8 0 ipq 40 2 0 0 1 0 1 1 0 8 0 ipqe 40 4 0 2 1 0 1 1 0 8 0 inpcb 328 94 0 85 3 1 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 24 0 0 1 0 1 1 0 8 0 kcovpl 48 8 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 453 0 0 29 0 29 29 0 8 0 art_table 40 454 0 0 5 0 5 5 0 8 0 art_node 32 111 0 11 1 0 1 1 0 8 0 sysvmsgpl 40 1 0 1 1 0 1 1 0 8 1 semapl 72 2 0 1 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 1606 0 139 92 0 92 92 0 8 0 ffsino 256 1606 0 139 92 0 92 92 0 8 0 nchpl 144 1847 0 159 64 0 64 64 0 8 0 vnodes 216 1703 0 0 95 0 95 95 0 8 0 namei 1024 6077 0 6076 3 2 1 3 0 8 0 kstatmem 264 23 0 0 2 0 2 2 0 8 0 scxspl 216 6276 0 6276 3 2 1 3 1 8 1 plimitpl 152 36 0 20 1 0 1 1 0 8 0 sigapl 424 459 0 417 6 0 6 6 0 8 1 knotepl 120 3237 0 3190 2 0 2 2 0 8 0 kqueuepl 184 26 0 17 1 0 1 1 0 8 0 pipepl 304 128 0 101 3 0 3 3 0 8 0 fdescpl 448 446 0 417 5 1 4 5 0 8 0 filepl 120 1570 0 1362 8 0 8 8 0 8 1 lockfpl 104 11 0 8 1 0 1 1 0 8 0 lockfspl 48 7 0 4 1 0 1 1 0 8 0 sessionpl 144 24 0 16 1 0 1 1 0 8 0 pgrppl 48 32 0 16 1 0 1 1 0 8 0 ucredpl 104 132 0 120 1 0 1 1 0 8 0 zombiepl 144 432 0 432 2 1 1 1 0 8 1 processpl 1160 459 0 417 4 0 4 4 0 8 0 procpl 664 518 0 467 5 0 5 5 0 8 0 sockpl 552 180 0 152 3 0 3 3 0 8 1 mcl64k 65536 6 0 6 1 0 1 1 0 8 1 mcl16k 16384 6 0 6 2 1 1 1 0 8 1 mcl9k128 9344 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 14 0 14 2 1 1 1 0 8 1 mcl4k 4096 2599 0 2549 14 7 7 14 0 8 0 mcl2k 2048 144 0 144 3 2 1 2 0 8 1 mextrefs 64 80 0 80 2 1 1 1 0 8 1 mtagpl 96 4 0 4 1 1 0 1 0 8 0 mbufpl 256 4699 0 4545 11 0 11 11 0 8 0 bufpl 272 2329 0 90 150 0 150 150 0 8 0 anonpl 24 85988 0 83036 32 1 31 31 0 187 11 amapchunkpl 152 8717 0 8279 23 0 23 23 0 158 6 amappl16 200 1270 0 1251 5 3 2 4 0 8 1 amappl15 192 3 0 3 1 1 0 1 0 8 0 amappl14 184 395 0 394 1 0 1 1 0 8 0 amappl13 176 115 0 105 1 0 1 1 0 8 0 amappl12 168 747 0 719 2 0 2 2 0 8 0 amappl11 160 4 0 4 1 1 0 1 0 8 0 amappl10 152 60 0 52 1 0 1 1 0 8 0 amappl9 144 280 0 280 1 1 0 1 0 8 0 amappl8 136 89 0 88 1 0 1 1 0 8 0 amappl7 128 137 0 127 1 0 1 1 0 8 0 amappl6 120 113 0 112 1 0 1 1 0 8 0 amappl5 112 127 0 121 1 0 1 1 0 8 0 amappl4 104 265 0 252 1 0 1 1 0 8 0 amappl3 96 1642 0 1536 3 0 3 3 0 8 0 amappl2 88 432 0 386 2 0 2 2 0 8 0 amappl1 80 10234 0 9692 13 1 12 13 0 8 0 amappl 88 2457 0 2309 4 0 4 4 0 92 0 uvmvnodes 80 98 0 0 2 0 2 2 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 446 0 417 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 446 0 417 1 0 1 1 0 8 0 vmmpekpl 168 5294 0 5266 2 0 2 2 0 8 0 vmmpepl 168 37491 0 35799 82 3 79 80 0 357 5 vmsppl 368 445 0 417 4 1 3 4 0 8 0 rwobjpl 40 13829 0 12926 11 0 11 11 0 8 0 pdppl 4096 898 0 834 92 26 66 78 0 8 2 pvpl 32 213513 0 205560 100 4 96 96 0 265 25 pmappl 216 445 0 417 2 0 2 2 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 511 0 45 14 0 14 14 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace sys_shmat(ffff80003c8f0fb0,ffff80003a4d1b80,ffff80003a4d1ad0) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80003a4d1b80) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003a4d1b80) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd7370ecb270, count: -3 ddb> machine ddbcpu 1 No such command ddb> trace sys_shmat(ffff80003c8f0fb0,ffff80003a4d1b80,ffff80003a4d1ad0) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80003a4d1b80) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003a4d1b80) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd7370ecb270, count: -3