uvm_fault(0xfffff3806cfd7e78, 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 *189066 67129 0 0 0x4000000 0 syz-executor sys_shmat(ffff80002a785a08,ffff80003c921600,ffff80003c921550) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80003c921600) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c921600) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x43dda463160, 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(0xfffff3806cfd7e78, 0x0, 0, 1) -> e ddb> show kasan No such command ddb> trace sys_shmat(ffff80002a785a08,ffff80003c921600,ffff80003c921550) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80003c921600) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c921600) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x43dda463160, count: -3 ddb> show registers rdi 0xffff8000340b0000 rsi 0x112 rbp 0xffff80003c921530 rbx 0 rdx 0x1 rcx 0x1 rax 0xfffff38069b3bf00 r8 0x180 r9 0xfffff38007ffd6e8 r10 0x5486d1d9647e1a20 r11 0x832f92b30b93e5f4 r12 0xffff80002a785a08 r13 0xffff8000015f7000 r14 0 r15 0x3 rip 0xffffffff8295fda7 sys_shmat+0x3d7 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c9214a0 ss 0x10 sys_shmat+0x3d7: movq 0(%r14),%rdi ddb> show proc PROC (syz-executor) tid=189066 pid=67129 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=72, usrpri=72, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a784a78,0xffffffff83a812a8 process=0xffff800036cc9238 user=0xffff80003c91c000, vmspace=0xfffff3806cfd7e78 estcpu=22, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 81485 409144 7602 0 2 0 0 syz-executor 81485 268805 7602 0 3 0 0x4000080 fsleep syz-executor 59781 424679 38519 0 2 0 0 syz-executor 59781 153362 38519 0 3 0 0x4000080 fsleep syz-executor 42224 226077 32056 60929 2 0x10 0 syz-executor 42224 206166 32056 60929 3 0x10 0x4000080 fsleep syz-executor 65811 235625 64977 0 2 0 0 syz-executor 65811 27238 64977 0 3 0 0x4000080 fsleep syz-executor 65811 473566 64977 0 3 0 0x4000080 fsleep syz-executor 62779 98980 52778 0 2 0 0 syz-executor 62779 486390 52778 0 3 0 0x4000080 fsleep syz-executor 62779 279676 52778 0 3 0 0x4000080 fsleep syz-executor 62779 457005 52778 0 3 0 0x4000080 fsleep syz-executor 62779 244119 52778 0 3 0 0x4000080 fsleep syz-executor 33048 73790 99141 0 2 0 0 syz-executor 33048 149688 99141 0 3 0 0x4000000 vmmaplk syz-executor 63486 517566 82876 0 2 0 0 syz-executor 63486 119113 82876 0 3 0 0x4000080 fsleep syz-executor 67129 434045 11039 0 2 0 0 syz-executor 67129 243043 11039 0 3 0 0x4000080 kqread syz-executor 67129 4736 11039 0 2 0 0x4000000 syz-executor *67129 189066 11039 0 7 0 0x4000000 syz-executor 99141 313587 68251 0 3 0x2 0x80 nanoslp syz-executor 7602 49881 68251 0 3 0x2 0x80 nanoslp syz-executor 32056 443833 68251 0 3 0x2 0x80 nanoslp syz-executor 11039 176390 68251 0 3 0x2 0x80 nanoslp syz-executor 38519 450503 68251 0 3 0x2 0x80 nanoslp syz-executor 82876 50110 68251 0 3 0x2 0x80 nanoslp syz-executor 64977 335765 68251 0 3 0x2 0x80 nanoslp syz-executor 52778 465433 68251 0 3 0x2 0x80 nanoslp syz-executor 68251 231284 79152 0 3 0x2 0x80 kqread syz-executor 79152 347119 97081 0 3 0x100002 0x88 sigsusp ksh 97081 321740 2053 0 3 0x10 0x88 kqread sshd-session 2053 196553 78031 0 3 0x12 0x80 kqread sshd-session 70660 257578 1 0 3 0x100003 0x80 ttyin getty 78031 270130 1 0 3 0 0x88 kqread sshd 65414 760 52369 73 3 0x1100010 0x80 kqread syslogd 52369 67630 1 0 3 0x100002 0x80 sbwait syslogd-parent 4435 263306 1 0 3 0x100000 0x80 kqread resolvd 55457 148902 37587 77 3 0x100012 0x80 kqread dhcpleased 37458 286222 37587 77 3 0x100012 0x80 kqread dhcpleased 37587 290738 1 0 3 0 0x80 kqread dhcpleased 69933 452682 0 0 3 0x14000 0x200 bored smr 55787 91309 0 0 2 0x14000 0x200 zerothread 83226 160016 0 0 3 0x14000 0x200 aiodoned aiodoned 26372 305965 0 0 3 0x14000 0x200 syncer update 31561 156109 0 0 3 0x14000 0x200 cleaner cleaner 98567 363016 0 0 3 0x14000 0x200 reaper reaper 13870 78518 0 0 3 0x14000 0x200 pgdaemon pagedaemon 41494 310007 0 0 3 0x14000 0x200 bored viomb 28540 122097 0 0 3 0x14000 0x40000200 acpi0 acpi0 14323 37824 0 0 3 0x14000 0x200 bored softnet0 46531 338210 0 0 3 0x14000 0x200 bored systqmp 92324 61745 0 0 3 0x14000 0x200 bored systq 91157 443220 0 0 3 0x14000 0x40000200 tmoslp softclock 78709 491994 0 0 3 0x14000 0x40000200 idle0 1 18233 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 11025 12102K 12119K 166960K 12118 0 pcb 17 12K 12K 166960K 19 0 rtable 237 6K 6K 166960K 349 0 pf 30 12K 12K 166960K 30 0 ifaddr 42 7K 7K 166960K 44 0 ifgroup 50 2K 2K 166960K 50 0 sysctl 3 1K 9K 166960K 7 0 counters 33 17K 17K 166960K 33 0 ioctlops 0 0K 2K 166960K 32 0 iov 0 0K 0K 166960K 1 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1288 81K 81K 166960K 1363 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 3 0K 0K 166960K 3 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 18 65K 81K 166960K 152 0 proc 61 67K 83K 166960K 499 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 5 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 31 148K 148K 166960K 31 0 exec 0 0K 1K 166960K 366 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 233 143K 149K 166960K 3117 0 UVM aobj 4 2K 2K 166960K 4 0 pinsyscall 39 78K 88K 166960K 1226 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 1 0 NDP 11 0K 2K 166960K 27 0 temp 35 9114K 9122K 166960K 4552 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 37 0 34 1 0 1 1 0 8 0 rtentry 136 111 0 1 4 0 4 4 0 8 0 unpcb 144 41 0 25 1 0 1 1 0 8 0 syncache 336 4 0 4 1 1 0 1 0 8 0 tcpcb 736 9 0 4 1 0 1 1 0 8 0 arp 96 18 0 0 1 0 1 1 0 8 0 inpcb 328 64 0 56 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 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 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 72 1 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 1586 0 122 92 0 92 92 0 8 0 ffsino 256 1586 0 122 92 0 92 92 0 8 0 nchpl 144 1801 0 107 63 0 63 63 0 8 0 vnodes 216 1672 0 0 93 0 93 93 0 8 0 namei 1024 5891 0 5891 4 3 1 3 0 8 1 kstatmem 264 23 0 0 2 0 2 2 0 8 0 scxspl 216 6117 0 6117 4 3 1 4 1 8 1 plimitpl 152 31 0 15 1 0 1 1 0 8 0 sigapl 424 433 0 390 6 0 6 6 0 8 1 knotepl 120 2924 0 2877 4 0 4 4 0 8 2 kqueuepl 184 31 0 20 1 0 1 1 0 8 0 pipepl 304 121 0 94 3 0 3 3 0 8 0 fdescpl 448 420 0 390 4 0 4 4 0 8 0 filepl 120 1444 0 1235 7 0 7 7 0 8 0 lockfpl 104 10 0 8 1 0 1 1 0 8 0 lockfspl 48 6 0 4 1 0 1 1 0 8 0 sessionpl 144 25 0 17 1 0 1 1 0 8 0 pgrppl 48 34 0 18 1 0 1 1 0 8 0 ucredpl 104 88 0 76 1 0 1 1 0 8 0 zombiepl 144 404 0 404 1 0 1 1 0 8 1 processpl 1160 433 0 390 4 0 4 4 0 8 0 procpl 664 476 0 419 5 0 5 5 0 8 0 sockpl 552 142 0 115 4 1 3 3 0 8 0 mcl8k 8192 12 0 12 1 1 0 1 0 8 0 mcl4k 4096 2570 0 2516 15 6 9 15 0 8 0 mcl2k 2048 134 0 134 3 1 2 2 0 8 2 mextrefs 64 63 0 63 2 1 1 1 0 8 1 mtagpl 96 3 0 3 1 1 0 1 0 8 0 mbufpl 256 4438 0 4279 13 1 12 12 0 8 0 bufpl 272 2291 0 85 148 0 148 148 0 8 0 anonpl 24 87401 0 84352 23 3 20 21 0 187 1 amapchunkpl 152 8483 0 7978 20 0 20 20 0 158 0 amappl16 200 1458 0 1442 5 4 1 5 0 8 0 amappl15 192 50 0 50 1 1 0 1 0 8 0 amappl14 184 452 0 451 1 0 1 1 0 8 0 amappl13 176 111 0 100 1 0 1 1 0 8 0 amappl12 168 650 0 621 2 0 2 2 0 8 0 amappl11 160 2 0 2 1 1 0 1 0 8 0 amappl10 152 58 0 50 1 0 1 1 0 8 0 amappl9 144 292 0 292 1 1 0 1 0 8 0 amappl8 136 85 0 83 1 0 1 1 0 8 0 amappl7 128 139 0 129 1 0 1 1 0 8 0 amappl6 120 119 0 118 1 0 1 1 0 8 0 amappl5 112 125 0 119 1 0 1 1 0 8 0 amappl4 104 259 0 245 1 0 1 1 0 8 0 amappl3 96 1524 0 1404 3 0 3 3 0 8 0 amappl2 88 432 0 386 2 0 2 2 0 8 0 amappl1 80 9787 0 9237 14 1 13 13 0 8 1 amappl 88 2468 0 2296 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 420 0 390 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 420 0 390 1 0 1 1 0 8 0 vmmpekpl 168 5125 0 5097 2 0 2 2 0 8 0 vmmpepl 168 36296 0 34494 80 0 80 80 0 357 1 vmsppl 368 419 0 390 4 0 4 4 0 8 1 rwobjpl 40 13587 0 12661 11 0 11 11 0 8 1 pdppl 4096 846 0 780 90 22 68 74 0 8 2 pvpl 32 208745 0 200662 76 1 75 75 0 265 4 pmappl 216 419 0 390 2 0 2 2 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 504 0 37 14 0 14 14 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace sys_shmat(ffff80002a785a08,ffff80003c921600,ffff80003c921550) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80003c921600) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c921600) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x43dda463160, count: -3 ddb> machine ddbcpu 1 No such command ddb> trace sys_shmat(ffff80002a785a08,ffff80003c921600,ffff80003c921550) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80003c921600) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c921600) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x43dda463160, count: -3