uvm_fault(0xfffff9006d0bda20, 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 *459913 47409 0 0 0x4000000 0 syz-executor sys_shmat(ffff80002a726a68,ffff8000314ada50,ffff8000314ad9a0) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff8000314ada50) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000314ada50) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8918c4bd30, 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(0xfffff9006d0bda20, 0x0, 0, 1) -> e ddb> show kasan No such command ddb> trace sys_shmat(ffff80002a726a68,ffff8000314ada50,ffff8000314ad9a0) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff8000314ada50) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000314ada50) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8918c4bd30, count: -3 ddb> show registers rdi 0 rsi 0x2000 __ALIGN_SIZE+0x1000 rbp 0xffff8000314ad980 rbx 0 rdx 0 rcx 0 rax 0xfffff9006ddc7d98 r8 0x100 r9 0xfffff90007ffd820 r10 0x18b38a3bd757c427 r11 0x3ee20850b6ddeb9 r12 0xffff80002a726a68 r13 0xffff800001600000 r14 0 r15 0x1 rip 0xffffffff8299c477 sys_shmat+0x3d7 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff8000314ad8f0 ss 0x10 sys_shmat+0x3d7: movq 0(%r14),%rdi ddb> show proc PROC (syz-executor) tid=459913 pid=47409 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=50, usrpri=50, slppri=16, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a739a18,0xffff8000338bba20 process=0xffff8000338b3b00 user=0xffff8000314a8000, vmspace=0xfffff9006d0bda20 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 47409 145563 30521 0 2 0 0 syz-executor *47409 459913 30521 0 7 0 0x4000000 syz-executor 47409 50931 30521 0 2 0 0x4000000 syz-executor 10825 202089 71692 0 2 0 0 syz-executor 10825 334616 71692 0 3 0 0x4000080 kqread syz-executor 13630 277303 41381 0 2 0 0 syz-executor 13630 341910 41381 0 3 0 0x4000080 fsleep syz-executor 59355 235961 55822 0 2 0x2 0 syz-executor 34840 457738 49291 0 2 0 0 syz-executor 34840 9116 49291 0 3 0 0x4000080 fsleep syz-executor 34840 266376 49291 0 2 0 0x4000000 syz-executor 81762 261556 34904 0 2 0x2 0 arp 34904 498102 76416 0 3 0x100002 0x88 sigsusp sh 94301 230480 50878 0 2 0 0 syz-executor 94301 202936 50878 0 3 0 0x4000080 fsleep syz-executor 94301 1543 50878 0 3 0 0x4000080 fsleep syz-executor 94301 330343 50878 0 2 0 0x4000000 syz-executor 76416 209685 55822 0 3 0x2 0x80 wait syz-executor 30521 449600 55822 0 3 0x2 0x80 nanoslp syz-executor 50878 8903 55822 0 3 0x2 0x80 nanoslp syz-executor 49291 5907 55822 0 3 0x2 0x80 nanoslp syz-executor 80184 266363 55822 0 3 0x2 0x80 nanoslp syz-executor 71692 272243 55822 0 3 0x2 0x80 nanoslp syz-executor 41381 443647 55822 0 3 0x2 0x80 nanoslp syz-executor 55822 396266 61321 0 2 0x2 0 syz-executor 61321 160679 50146 0 3 0x100002 0x88 sigsusp ksh 50146 208534 34969 0 3 0x10 0x88 kqread sshd-session 34969 1883 52365 0 3 0x12 0x80 kqread sshd-session 93365 486587 1 0 3 0x100003 0x80 ttyin getty 52365 148939 1 0 3 0 0x88 kqread sshd 32090 122523 36072 73 3 0x1100010 0x80 kqread syslogd 36072 259572 1 0 3 0x100002 0x80 sbwait syslogd-parent 49995 179098 1 0 3 0x100000 0x80 kqread resolvd 65855 449292 98651 77 3 0x100012 0x80 kqread dhcpleased 48520 373527 98651 77 3 0x100012 0x80 kqread dhcpleased 98651 374196 1 0 3 0 0x80 kqread dhcpleased 51923 217925 0 0 3 0x14000 0x200 bored smr 25351 205006 0 0 2 0x14000 0x200 zerothread 17773 61039 0 0 3 0x14000 0x200 aiodoned aiodoned 41619 460735 0 0 3 0x14000 0x200 syncer update 32466 324377 0 0 3 0x14000 0x200 cleaner cleaner 9417 440538 0 0 3 0x14000 0x200 reaper reaper 12017 489680 0 0 3 0x14000 0x200 pgdaemon pagedaemon 425 233179 0 0 3 0x14000 0x200 bored viomb 38708 476368 0 0 3 0x14000 0x40000200 acpi0 acpi0 25731 97524 0 0 3 0x14000 0x200 bored softnet0 4722 210967 0 0 3 0x14000 0x200 bored systqmp 36791 503248 0 0 3 0x14000 0x200 bored systq 77859 215832 0 0 3 0x14000 0x40000200 tmoslp softclock 91065 394308 0 0 3 0x14000 0x40000200 idle0 1 458068 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 11028 12116K 12232K 166960K 12146 0 pcb 19 12K 12K 166960K 25 0 rtable 199 5K 6K 166960K 393 0 pf 28 12K 13K 166960K 38 0 ifaddr 36 6K 7K 166960K 52 0 ifgroup 46 2K 2K 166960K 62 0 sysctl 1 1K 9K 166960K 5 0 counters 32 17K 17K 166960K 37 0 ioctlops 0 0K 2K 166960K 32 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1292 81K 81K 166960K 1395 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 12 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 18 65K 228K 166960K 210 0 proc 59 59K 83K 166960K 556 0 subproc 63 3K 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 1 0 in_multi 78 5K 6K 166960K 113 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 43 201K 201K 166960K 43 0 exec 0 0K 1K 166960K 400 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 214 151K 158K 166960K 3343 0 UVM aobj 3 2K 2K 166960K 4 0 pinsyscall 40 80K 94K 166960K 1344 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 2 0 NDP 10 0K 1K 166960K 33 0 temp 31 9113K 9134K 166960K 3475 0 kqueue 14 22K 22K 166960K 32 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 40 0 36 1 0 1 1 0 8 0 rtentry 136 126 0 35 4 0 4 4 0 8 0 unpcb 144 51 0 36 1 0 1 1 0 8 0 syncache 336 4 0 4 1 1 0 1 0 8 0 tcpcb 736 17 0 13 1 0 1 1 0 8 0 arp 96 21 0 6 1 0 1 1 0 8 0 inpcb 328 86 0 77 1 0 1 1 0 8 0 nd6 112 28 0 10 1 0 1 1 0 8 0 kcovpl 48 10 0 3 1 0 1 1 0 8 0 ppxss 1072 2 0 2 2 1 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 502 0 134 29 0 29 29 0 8 2 art_table 40 503 0 134 5 0 5 5 0 8 0 art_node 32 126 0 43 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 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1622 0 155 92 0 92 92 0 8 0 ffsino 256 1622 0 155 92 0 92 92 0 8 0 nchpl 144 1861 0 161 64 0 64 64 0 8 0 vnodes 216 1735 0 0 97 0 97 97 0 8 0 namei 1024 6688 0 6688 2 1 1 2 0 8 1 kstatmem 264 31 0 10 2 0 2 2 0 8 0 scxspl 216 6262 0 6262 3 2 1 3 1 8 1 plimitpl 152 37 0 20 1 0 1 1 0 8 0 sigapl 424 481 0 438 6 0 6 6 0 8 1 knotepl 120 3253 0 3202 6 0 6 6 0 8 3 kqueuepl 184 30 0 20 1 0 1 1 0 8 0 pipepl 304 137 0 110 3 0 3 3 0 8 0 fdescpl 448 468 0 438 5 0 5 5 0 8 1 filepl 120 1685 0 1481 7 0 7 7 0 8 0 lockfpl 104 23 0 21 1 0 1 1 0 8 0 lockfspl 48 11 0 9 1 0 1 1 0 8 0 sessionpl 144 26 0 18 1 0 1 1 0 8 0 pgrppl 48 37 0 21 1 0 1 1 0 8 0 ucredpl 104 118 0 107 1 0 1 1 0 8 0 zombiepl 144 473 0 471 2 1 1 1 0 8 0 processpl 1160 481 0 438 4 0 4 4 0 8 0 procpl 664 560 0 506 6 0 6 6 0 8 1 sockpl 552 177 0 149 4 1 3 3 0 8 0 mcl64k 65536 2 0 2 1 0 1 1 0 8 1 mcl8k 8192 12 0 12 1 1 0 1 0 8 0 mcl4k 4096 2599 0 2545 15 7 8 15 0 8 1 mcl2k 2048 178 0 178 2 1 1 1 0 8 1 mextrefs 64 54 0 54 2 1 1 1 0 8 1 mtagpl 96 4 0 4 1 1 0 1 0 8 0 mbufpl 256 4716 0 4579 11 0 11 11 0 8 1 bufpl 272 2311 0 87 149 0 149 149 0 8 0 anonpl 24 94569 0 91469 23 3 20 22 0 187 0 amapchunkpl 152 9176 0 8743 21 0 21 21 0 158 3 amappl16 200 1633 0 1617 6 4 2 5 0 8 0 amappl15 192 1 0 1 1 1 0 1 0 8 0 amappl14 184 458 0 456 1 0 1 1 0 8 0 amappl13 176 126 0 115 1 0 1 1 0 8 0 amappl12 168 711 0 683 2 0 2 2 0 8 0 amappl11 160 7 0 7 1 1 0 1 0 8 0 amappl10 152 60 0 52 1 0 1 1 0 8 0 amappl9 144 278 0 278 1 1 0 1 0 8 0 amappl8 136 96 0 95 1 0 1 1 0 8 0 amappl7 128 162 0 151 1 0 1 1 0 8 0 amappl6 120 125 0 122 1 0 1 1 0 8 0 amappl5 112 134 0 128 1 0 1 1 0 8 0 amappl4 104 264 0 251 1 0 1 1 0 8 0 amappl3 96 1776 0 1671 4 0 4 4 0 8 1 amappl2 88 440 0 392 2 0 2 2 0 8 0 amappl1 80 10344 0 9773 13 1 12 13 0 8 0 amappl 88 2649 0 2500 4 0 4 4 0 92 0 uvmvnodes 80 100 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 4 0 1 1 0 1 1 0 8 0 uaddrrnd 24 468 0 438 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 468 0 438 1 0 1 1 0 8 0 vmmpekpl 168 5512 0 5473 2 0 2 2 0 8 0 vmmpepl 168 39430 0 37677 82 2 80 80 0 357 0 vmsppl 368 467 0 438 4 0 4 4 0 8 1 rwobjpl 40 14621 0 13683 11 1 10 11 0 8 0 pdppl 4096 942 0 876 90 22 68 78 0 8 2 pvpl 32 224946 0 216479 72 2 70 70 0 265 1 pmappl 216 467 0 438 2 0 2 2 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 502 0 35 14 0 14 14 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace sys_shmat(ffff80002a726a68,ffff8000314ada50,ffff8000314ad9a0) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff8000314ada50) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000314ada50) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8918c4bd30, count: -3 ddb> machine ddbcpu 1 No such command ddb> trace sys_shmat(ffff80002a726a68,ffff8000314ada50,ffff8000314ad9a0) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff8000314ada50) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000314ada50) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8918c4bd30, count: -3