Re: [PATCH v2 3/4] powerpc/spufs: consider vm_pgoff in spufs_mem_mmap_access()

From: David Hildenbrand (Arm)

Date: Tue Nov 24 2026 - 03:59:16 EST


On 11/24/26 09:41, Madhavan Srinivasan wrote:
>
> On 11/22/26 11:25 PM, David Hildenbrand (Arm) wrote:
>> spufs_mem_mmap_access() calculates the local store offset relative to the
>> start of the VMA and ignores vm_pgoff. After VMA splits, debugger reads and
>> writes access the wrong part of the local store. Mappings created with a
>> nonzero file offset have the same problem.
>>
>> Properly take the vm_pgoff into account, just like spufs_mem_mmap_fault()
>> already does.
> minor nit:
>
> subject can be
> "powerpc/spufs: Fix local store offset calculation in
> spufs_mem_mmap_access()"

Ack!

>
> rest looks fine to me.
> Acked-by: Madhavan Srinivasan <maddy@xxxxxxxxxxxxx>

Thanks!

--
Cheers,

David