uvm_fault(0xfffff1806d0c8e70, 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 *400309 75488 0 0 0x4000000 0 syz-executor sys_shmat(ffff80002a86f780,ffff80003c9bd480,ffff80003c9bd3d0) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80003c9bd480) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c9bd480) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x4193ce61bd0, 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(0xfffff1806d0c8e70, 0x0, 0, 1) -> e ddb> show kasan No such command ddb> trace sys_shmat(ffff80002a86f780,ffff80003c9bd480,ffff80003c9bd3d0) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80003c9bd480) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c9bd480) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x4193ce61bd0, count: -3 ddb> show registers rdi 0xffff80002bc9a000 rsi 0x11b rbp 0xffff80003c9bd3b0 rbx 0 rdx 0x1 rcx 0x1 rax 0xfffff18067af9e88 r8 0x180 r9 0xfffff18007ffd680 r10 0xbd7ed29a1389ef64 r11 0x483732ce8ff021f6 r12 0xffff80002a86f780 r13 0xffff8000015ff000 r14 0 r15 0x3 rip 0xffffffff83343887 sys_shmat+0x3d7 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c9bd320 ss 0x10 sys_shmat+0x3d7: movq 0(%r14),%rdi ddb> show proc PROC (syz-executor) tid=400309 pid=75488 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=69, usrpri=69, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a86e2c0,0xffff80002a86e038 process=0xffff800045ff4020 user=0xffff80003c9b8000, vmspace=0xfffff1806d0c8e70 estcpu=19, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 70296 62570 3131 0 2 0x400000 0 syz-executor 70296 304721 3131 0 3 0x400000 0x4000080 fsleep syz-executor 70296 434034 3131 0 3 0x400000 0x4000080 fsleep syz-executor 11925 321035 78843 0 2 0 0 syz-executor 11925 125625 78843 0 3 0 0x4000080 fsleep syz-executor 11925 424395 78843 0 3 0 0x4000080 fsleep syz-executor 11925 136270 78843 0 3 0 0x4000080 fsleep syz-executor 11925 56064 78843 0 3 0 0x4000080 fsleep syz-executor 11925 183712 78843 0 3 0 0x4000080 fsleep syz-executor 74243 515277 42154 0 2 0 0 syz-executor 74243 242690 42154 0 2 0 0x4000000 syz-executor 74243 202651 42154 0 2 0 0x4000000 syz-executor 74243 367853 42154 0 3 0 0x4000080 fsleep syz-executor 43782 429824 48453 0 2 0 0 syz-executor 43782 247008 48453 0 3 0 0x4000080 fsleep syz-executor 43782 191102 48453 0 3 0 0x4000080 fsleep syz-executor 43782 241298 48453 0 3 0 0x4000080 fsleep syz-executor 932 285489 26112 0 2 0 0 syz-executor 932 63971 26112 0 3 0 0x4000080 fsleep syz-executor 89582 69143 24226 0 2 0 0 syz-executor 89582 328298 24226 0 3 0 0x4000080 fsleep syz-executor 75488 469044 25139 0 2 0 0 syz-executor 75488 496381 25139 0 2 0 0x4000000 syz-executor *75488 400309 25139 0 7 0 0x4000000 syz-executor 75488 327793 25139 0 3 0 0x4000080 fsleep syz-executor 39333 135322 7310 0 2 0 0 syz-executor 39333 115740 7310 0 3 0 0x4000080 fsleep syz-executor 39333 252676 7310 0 2 0 0x4000000 syz-executor 39333 29832 7310 0 3 0 0x4000080 fsleep syz-executor 78843 326451 99126 0 3 0x2 0x80 nanoslp syz-executor 7310 173670 99126 0 3 0x2 0x80 nanoslp syz-executor 4424 268616 0 0 3 0x14000 0x200 acct acct 42154 222318 99126 0 3 0x2 0x80 nanoslp syz-executor 51661 514027 0 0 3 0x14000 0x280 nfsidl nfsio 4789 34478 0 0 3 0x14000 0x280 nfsidl nfsio 83697 374260 0 0 3 0x14000 0x280 nfsidl nfsio 13245 314365 0 0 3 0x14000 0x280 nfsidl nfsio 69233 229060 0 0 3 0x14000 0x280 nfsidl nfsio 70354 517515 0 0 3 0x14000 0x280 nfsidl nfsio 71413 330295 0 0 3 0x14000 0x280 nfsidl nfsio 23509 516237 0 0 3 0x14000 0x280 nfsidl nfsio 53140 173986 0 0 3 0x14000 0x280 nfsidl nfsio 47342 341895 0 0 3 0x14000 0x280 nfsidl nfsio 54411 184536 0 0 3 0x14000 0x280 nfsidl nfsio 51118 112640 0 0 3 0x14000 0x280 nfsidl nfsio 27336 21013 0 0 3 0x14000 0x280 nfsidl nfsio 36498 484628 0 0 3 0x14000 0x280 nfsidl nfsio 30991 158281 0 0 3 0x14000 0x280 nfsidl nfsio 70793 491003 0 0 3 0x14000 0x280 nfsidl nfsio 51074 300235 0 0 3 0x14000 0x280 nfsidl nfsio 13628 6676 0 0 3 0x14000 0x280 nfsidl nfsio 13025 307433 0 0 3 0x14000 0x280 nfsidl nfsio 14485 293503 0 0 3 0x14000 0x280 nfsidl nfsio 48453 459811 99126 0 3 0x2 0x80 nanoslp syz-executor 24226 298051 99126 0 3 0x2 0x80 nanoslp syz-executor 25139 361711 99126 0 3 0x2 0x80 nanoslp syz-executor 3131 416130 99126 0 3 0x2 0x80 nanoslp syz-executor 26112 232066 99126 0 3 0x2 0x80 nanoslp syz-executor 99126 473227 5821 0 3 0x2 0x80 kqread syz-executor 5821 179192 32324 0 3 0x100002 0x88 sigsusp ksh 32324 131495 61813 0 3 0x10 0x88 kqread sshd-session 61813 310232 90855 0 3 0x12 0x80 kqread sshd-session 11935 339125 1 0 3 0x100003 0x80 ttyin getty 90855 209757 1 0 3 0 0x88 kqread sshd 65941 513974 61895 73 3 0x1100010 0x80 kqread syslogd 61895 368522 1 0 3 0x100002 0x80 sbwait syslogd-parent 26396 99021 1 0 3 0x100000 0x80 kqread resolvd 96408 72595 50831 77 3 0x100012 0x80 kqread dhcpleased 34819 315515 50831 77 3 0x100012 0x80 kqread dhcpleased 50831 426465 1 0 3 0 0x80 kqread dhcpleased 51347 335844 0 0 3 0x14000 0x200 bored smr 24193 481900 0 0 2 0x14000 0x200 zerothread 8899 44306 0 0 3 0x14000 0x200 aiodoned aiodoned 97063 502613 0 0 3 0x14000 0x200 syncer update 19056 95649 0 0 3 0x14000 0x200 cleaner cleaner 12182 298040 0 0 3 0x14000 0x200 reaper reaper 83495 44849 0 0 3 0x14000 0x200 pgdaemon pagedaemon 46462 294859 0 0 3 0x14000 0x200 bored viomb 684 302252 0 0 3 0x14000 0x40000200 acpi0 acpi0 52057 285609 0 0 3 0x14000 0x200 bored softnet0 75702 155310 0 0 3 0x14000 0x200 bored systqmp 89128 196226 0 0 3 0x14000 0x200 bored systq 54384 235995 0 0 3 0x14000 0x40000200 tmoslp softclock 92739 453613 0 0 3 0x14000 0x40000200 idle0 1 207394 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 11036 12122K 12183K 166960K 12192 0 pcb 17 12K 12K 166960K 40 0 rtable 237 6K 6K 166960K 485 0 pf 31 13K 17K 166960K 50 0 ifaddr 42 7K 7K 166960K 64 0 ifgroup 50 2K 2K 166960K 70 0 sysctl 1 1K 9K 166960K 5 0 counters 33 17K 18K 166960K 39 0 ioctlops 0 0K 4K 166960K 63 0 iov 0 0K 8K 166960K 3 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1296 82K 82K 166960K 1471 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 9 0K 0K 166960K 11 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 18 65K 236K 166960K 284 0 proc 59 59K 124K 166960K 619 0 subproc 72 4K 4K 166960K 108 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 99 6K 6K 166960K 143 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 9 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 440 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 246 157K 160K 166960K 4301 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 39 78K 96K 166960K 1479 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 3 0 NDP 13 0K 2K 166960K 41 0 temp 34 9114K 9178K 166960K 12740 0 kqueue 13 20K 24K 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 52 0 49 1 0 1 1 0 8 0 rtentry 136 155 0 45 4 0 4 4 0 8 0 unpcb 144 68 0 51 1 0 1 1 0 8 0 syncache 336 5 0 5 2 1 1 1 0 8 1 tcpqe 32 2 0 2 1 0 1 1 0 8 1 tcpcb 736 24 0 18 1 0 1 1 0 8 0 arp 96 26 0 8 1 0 1 1 0 8 0 inpcb 328 119 0 109 3 1 2 2 0 8 0 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 36 0 12 1 0 1 1 0 8 0 kcovpl 48 12 0 4 1 0 1 1 0 8 0 ppxss 1072 2 0 2 1 0 1 1 0 8 1 pfstscr 40 4 0 4 1 1 0 1 0 8 0 pfstkey 128 4 0 4 1 1 0 1 0 8 0 pfstate 384 2 0 2 1 1 0 1 0 8 0 pfrule 1360 2 0 2 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 631 0 176 32 0 32 32 0 8 3 art_table 40 632 0 176 6 0 6 6 0 8 0 art_node 32 155 0 55 1 0 1 1 0 8 0 semupl 112 2 0 2 1 0 1 1 0 8 1 semapl 72 9 0 2 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 1729 0 256 93 0 93 93 0 8 0 ffsino 256 1729 0 256 93 0 93 93 0 8 0 nchpl 144 2027 0 310 64 0 64 64 0 8 0 vnodes 216 1888 0 0 105 0 105 105 0 8 0 namei 1024 7216 0 7213 4 3 1 4 0 8 0 kstatmem 264 35 0 12 2 0 2 2 0 8 0 scxspl 216 7640 0 7640 3 2 1 3 1 8 1 plimitpl 152 44 0 28 1 0 1 1 0 8 0 sigapl 424 574 0 510 8 0 8 8 0 8 0 knotepl 120 6073 0 6026 17 7 10 10 0 8 8 kqueuepl 184 41 0 32 1 0 1 1 0 8 0 pipepl 304 141 0 114 3 0 3 3 0 8 0 fdescpl 448 540 0 510 5 1 4 5 0 8 0 filepl 120 2012 0 1800 9 0 9 9 0 8 2 lockfpl 104 103 0 100 1 0 1 1 0 8 0 lockfspl 48 17 0 14 1 0 1 1 0 8 0 sessionpl 144 28 0 20 1 0 1 1 0 8 0 pgrppl 48 40 0 24 1 0 1 1 0 8 0 ucredpl 104 157 0 146 1 0 1 1 0 8 0 zombiepl 144 564 0 564 1 0 1 1 0 8 1 processpl 1160 574 0 510 5 0 5 5 0 8 0 procpl 664 729 0 644 8 0 8 8 0 8 0 sockpl 552 241 0 211 4 1 3 3 0 8 0 mcl64k 65536 2 0 2 1 0 1 1 0 8 1 mcl16k 16384 2 0 2 1 0 1 1 0 8 1 mcl8k 8192 13 0 12 1 0 1 1 0 8 0 mcl4k 4096 2654 0 2598 15 5 10 15 0 8 2 mcl2k 2048 251 0 250 1 0 1 1 0 8 0 mextrefs 64 78 0 78 2 1 1 1 0 8 1 mtagpl 96 4 0 4 1 1 0 1 0 8 0 mbufpl 256 5353 0 5187 12 0 12 12 0 8 0 bufpl 272 2749 0 87 178 0 178 178 0 8 0 anonpl 24 99072 0 95854 47 1 46 46 0 187 15 amapchunkpl 152 49621 0 48881 50 8 42 42 0 158 6 amappl16 200 1755 0 1735 18 7 11 15 0 8 8 amappl15 192 2 0 2 1 1 0 1 0 8 0 amappl14 184 450 0 449 1 0 1 1 0 8 0 amappl13 176 121 0 111 1 0 1 1 0 8 0 amappl12 168 793 0 764 2 0 2 2 0 8 0 amappl11 160 2 0 2 1 1 0 1 0 8 0 amappl10 152 70 0 62 1 0 1 1 0 8 0 amappl9 144 278 0 277 1 0 1 1 0 8 0 amappl8 136 109 0 107 1 0 1 1 0 8 0 amappl7 128 150 0 140 1 0 1 1 0 8 0 amappl6 120 150 0 149 1 0 1 1 0 8 0 amappl5 112 162 0 156 1 0 1 1 0 8 0 amappl4 104 280 0 265 1 0 1 1 0 8 0 amappl3 96 2186 0 2055 4 0 4 4 0 8 0 amappl2 88 451 0 404 2 0 2 2 0 8 0 amappl1 80 10804 0 10244 14 1 13 14 0 8 1 amappl 88 3420 0 3236 5 0 5 5 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 540 0 510 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 540 0 510 1 0 1 1 0 8 0 vmmpekpl 168 5986 0 5931 3 0 3 3 0 8 0 vmmpepl 168 44931 0 43074 99 7 92 92 0 357 11 vmsppl 368 539 0 510 4 1 3 4 0 8 0 rwobjpl 40 15857 0 14885 13 0 13 13 0 8 1 pdppl 4096 1086 0 1020 118 50 68 82 0 8 2 pvpl 32 254120 0 245762 110 1 109 109 0 265 24 pmappl 216 539 0 510 3 0 3 3 0 8 1 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 569 0 63 15 0 15 15 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace sys_shmat(ffff80002a86f780,ffff80003c9bd480,ffff80003c9bd3d0) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80003c9bd480) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c9bd480) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x4193ce61bd0, count: -3 ddb> machine ddbcpu 1 No such command ddb> trace sys_shmat(ffff80002a86f780,ffff80003c9bd480,ffff80003c9bd3d0) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80003c9bd480) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c9bd480) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x4193ce61bd0, count: -3