login: uvm_fault(0xfffff6006d0dc5d0, 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 *456382 72454 0 0 0x4000000 0 syz-executor sys_shmat(ffff80002a785ca0,ffff80003c8f73c0,ffff80003c8f7310) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80003c8f73c0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c8f73c0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd596f6fef30, 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(0xfffff6006d0dc5d0, 0x0, 0, 1) -> e ddb> show kasan No such command ddb> trace sys_shmat(ffff80002a785ca0,ffff80003c8f73c0,ffff80003c8f7310) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80003c8f73c0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c8f73c0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd596f6fef30, count: -3 ddb> show registers rdi 0xffff80002d09e000 rsi 0x115 rbp 0xffff80003c8f72f0 rbx 0 rdx 0x1 rcx 0x1 rax 0xfffff600688c5f00 r8 0x180 r9 0xfffff60007ffd680 r10 0x8c7390371d6738e9 r11 0x57d917c73630e2d2 r12 0xffff80002a785ca0 r13 0xffff8000015f2000 r14 0 r15 0x3 rip 0xffffffff8239ff37 sys_shmat+0x3d7 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c8f7260 ss 0x10 sys_shmat+0x3d7: movq 0(%r14),%rdi ddb> show proc PROC (syz-executor) tid=456382 pid=72454 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=0xffff80002a7854d8,0xffff80002a785a18 process=0xffff8000384cad68 user=0xffff80003c8f2000, vmspace=0xfffff6006d0dc5d0 estcpu=27, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 53159 517004 48481 0 2 0 0 syz-executor 53159 472772 48481 0 3 0 0x4000080 fsleep syz-executor 53159 306231 48481 0 3 0 0x4000080 fsleep syz-executor 25860 326079 86485 0 2 0 0 syz-executor 25860 159238 86485 0 3 0 0x4000080 fsleep syz-executor 25860 393472 86485 0 2 0 0x4000000 syz-executor 72454 200266 73034 0 2 0 0 syz-executor 72454 270529 73034 0 3 0 0x4000080 fsleep syz-executor *72454 456382 73034 0 7 0 0x4000000 syz-executor 72454 2798 73034 0 2 0 0x4000000 syz-executor 88309 242060 63051 0 2 0 0 syz-executor 88309 358144 63051 0 3 0 0x4000080 fsleep syz-executor 88309 27649 63051 0 3 0 0x4000080 fsleep syz-executor 91387 54363 34575 0 2 0x2 0 syz-executor 73480 11698 1 0 3 0x100003 0x80 ttyin getty 45456 69018 34575 0 2 0x2 0 syz-executor 26152 484791 34575 0 2 0x2 0 syz-executor 17941 404110 34575 0 2 0x2 0 syz-executor 48481 350561 34575 0 3 0x2 0x80 nanoslp syz-executor 86485 232626 34575 0 3 0x2 0x80 nanoslp syz-executor 73034 137256 34575 0 3 0x2 0x80 nanoslp syz-executor 63051 311372 34575 0 3 0x2 0x80 nanoslp syz-executor 34575 212449 1 0 2 0x2 0 syz-executor 35810 386056 0 0 3 0x14000 0x200 bored smr 27258 401890 0 0 2 0x14000 0x200 zerothread 36164 287291 0 0 3 0x14000 0x200 aiodoned aiodoned 97670 172173 0 0 3 0x14000 0x200 syncer update 16911 21405 0 0 3 0x14000 0x200 cleaner cleaner 43819 277151 0 0 3 0x14000 0x200 reaper reaper 93735 490649 0 0 3 0x14000 0x200 pgdaemon pagedaemon 21052 272394 0 0 3 0x14000 0x200 bored viomb 8142 48668 0 0 3 0x14000 0x40000200 acpi0 acpi0 38082 314166 0 0 3 0x14000 0x200 bored softnet0 29254 475494 0 0 3 0x14000 0x200 bored systqmp 89345 162039 0 0 3 0x14000 0x200 bored systq 59897 218193 0 0 3 0x14000 0x40000200 tmoslp softclock 76280 58940 0 0 3 0x14000 0x40000200 idle0 1 108429 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 11018 12095K 12200K 166960K 12142 0 pcb 17 12K 12K 166960K 24 0 rtable 225 7K 8K 166960K 403 0 pf 29 12K 13K 166960K 35 0 ifaddr 38 6K 7K 166960K 49 0 ifgroup 46 2K 2K 166960K 56 0 sysctl 1 1K 9K 166960K 5 0 counters 32 17K 18K 166960K 36 0 ioctlops 0 0K 4K 166960K 167 0 iov 0 0K 16K 166960K 3 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1352 85K 85K 166960K 1458 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 3 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1692 195K 286K 166960K 12472 0 file desc 16 61K 93K 166960K 186 0 proc 19 25K 108K 166960K 534 0 subproc 65 4K 4K 166960K 83 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 88 5K 6K 166960K 112 0 ether_multi 1 0K 0K 166960K 2 0 mrt 1 0K 0K 166960K 7 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 387 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 115 81K 158K 166960K 3284 0 UVM aobj 3 2K 6K 166960K 6 0 pinsyscall 19 38K 94K 166960K 1310 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 10 0K 2K 166960K 31 0 temp 34 9114K 9178K 166960K 4357 0 kqueue 1 2K 28K 166960K 34 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 41 0 41 1 0 1 1 0 8 1 rtentry 136 123 0 23 4 0 4 4 0 8 0 unpcb 144 64 0 64 1 0 1 1 0 8 1 syncache 336 4 0 4 1 1 0 1 0 8 0 tcpcb 736 16 0 15 1 0 1 1 0 8 0 arp 96 20 0 4 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 84 0 82 2 1 1 2 0 8 0 ip6q 80 1 0 1 1 0 1 1 0 8 1 ip6af 40 2 0 2 1 0 1 1 0 8 1 nd6 112 27 0 6 1 0 1 1 0 8 0 kcovpl 48 9 0 2 1 0 1 1 0 8 0 mppekey 1024 1 0 1 1 0 1 1 0 8 1 ppxss 1072 2 0 2 1 0 1 1 0 8 1 pftag 88 1 0 0 1 0 1 1 0 8 0 pfrule 1360 2 0 1 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 497 0 88 29 0 29 29 0 8 1 art_table 40 498 0 88 5 0 5 5 0 8 0 art_node 32 123 0 32 1 0 1 1 0 8 0 semapl 72 1 0 0 1 0 1 1 0 8 0 shmpl 120 2 0 1 1 0 1 1 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 1633 0 162 93 0 93 93 0 8 0 ffsino 256 1633 0 162 93 0 93 93 0 8 0 nchpl 144 1864 0 166 64 0 64 64 0 8 0 vnodes 216 1803 0 0 101 0 101 101 0 8 0 namei 1024 6412 0 6411 9 4 5 5 0 8 4 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 27 0 6 2 0 2 2 0 8 0 scsiplug 72 1 0 1 1 0 1 1 0 8 1 scxspl 216 6429 0 6429 4 3 1 4 1 8 1 plimitpl 152 34 0 24 1 0 1 1 0 8 0 sigapl 424 470 0 438 6 1 5 6 0 8 0 knotepl 120 2760 0 2742 2 0 2 2 0 8 0 kqueuepl 184 35 0 34 1 0 1 1 0 8 0 pipepl 304 130 0 103 3 0 3 3 0 8 0 fdescpl 448 457 0 438 5 1 4 5 0 8 0 filepl 120 1754 0 1475 9 0 9 9 0 8 0 lockfpl 104 18 0 18 1 0 1 1 0 8 1 lockfspl 48 9 0 9 1 0 1 1 0 8 1 sessionpl 144 26 0 23 1 0 1 1 0 8 0 pgrppl 48 41 0 30 1 0 1 1 0 8 0 ucredpl 104 112 0 109 1 0 1 1 0 8 0 zombiepl 144 460 0 460 2 1 1 1 0 8 1 processpl 1160 470 0 438 4 0 4 4 0 8 0 procpl 664 532 0 491 5 0 5 5 0 8 1 sockpl 552 190 0 188 3 0 3 3 0 8 2 mcl64k 65536 10 0 10 2 1 1 1 0 8 1 mcl16k 16384 4 0 4 1 0 1 1 0 8 1 mcl12k 12288 2 0 2 2 1 1 1 0 8 1 mcl8k 8192 13 0 13 2 1 1 1 0 8 1 mcl4k 4096 2627 0 2570 14 5 9 14 0 8 1 mcl2k 2048 132 0 132 2 1 1 1 0 8 1 mextrefs 64 63 0 63 2 1 1 1 0 8 1 mtagpl 96 4 0 4 1 1 0 1 0 8 0 mbufpl 256 4716 0 4564 11 0 11 11 0 8 0 bufpl 272 2401 0 86 155 0 155 155 0 8 0 anonpl 24 86975 0 85649 35 1 34 34 0 187 15 amapchunkpl 152 15427 0 15137 28 0 28 28 0 158 13 amappl16 200 1250 0 1240 17 3 14 14 0 8 13 amappl15 192 24 0 24 1 1 0 1 0 8 0 amappl14 184 407 0 407 1 0 1 1 0 8 1 amappl13 176 111 0 110 1 0 1 1 0 8 0 amappl12 168 702 0 687 2 0 2 2 0 8 0 amappl11 160 5 0 5 1 1 0 1 0 8 0 amappl10 152 60 0 60 1 0 1 1 0 8 1 amappl9 144 280 0 280 1 1 0 1 0 8 0 amappl8 136 91 0 91 1 0 1 1 0 8 1 amappl7 128 209 0 207 1 0 1 1 0 8 0 amappl6 120 133 0 133 1 0 1 1 0 8 1 amappl5 112 129 0 129 1 0 1 1 0 8 1 amappl4 104 270 0 268 1 0 1 1 0 8 0 amappl3 96 1663 0 1600 3 0 3 3 0 8 0 amappl2 88 447 0 442 2 0 2 2 0 8 1 amappl1 80 10147 0 10041 14 2 12 14 0 8 6 amappl 88 2592 0 2492 4 0 4 4 0 92 0 uvmvnodes 80 100 0 0 3 0 3 3 0 8 0 dma4096 4096 2 0 2 2 1 1 1 0 8 1 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 6 0 3 1 0 1 1 0 8 0 uaddrrnd 24 457 0 438 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 457 0 438 1 0 1 1 0 8 0 vmmpekpl 168 5458 0 5420 2 0 2 2 0 8 0 vmmpepl 168 38163 0 37436 79 0 79 79 0 357 47 vmsppl 368 456 0 438 4 1 3 4 0 8 0 rwobjpl 40 13903 0 13525 11 1 10 11 0 8 0 pdppl 4096 924 0 880 90 44 46 80 0 8 2 pvpl 32 217283 0 213858 74 0 74 74 0 265 36 pmappl 216 458 0 440 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 523 0 62 14 0 14 14 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace sys_shmat(ffff80002a785ca0,ffff80003c8f73c0,ffff80003c8f7310) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80003c8f73c0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c8f73c0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd596f6fef30, count: -3 ddb> machine ddbcpu 1 No such command ddb> trace sys_shmat(ffff80002a785ca0,ffff80003c8f73c0,ffff80003c8f7310) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80003c8f73c0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c8f73c0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd596f6fef30, count: -3 ddb>