uvm_fault(0xfffffc8079d76018, 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 *468176 51868 0 0 0x4000000 0 syz-executor sys_shmat(ffff80002a77a2b8,ffff80002ecfbe40,ffff80002ecfbd90) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80002ecfbe40) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002ecfbe40) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x1ad4add5a70, 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(0xfffffc8079d76018, 0x0, 0, 1) -> e ddb> show kasan No such command ddb> trace sys_shmat(ffff80002a77a2b8,ffff80002ecfbe40,ffff80002ecfbd90) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80002ecfbe40) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002ecfbe40) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x1ad4add5a70, count: -3 ddb> show registers rdi 0xffff800033cc6000 rsi 0x112 rbp 0xffff80002ecfbd70 rbx 0 rdx 0x1 rcx 0x1 rax 0xfffffc806c67ef00 r8 0x180 r9 0xfffffc8007ffd6e8 r10 0x65bcae9e15fcd9d5 r11 0x3d97629bef51c434 r12 0xffff80002a77a2b8 r13 0xffff8000015f4000 r14 0 r15 0x3 rip 0xffffffff82693e17 sys_shmat+0x3d7 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80002ecfbce0 ss 0 sys_shmat+0x3d7: movq 0(%r14),%rdi ddb> show proc PROC (syz-executor) tid=468176 pid=51868 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=80, usrpri=81, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a77a7e8,0xffff80002a77b4f0 process=0xffff8000314b31f0 user=0xffff80002ecf6000, vmspace=0xfffffc8079d76018 estcpu=31, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 54023 283646 23005 0 2 0 0 syz-executor 54023 429366 23005 0 2 0 0x4000000 syz-executor 54023 303105 23005 0 2 0 0x4000000 syz-executor 51868 486545 37288 0 2 0 0 syz-executor 51868 126982 37288 0 2 0 0x4000000 syz-executor *51868 468176 37288 0 7 0 0x4000000 syz-executor 62692 514477 98558 0 2 0 0 syz-executor 62692 99524 98558 0 2 0 0x4000000 syz-executor 62692 340107 98558 0 3 0 0x4000000 inode syz-executor 3549 406265 5412 60929 2 0x10 0 syz-executor 3549 516971 5412 60929 3 0x10 0x4000080 fsleep syz-executor 3549 471125 5412 60929 2 0x10 0x4000000 syz-executor 88559 140919 43010 0 2 0 0 syz-executor 88559 103483 43010 0 2 0 0x4000000 syz-executor 88559 153756 43010 0 2 0 0x4000000 syz-executor 85793 309605 86790 0 2 0 0 syz-executor 85793 429763 86790 0 2 0 0x4000000 syz-executor 85793 167821 86790 0 2 0 0x4000000 syz-executor 85793 206614 86790 0 2 0 0x4000000 syz-executor 97005 142888 53418 0 2 0x100002 0 sh 64950 60764 27982 0 2 0 0 syz-executor 64950 385629 27982 0 3 0 0x4000080 fsleep syz-executor 53418 196884 94365 0 3 0x2 0x80 wait syz-executor 5412 104305 94365 0 3 0x2 0x1 inode syz-executor 98558 444989 94365 0 3 0x2 0x1 inode syz-executor 23005 115655 94365 0 3 0x2 0x1 inode syz-executor 27982 177049 94365 0 3 0x2 0x1 inode syz-executor 37288 115297 94365 0 3 0x2 0x1 inode syz-executor 43010 290362 94365 0 3 0x2 0x1 inode syz-executor 86790 283070 94365 0 2 0x2 0x1 syz-executor 94365 506626 37192 0 3 0x2 0x80 kqread syz-executor 37192 137670 80771 0 3 0x100002 0x88 sigsusp ksh 80771 142534 20215 0 3 0x10 0x88 kqread sshd-session 20215 361270 36253 0 3 0x12 0x80 kqread sshd-session 75146 55429 1 0 3 0x100003 0x80 ttyin getty 36253 306370 1 0 3 0 0x88 kqread sshd 12117 49659 28328 73 3 0x1100010 0x80 kqread syslogd 28328 254288 1 0 3 0x100002 0x80 sbwait syslogd-parent 53595 244555 1 0 3 0x100000 0x80 kqread resolvd 40854 514041 68005 77 3 0x100012 0x80 kqread dhcpleased 16990 499984 68005 77 3 0x100012 0x80 kqread dhcpleased 68005 290824 1 0 3 0 0x80 kqread dhcpleased 42455 78845 0 0 3 0x14000 0x200 bored smr 11645 126345 0 0 2 0x14000 0x200 zerothread 62884 254829 0 0 3 0x14000 0x200 aiodoned aiodoned 57921 413895 0 0 3 0x14000 0x200 syncer update 46575 115400 0 0 3 0x14000 0x200 cleaner cleaner 36220 167927 0 0 3 0x14000 0x200 reaper reaper 50692 285461 0 0 3 0x14000 0x200 pgdaemon pagedaemon 63265 307421 0 0 3 0x14000 0x200 bored viomb 38738 36801 0 0 3 0x14000 0x40000200 acpi0 acpi0 16566 20813 0 0 3 0x14000 0x200 bored softnet0 61103 147737 0 0 3 0x14000 0x200 bored systqmp 42388 306117 0 0 3 0x14000 0x200 bored systq 34037 225900 0 0 3 0x14000 0x40000200 tmoslp softclock 49063 238902 0 0 3 0x14000 0x40000200 idle0 1 367872 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 11032 12103K 12185K 166960K 12187 0 pcb 17 12K 12K 166960K 38 0 rtable 167 5K 7K 166960K 384 0 pf 30 12K 18K 166960K 102 0 ifaddr 33 5K 7K 166960K 51 0 ifgroup 50 2K 2K 166960K 64 0 sysctl 3 1K 9K 166960K 11 0 counters 33 17K 17K 166960K 37 0 ioctlops 0 0K 4K 166960K 51 0 iov 0 0K 2K 166960K 7 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1299 82K 82K 166960K 1453 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 9 0K 0K 166960K 11 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12472 0 file desc 19 69K 85K 166960K 258 0 sigio 0 0K 0K 166960K 1 0 proc 59 59K 75K 166960K 549 0 subproc 72 4K 4K 166960K 90 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 19 0 in_multi 66 4K 6K 166960K 115 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 11 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 61 281K 281K 166960K 61 0 exec 0 0K 1K 166960K 397 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 224 143K 161K 166960K 3934 0 UVM aobj 4 2K 4K 166960K 6 0 pinsyscall 40 80K 91K 166960K 1398 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 6 0 NDP 11 0K 2K 166960K 33 0 temp 42 9114K 9180K 166960K 12448 0 kqueue 13 20K 34K 166960K 48 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 42 0 39 1 0 1 1 0 8 0 rtentry 136 124 0 46 4 0 4 4 0 8 0 unpcb 144 93 0 78 1 0 1 1 0 8 0 syncache 336 5 0 5 1 1 0 1 0 8 0 tcpcb 736 23 0 19 1 0 1 1 0 8 0 arp 96 20 0 8 1 0 1 1 0 8 0 inpcb 328 131 0 124 2 0 2 2 0 8 1 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 29 0 13 1 0 1 1 0 8 0 kcovpl 48 10 0 2 1 0 1 1 0 8 0 ppxss 1072 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 498 0 178 29 0 29 29 0 8 6 art_table 40 499 0 178 5 0 5 5 0 8 0 art_node 32 124 0 53 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 1 1 0 1 1 0 8 0 semapl 72 9 0 2 1 0 1 1 0 8 0 shmpl 120 2 0 1 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1750 0 285 92 0 92 92 0 8 0 ffsino 256 1751 0 285 92 0 92 92 0 8 0 nchpl 144 2142 0 445 64 0 64 64 0 8 0 vnodes 216 1896 0 0 106 0 106 106 0 8 0 namei 1024 7213 0 7207 3 2 1 2 0 8 0 vcpupl 3968 16 0 16 2 0 2 2 0 8 2 vmpool 808 1 0 1 1 0 1 1 0 8 1 kstatmem 264 31 0 8 2 0 2 2 0 8 0 scsiplug 72 1 0 1 1 0 1 1 0 8 1 scxspl 216 7033 0 7033 4 3 1 4 1 8 1 plimitpl 152 45 0 28 1 0 1 1 0 8 0 sigapl 424 544 0 500 6 1 5 6 0 8 0 knotepl 120 6622 0 6574 18 8 10 11 0 8 8 kqueuepl 184 64 0 54 2 1 1 2 0 8 0 pipepl 304 136 0 109 3 0 3 3 0 8 0 fdescpl 448 531 0 500 4 0 4 4 0 8 0 filepl 120 1972 0 1763 8 0 8 8 0 8 0 lockfpl 104 58 0 56 1 0 1 1 0 8 0 lockfspl 48 23 0 21 1 0 1 1 0 8 0 sessionpl 144 29 0 21 1 0 1 1 0 8 0 pgrppl 48 40 0 24 1 0 1 1 0 8 0 ucredpl 104 201 0 189 1 0 1 1 0 8 0 zombiepl 144 553 0 553 1 0 1 1 0 8 1 processpl 1160 544 0 500 4 0 4 4 0 8 0 procpl 664 723 0 665 6 0 6 6 0 8 1 sockpl 552 268 0 243 4 0 4 4 0 8 2 mcl64k 65536 29 0 29 2 1 1 1 0 8 1 mcl16k 16384 8 0 8 2 1 1 1 0 8 1 mcl12k 12288 5 0 5 2 1 1 1 0 8 1 mcl8k 8192 25 0 24 1 0 1 1 0 8 0 mcl4k 4096 2736 0 2683 14 6 8 14 0 8 0 mcl2k 2048 234 0 233 2 0 2 2 0 8 1 mextrefs 64 146 0 146 2 1 1 1 0 8 1 mtagpl 96 4 0 4 1 1 0 1 0 8 0 mbufpl 256 5539 0 5403 12 0 12 12 0 8 0 bufpl 272 2607 0 87 168 0 168 168 0 8 0 anonpl 24 96415 0 93239 32 11 21 32 0 187 0 amapchunkpl 152 11508 0 11040 30 3 27 27 0 158 9 amappl16 200 1481 0 1457 5 3 2 5 0 8 0 amappl15 192 8 0 7 1 0 1 1 0 8 0 amappl14 184 422 0 419 1 0 1 1 0 8 0 amappl13 176 117 0 107 1 0 1 1 0 8 0 amappl12 168 775 0 746 2 0 2 2 0 8 0 amappl11 160 5 0 5 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 95 0 94 1 0 1 1 0 8 0 amappl7 128 193 0 183 1 0 1 1 0 8 0 amappl6 120 124 0 122 1 0 1 1 0 8 0 amappl5 112 157 0 151 1 0 1 1 0 8 0 amappl4 104 273 0 260 1 0 1 1 0 8 0 amappl3 96 2169 0 2057 4 0 4 4 0 8 1 amappl2 88 455 0 407 2 0 2 2 0 8 0 amappl1 80 10429 0 9875 12 0 12 12 0 8 0 amappl 88 3223 0 3062 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 7 0 7 2 1 1 1 0 8 1 dma128 128 254 0 254 2 1 1 1 0 8 1 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 8 0 8 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 5 0 2 1 0 1 1 0 8 0 uaddrrnd 24 531 0 500 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 531 0 500 1 0 1 1 0 8 0 vmmpekpl 168 5907 0 5867 3 0 3 3 0 8 0 vmmpepl 168 42885 0 41077 81 0 81 81 0 357 2 vmsppl 368 530 0 500 4 1 3 4 0 8 0 rwobjpl 40 14961 0 14020 10 0 10 10 0 8 0 pdppl 4096 1070 0 1002 90 22 68 76 0 8 0 pvpl 32 249283 0 240708 99 18 81 95 0 265 2 pmappl 216 531 0 501 2 0 2 2 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 526 0 36 14 0 14 14 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace sys_shmat(ffff80002a77a2b8,ffff80002ecfbe40,ffff80002ecfbd90) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80002ecfbe40) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002ecfbe40) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x1ad4add5a70, count: -3 ddb> machine ddbcpu 1 No such command ddb> trace sys_shmat(ffff80002a77a2b8,ffff80002ecfbe40,ffff80002ecfbd90) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80002ecfbe40) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002ecfbe40) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x1ad4add5a70, count: -3