On 11/22/26 18:55, David Hildenbrand (Arm) wrote:
> While working on vm_ops->access related fixes in core code for FOLL_ANON
> and VMA access permission + size handling, I stumbled over two driver
> issues.
> 
> Fixing it all in this series, because it's all intertwined. Only allow
> FOLL_FORCE to bypass VMA permissions, similar to what GUP does for other
> VMAs.
> 
> In patch #4 we break a debugging use case for older ROCm versions, and
> forced writes to mappings of read-only files (e.g., DMA-bufs). Current
> ROCm no longer relies on it, but old setups (e.g., MI100 with old
> userspace) might break when updating the kernel.
> 
> Signed-off-by: David Hildenbrand (Arm) <[email protected]>
> ---
> Changes in v2:
> - Drop "drm/i915/selftests: request read access for mmap access tests"
> - "mm: check permissions and bounds for vm_ops->access"
>  - Allow reads of write-only mappings, as we historically did
>  - Combine the permission check comments into one
>  - Mention breaking forced writes to read-only files
>  - Extend patch description
> - Pick up tags
> - Link to v1: 
> https://patch.msgid.link/[email protected]

I just sent a patch to teach the

        igt@gem_mmap_offset@oob-read

Test that partial read success is ok.

https://lore.kernel.org/r/[email protected]

-- 
Cheers,

David

Reply via email to