uvm_fault(0xfffff5806d0a25d0, 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 *321212 61882 0 0 0x4000000 0 syz-executor sys_shmat(ffff80002a784a78,ffff80003c9396e0,ffff80003c939630) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80003c9396e0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c9396e0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x52b8cf97ec0, 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(0xfffff5806d0a25d0, 0x0, 0, 1) -> e ddb> show kasan No such command ddb> trace sys_shmat(ffff80002a784a78,ffff80003c9396e0,ffff80003c939630) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80003c9396e0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c9396e0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x52b8cf97ec0, count: -3 ddb> show registers rdi 0xffff80003a8ea000 rsi 0x442 rbp 0xffff80003c939610 rbx 0 rdx 0x1 rcx 0x1 rax 0xfffff58007f27e88 r8 0x180 r9 0xfffff58007ffd9c0 r10 0x8c2ed005a18f0302 r11 0x16e20acdf50d178e r12 0xffff80002a784a78 r13 0xffff8000015ec000 r14 0 r15 0x3 rip 0xffffffff8145e837 sys_shmat+0x3d7 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c939580 ss 0x10 sys_shmat+0x3d7: movq 0(%r14),%rdi ddb> show proc PROC (syz-executor) tid=321212 pid=61882 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=51, usrpri=51, slppri=36, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a785770,0xffffffff83ace8d8 process=0xffff80003a8c84a0 user=0xffff80003c934000, vmspace=0xfffff5806d0a25d0 estcpu=1, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 32886 457771 56456 0 2 0x100002 0 sh 50529 167525 49613 0 2 0 0 syz-executor 50529 377605 49613 0 3 0 0x4000080 fsleep syz-executor 50529 396985 49613 0 3 0 0x4000080 fsleep syz-executor 61882 123623 63788 0 2 0 0 syz-executor 61882 111894 63788 0 2 0 0x4000000 syz-executor *61882 321212 63788 0 7 0 0x4000000 syz-executor 3844 107251 86932 0 2 0 0 syz-executor 3844 444101 86932 0 3 0 0x4000080 fsleep syz-executor 3844 466608 86932 0 3 0 0x4000080 fsleep syz-executor 86020 78147 76436 0 2 0 0 syz-executor 86020 350752 76436 0 3 0 0x4000080 fsleep syz-executor 86020 184464 76436 0 3 0 0x4000080 fsleep syz-executor 36597 154139 86612 0 4 0x2000 0x80000 syz-executor 36597 40143 86612 0 4 0x2000 0x4080000 syz-executor 36597 36934 86612 0 4 0x2000 0x4080000 syz-executor 36597 267181 86612 0 2 0x2000 0x4000000 syz-executor 56456 436757 98801 0 3 0x2 0x80 wait syz-executor 63788 45497 98801 0 3 0x2 0x80 nanoslp syz-executor 22493 244058 98801 0 3 0x2 0x80 nanoslp syz-executor 44699 398791 98801 0 2 0x2 0 syz-executor 86932 392883 98801 0 3 0x2 0x80 nanoslp syz-executor 76436 16480 98801 0 3 0x2 0x80 nanoslp syz-executor 49613 98976 98801 0 3 0x2 0x80 nanoslp syz-executor 86612 257693 98801 0 3 0x2 0x80 nanoslp syz-executor 98801 384393 5909 0 2 0x2 0 syz-executor 5909 64589 14234 0 3 0x100002 0x88 sigsusp ksh 14234 515854 35498 0 3 0x10 0x88 kqread sshd-session 35498 449076 72979 0 3 0x12 0x80 kqread sshd-session 54254 240405 1 0 3 0x100003 0x80 ttyin getty 72979 469479 1 0 3 0 0x88 kqread sshd 26089 75023 62754 73 3 0x1100010 0x80 kqread syslogd 62754 424143 1 0 3 0x100002 0x80 sbwait syslogd-parent 28878 135154 1 0 3 0x100000 0x80 kqread resolvd 88711 473055 45915 77 3 0x100012 0x80 kqread dhcpleased 43630 366445 45915 77 3 0x100012 0x80 kqread dhcpleased 45915 197803 1 0 3 0 0x80 kqread dhcpleased 31688 159262 0 0 3 0x14000 0x200 bored smr 36401 412117 0 0 2 0x14000 0x200 zerothread 25056 2187 0 0 3 0x14000 0x200 aiodoned aiodoned 74660 491866 0 0 3 0x14000 0x200 syncer update 96319 434239 0 0 3 0x14000 0x200 cleaner cleaner 20085 500384 0 0 2 0x14000 0x200 reaper 35636 392059 0 0 3 0x14000 0x200 pgdaemon pagedaemon 25710 123746 0 0 3 0x14000 0x200 bored viomb 88423 176041 0 0 3 0x14000 0x40000200 acpi0 acpi0 6049 59779 0 0 3 0x14000 0x200 bored softnet0 97182 450146 0 0 3 0x14000 0x200 bored systqmp 85571 470163 0 0 3 0x14000 0x200 bored systq 90401 247783 0 0 3 0x14000 0x40000200 tmoslp softclock 61912 267249 0 0 3 0x14000 0x40000200 idle0 1 272467 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 12122K 12128K 166960K 12139 0 pcb 18 12K 12K 166960K 19 0 rtable 215 5K 6K 166960K 354 0 pf 32 13K 13K 166960K 36 0 ifaddr 40 6K 7K 166960K 46 0 ifgroup 52 2K 2K 166960K 56 0 sysctl 1 1K 9K 166960K 5 0 counters 34 17K 17K 166960K 35 0 ioctlops 0 0K 4K 166960K 37 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1293 81K 81K 166960K 1377 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 1K 166960K 6 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 17 61K 93K 166960K 159 0 proc 59 67K 108K 166960K 507 0 subproc 72 4K 4K 166960K 81 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 in_multi 88 5K 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 43 201K 201K 166960K 43 0 exec 0 0K 1K 166960K 376 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 211 151K 163K 166960K 3028 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 38 76K 96K 166960K 1259 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 12 0K 2K 166960K 29 0 temp 34 9114K 9121K 166960K 3265 0 kqueue 14 22K 24K 166960K 30 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 37 1 0 1 1 0 8 0 rtentry 136 111 0 12 4 0 4 4 0 8 0 unpcb 144 50 0 35 1 0 1 1 0 8 0 syncache 336 4 0 4 1 1 0 1 0 8 0 tcpcb 736 12 0 8 1 0 1 1 0 8 0 arp 96 18 0 2 1 0 1 1 0 8 0 inpcb 328 71 0 63 2 1 1 2 0 8 0 nd6 112 24 0 3 1 0 1 1 0 8 0 kcovpl 48 9 0 1 1 0 1 1 0 8 0 ppxss 1072 1 0 0 1 0 1 1 0 8 0 pfosfp 40 1 0 0 1 0 1 1 0 8 0 pfosfpen 112 1 0 0 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 453 0 44 29 2 27 29 0 8 0 art_table 40 454 0 44 5 0 5 5 0 8 0 art_node 32 111 0 21 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 1593 0 124 92 0 92 92 0 8 0 ffsino 256 1593 0 124 92 0 92 92 0 8 0 nchpl 144 1808 0 111 64 1 63 64 0 8 0 vnodes 216 1691 0 0 94 0 94 94 0 8 0 namei 1024 6004 0 6001 3 2 1 3 0 8 0 kstatmem 264 27 0 2 2 0 2 2 0 8 0 scxspl 216 6164 0 6164 3 2 1 3 1 8 1 plimitpl 152 32 0 16 1 0 1 1 0 8 0 sigapl 424 444 0 401 6 1 5 6 0 8 0 knotepl 120 2612 0 2561 2 0 2 2 0 8 0 kqueuepl 184 27 0 16 1 0 1 1 0 8 0 pipepl 304 128 0 100 3 0 3 3 0 8 0 fdescpl 448 431 0 402 5 1 4 5 0 8 0 filepl 120 1506 0 1287 7 0 7 7 0 8 0 lockfpl 104 13 0 9 1 0 1 1 0 8 0 lockfspl 48 8 0 4 1 0 1 1 0 8 0 sessionpl 144 27 0 18 1 0 1 1 0 8 0 pgrppl 48 36 0 19 1 0 1 1 0 8 0 ucredpl 104 89 0 78 1 0 1 1 0 8 0 zombiepl 144 405 0 404 2 1 1 1 0 8 0 processpl 1160 444 0 401 4 0 4 4 0 8 0 procpl 664 482 0 426 5 0 5 5 0 8 0 sockpl 552 163 0 136 4 1 3 3 0 8 0 mcl8k 8192 13 0 13 1 1 0 1 0 8 0 mcl4k 4096 2580 0 2528 15 8 7 15 0 8 0 mcl2k 2048 142 0 140 2 1 1 2 0 8 0 mextrefs 64 53 0 51 1 0 1 1 0 8 0 mtagpl 96 4 0 4 1 1 0 1 0 8 0 mbufpl 256 4537 0 4397 11 1 10 11 0 8 0 bufpl 272 2327 0 86 150 0 150 150 0 8 0 anonpl 24 91713 0 88714 32 12 20 32 0 187 0 amapchunkpl 152 8646 0 8212 25 6 19 24 0 158 0 amappl16 200 1545 0 1528 5 3 2 5 0 8 0 amappl15 192 3 0 3 1 1 0 1 0 8 0 amappl14 184 404 0 402 1 0 1 1 0 8 0 amappl13 176 114 0 104 1 0 1 1 0 8 0 amappl12 168 677 0 650 2 0 2 2 0 8 0 amappl11 160 42 0 41 1 0 1 1 0 8 0 amappl10 152 69 0 61 1 0 1 1 0 8 0 amappl9 144 292 0 290 1 0 1 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 131 0 129 1 0 1 1 0 8 0 amappl5 112 127 0 121 1 0 1 1 0 8 0 amappl4 104 267 0 252 1 0 1 1 0 8 0 amappl3 96 1579 0 1473 3 0 3 3 0 8 0 amappl2 88 434 0 388 2 0 2 2 0 8 0 amappl1 80 10005 0 9463 14 1 13 14 0 8 0 amappl 88 2364 0 2216 4 0 4 4 0 92 0 uvmvnodes 80 99 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 431 0 402 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 431 0 402 1 0 1 1 0 8 0 vmmpekpl 168 5230 0 5192 2 0 2 2 0 8 0 vmmpepl 168 37143 0 35448 81 3 78 80 0 357 0 vmsppl 368 430 0 401 4 1 3 4 0 8 0 rwobjpl 40 13871 0 12951 11 0 11 11 0 8 0 pdppl 4096 868 0 802 92 24 68 80 0 8 2 pvpl 32 213070 0 205303 85 17 68 85 0 265 0 pmappl 216 430 0 401 3 0 3 3 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 505 0 44 15 0 15 15 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace sys_shmat(ffff80002a784a78,ffff80003c9396e0,ffff80003c939630) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80003c9396e0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c9396e0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x52b8cf97ec0, count: -3 ddb> machine ddbcpu 1 No such command ddb> trace sys_shmat(ffff80002a784a78,ffff80003c9396e0,ffff80003c939630) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80003c9396e0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c9396e0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x52b8cf97ec0, count: -3