Re: [PATCH] drm/panthor: Enforce DRM_PANTHOR_BO_NO_MMAP

2025-04-16 Thread Boris Brezillon
On Wed, 16 Apr 2025 15:26:42 +0100 Steven Price wrote: > On 15/04/2025 11:57, Boris Brezillon wrote: > > Right now the DRM_PANTHOR_BO_NO_MMAP flag is ignored by > > panthor_ioctl_bo_mmap_offset(), meaning BOs with this flag set can > > still be mmap-ed. > > > > Fortunately, this bug only impacts

Re: [PATCH] drm/panthor: Enforce DRM_PANTHOR_BO_NO_MMAP

2025-04-16 Thread Steven Price
On 15/04/2025 11:57, Boris Brezillon wrote: > Right now the DRM_PANTHOR_BO_NO_MMAP flag is ignored by > panthor_ioctl_bo_mmap_offset(), meaning BOs with this flag set can > still be mmap-ed. > > Fortunately, this bug only impacts user BOs, because kernel BOs are not > exposed to userspace (they do

Re: [PATCH] drm/panthor: Enforce DRM_PANTHOR_BO_NO_MMAP

2025-04-15 Thread Boris Brezillon
On Tue, 15 Apr 2025 12:57:10 +0200 Boris Brezillon wrote: > Right now the DRM_PANTHOR_BO_NO_MMAP flag is ignored by > panthor_ioctl_bo_mmap_offset(), meaning BOs with this flag set can > still be mmap-ed. > > Fortunately, this bug only impacts user BOs, because kernel BOs are not > exposed to us

Re: [PATCH] drm/panthor: Enforce DRM_PANTHOR_BO_NO_MMAP

2025-04-15 Thread Liviu Dudau
On Tue, Apr 15, 2025 at 01:18:42PM +0200, Boris Brezillon wrote: > On Tue, 15 Apr 2025 12:57:10 +0200 > Boris Brezillon wrote: > > > Right now the DRM_PANTHOR_BO_NO_MMAP flag is ignored by > > panthor_ioctl_bo_mmap_offset(), meaning BOs with this flag set can > > still be mmap-ed. > > > > Fortun

[PATCH] drm/panthor: Enforce DRM_PANTHOR_BO_NO_MMAP

2025-04-15 Thread Boris Brezillon
Right now the DRM_PANTHOR_BO_NO_MMAP flag is ignored by panthor_ioctl_bo_mmap_offset(), meaning BOs with this flag set can still be mmap-ed. Fortunately, this bug only impacts user BOs, because kernel BOs are not exposed to userspace (they don't have a BO handle), so they can't be mmap-ed anyway.