uvm_fault(0xfffff5806d0b78b0, 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 * 76222 97321 0 0 0x4000000 0 syz-executor sys_shmat(ffff80003c8f1a10,ffff80002cc9ddb0,ffff80002cc9dd00) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80002cc9ddb0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002cc9ddb0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x15bdb64eb00, 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(0xfffff5806d0b78b0, 0x0, 0, 1) -> e ddb> show kasan No such command ddb> trace sys_shmat(ffff80003c8f1a10,ffff80002cc9ddb0,ffff80002cc9dd00) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80002cc9ddb0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002cc9ddb0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x15bdb64eb00, count: -3 ddb> show registers rdi 0 rsi 0x2000 __ALIGN_SIZE+0x1000 rbp 0xffff80002cc9dce0 rbx 0 rdx 0x1 rcx 0x1 rax 0xfffff5806d3a6e10 r8 0x180 r9 0xfffff58007ffd6e8 r10 0 r11 0x9b930cc1db5438a9 r12 0xffff80003c8f1a10 r13 0xffff8000015f2000 r14 0 r15 0x3 rip 0xffffffff81166ec7 sys_shmat+0x3d7 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80002cc9dc50 ss 0x10 sys_shmat+0x3d7: movq 0(%r14),%rdi ddb> show proc PROC (syz-executor) tid=76222 pid=97321 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=53, usrpri=53, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003c8f07e8,0xffff80003c8f0a90 process=0xffff80003a4c8018 user=0xffff80002cc98000, vmspace=0xfffff5806d0b78b0 estcpu=3, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 31247 94743 91492 0 2 0 0 syz-executor 31247 149344 91492 0 3 0 0x4000080 fsleep syz-executor 57210 86877 13624 0 2 0 0 syz-executor 57210 179048 13624 0 3 0 0x4000080 fifor syz-executor 57210 432111 13624 0 2 0 0x4000000 syz-executor 4190 113757 41081 0 2 0x40 0 syz-executor 97321 65300 61699 0 2 0 0 syz-executor 97321 106114 61699 0 3 0 0x4000080 pipewr syz-executor *97321 76222 61699 0 7 0 0x4000000 syz-executor 97321 130166 61699 0 2 0 0x4000000 syz-executor 69015 366878 32243 0 2 0x10 0 syz-executor 69015 453627 32243 0 3 0x10 0x4000080 fsleep syz-executor 37369 179650 57611 0 2 0 0 syz-executor 66108 408414 66455 0 2 0 0 syz-executor 66108 477842 66455 0 3 0 0x4000080 fsleep syz-executor 66108 158827 66455 0 3 0 0x4000080 fsleep syz-executor 66108 191974 66455 0 3 0 0x4000080 fsleep syz-executor 78780 494934 18560 0 2 0 0x1 syz-executor 78780 131409 18560 0 3 0 0x4000080 fsleep syz-executor 78780 90834 18560 0 3 0 0x4000080 fsleep syz-executor 41081 307336 59794 0 3 0x82 0 ppwait syz-executor 18560 443217 59794 0 3 0x2 0x80 nanoslp syz-executor 32243 481418 59794 0 3 0x2 0x80 nanoslp syz-executor 57611 489154 59794 0 3 0x2 0x80 nanoslp syz-executor 91492 425123 59794 0 3 0x2 0x80 nanoslp syz-executor 66455 356562 59794 0 3 0x2 0x80 nanoslp syz-executor 61699 55099 59794 0 3 0x2 0x80 nanoslp syz-executor 13624 405642 59794 0 3 0x2 0x80 nanoslp syz-executor 59794 183014 81671 0 3 0x2 0x80 kqread syz-executor 81671 391231 63767 0 3 0x100002 0x88 sigsusp ksh 63767 82920 83031 0 3 0x10 0x88 kqread sshd-session 83031 459172 4236 0 3 0x12 0x80 kqread sshd-session 5981 406359 1 0 3 0x100003 0x80 ttyin getty 4236 224302 1 0 3 0 0x88 kqread sshd 19390 400268 63200 73 3 0x1100010 0x80 kqread syslogd 63200 64587 1 0 3 0x100002 0x80 sbwait syslogd-parent 92746 260354 1 0 3 0x100000 0x80 kqread resolvd 84113 507164 61071 77 3 0x100012 0x80 kqread dhcpleased 33874 158713 61071 77 3 0x100012 0x80 kqread dhcpleased 61071 451264 1 0 3 0 0x80 kqread dhcpleased 67054 462085 0 0 3 0x14000 0x200 bored smr 55466 461930 0 0 2 0x14000 0x200 zerothread 14899 503994 0 0 3 0x14000 0x200 aiodoned aiodoned 17112 374615 0 0 3 0x14000 0x200 syncer update 82192 343770 0 0 3 0x14000 0x200 cleaner cleaner 77661 285172 0 0 3 0x14000 0x200 reaper reaper 15006 88429 0 0 3 0x14000 0x200 pgdaemon pagedaemon 82547 448757 0 0 3 0x14000 0x200 bored viomb 32213 356575 0 0 3 0x14000 0x40000200 acpi0 acpi0 61977 3619 0 0 3 0x14000 0x200 bored softnet0 10203 425805 0 0 3 0x14000 0x200 bored systqmp 21620 320552 0 0 3 0x14000 0x200 bored systq 85833 7267 0 0 3 0x14000 0x40000200 tmoslp softclock 873 452230 0 0 3 0x14000 0x40000200 idle0 1 155659 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 11027 12102K 12165K 166960K 12150 0 pcb 17 12K 12K 166960K 24 0 rtable 191 5K 6K 166960K 385 0 pf 31 13K 14K 166960K 39 0 ifaddr 37 6K 7K 166960K 51 0 ifgroup 48 2K 2K 166960K 60 0 sysctl 1 1K 9K 166960K 6 0 counters 33 17K 17K 166960K 36 0 ioctlops 0 0K 4K 166960K 42 0 iov 0 0K 16K 166960K 3 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1296 81K 82K 166960K 1419 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 4 0K 0K 166960K 4 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1692 195K 286K 166960K 12472 0 file desc 18 65K 93K 166960K 204 0 proc 60 59K 91K 166960K 548 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 1 0 in_multi 78 5K 6K 166960K 111 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 37 175K 175K 166960K 37 0 exec 0 0K 1K 166960K 398 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 14 124K 124K 166960K 15 0 UVM amap 214 134K 143K 166960K 3403 0 UVM aobj 3 2K 2K 166960K 4 0 pinsyscall 39 78K 96K 166960K 1341 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 11 0K 2K 166960K 32 0 temp 34 9118K 9182K 166960K 6707 0 kqueue 15 24K 26K 166960K 35 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 44 0 41 1 0 1 1 0 8 0 rtentry 136 126 0 34 4 0 4 4 0 8 0 unpcb 144 55 0 38 1 0 1 1 0 8 0 syncache 336 4 0 4 1 1 0 1 0 8 0 tcpcb 736 19 0 14 1 0 1 1 0 8 0 arp 96 22 0 6 1 0 1 1 0 8 0 inpcb 328 94 0 85 1 0 1 1 0 8 0 nd6 112 27 0 9 1 0 1 1 0 8 0 pkpcb 40 1 0 1 1 0 1 1 0 8 1 kcovpl 48 10 0 2 1 0 1 1 0 8 0 ppxss 1072 1 0 0 1 0 1 1 0 8 0 pfstscr 40 2 0 2 1 0 1 1 0 8 1 pfstkey 128 2 0 2 1 0 1 1 0 8 1 pfstate 384 1 0 1 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 501 0 132 29 0 29 29 0 8 3 art_table 40 502 0 132 5 0 5 5 0 8 0 art_node 32 126 0 42 1 0 1 1 0 8 0 semapl 72 2 0 0 1 0 1 1 0 8 0 shmpl 120 2 0 1 1 0 1 1 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 1644 0 176 92 0 92 92 0 8 0 ffsino 256 1644 0 176 92 0 92 92 0 8 0 nchpl 144 1888 0 189 64 0 64 64 0 8 0 vnodes 216 1768 0 0 99 0 99 99 0 8 0 namei 1024 6353 0 6353 3 2 1 2 0 8 1 kstatmem 264 29 0 6 2 0 2 2 0 8 0 scxspl 216 6308 0 6308 3 2 1 3 1 8 1 plimitpl 152 31 0 15 1 0 1 1 0 8 0 sigapl 424 487 0 444 6 1 5 6 0 8 0 knotepl 120 5002 0 4697 17 0 17 17 0 8 7 kqueuepl 184 35 0 22 1 0 1 1 0 8 0 pipepl 304 133 0 105 3 0 3 3 0 8 0 fdescpl 448 474 0 444 5 1 4 5 0 8 0 filepl 120 1621 0 1407 7 0 7 7 0 8 0 lockfpl 104 23 0 20 1 0 1 1 0 8 0 lockfspl 48 12 0 9 1 0 1 1 0 8 0 sessionpl 144 28 0 20 1 0 1 1 0 8 0 pgrppl 48 39 0 23 1 0 1 1 0 8 0 ucredpl 104 102 0 90 1 0 1 1 0 8 0 zombiepl 144 467 0 467 2 1 1 1 0 8 1 processpl 1160 487 0 444 4 0 4 4 0 8 0 procpl 664 572 0 517 5 0 5 5 0 8 0 sockpl 552 195 0 166 4 1 3 3 0 8 0 mcl16k 16384 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 13 0 13 2 1 1 1 0 8 1 mcl4k 4096 2593 0 2540 14 5 9 14 0 8 1 mcl2k 2048 185 0 185 4 1 3 3 0 8 3 mextrefs 64 74 0 74 2 1 1 1 0 8 1 mtagpl 96 4 0 4 1 1 0 1 0 8 0 mbufpl 256 4829 0 4701 13 0 13 13 0 8 2 bufpl 272 2356 0 88 152 0 152 152 0 8 0 anonpl 24 84495 0 81469 22 1 21 21 0 187 0 amapchunkpl 152 9515 0 9055 25 4 21 21 0 158 3 amappl16 200 1254 0 1234 5 3 2 4 0 8 0 amappl15 192 4 0 4 1 1 0 1 0 8 0 amappl14 184 419 0 418 1 0 1 1 0 8 0 amappl13 176 112 0 102 1 0 1 1 0 8 0 amappl12 168 710 0 683 2 0 2 2 0 8 0 amappl11 160 4 0 4 1 1 0 1 0 8 0 amappl10 152 70 0 62 1 0 1 1 0 8 0 amappl9 144 277 0 277 1 1 0 1 0 8 0 amappl8 136 129 0 128 1 0 1 1 0 8 0 amappl7 128 141 0 131 1 0 1 1 0 8 0 amappl6 120 128 0 127 1 0 1 1 0 8 0 amappl5 112 133 0 127 1 0 1 1 0 8 0 amappl4 104 268 0 254 1 0 1 1 0 8 0 amappl3 96 1780 0 1671 4 0 4 4 0 8 0 amappl2 88 448 0 401 2 0 2 2 0 8 0 amappl1 80 10321 0 9778 13 0 13 13 0 8 1 amappl 88 2719 0 2564 5 0 5 5 0 92 1 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 8 0 8 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 474 0 444 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 474 0 444 1 0 1 1 0 8 0 vmmpekpl 168 5535 0 5501 2 0 2 2 0 8 0 vmmpepl 168 39225 0 37445 86 4 82 82 0 357 4 vmsppl 368 473 0 444 4 1 3 4 0 8 0 rwobjpl 40 14190 0 13270 12 1 11 11 0 8 0 pdppl 4096 954 0 888 94 26 68 80 0 8 2 pvpl 32 217325 0 209034 81 2 79 79 0 265 6 pmappl 216 473 0 444 3 0 3 3 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 514 0 40 14 0 14 14 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace sys_shmat(ffff80003c8f1a10,ffff80002cc9ddb0,ffff80002cc9dd00) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80002cc9ddb0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002cc9ddb0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x15bdb64eb00, count: -3 ddb> machine ddbcpu 1 No such command ddb> trace sys_shmat(ffff80003c8f1a10,ffff80002cc9ddb0,ffff80002cc9dd00) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80002cc9ddb0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002cc9ddb0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x15bdb64eb00, count: -3