aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
diff options
context:
space:
mode:
authorHaren Myneni <[email protected]>2025-06-10 02:12:27 +0000
committerMadhavan Srinivasan <[email protected]>2025-06-10 02:26:41 +0000
commit0d67f0dee6c9176bc09a5482dd7346e3a0f14d0b (patch)
tree3db88eab0771fde1d4660416bb54a3486a360651 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
parentpowerpc/powernv/memtrace: Fix out of bounds issue in memtrace mmap (diff)
downloadkernel-0d67f0dee6c9176bc09a5482dd7346e3a0f14d0b.tar.gz
kernel-0d67f0dee6c9176bc09a5482dd7346e3a0f14d0b.zip
powerpc/vas: Return -EINVAL if the offset is non-zero in mmap()
The user space calls mmap() to map VAS window paste address and the kernel returns the complete mapped page for each window. So return -EINVAL if non-zero is passed for offset parameter to mmap(). See Documentation/arch/powerpc/vas-api.rst for mmap() restrictions. Co-developed-by: Jonathan Greental <[email protected]> Signed-off-by: Jonathan Greental <[email protected]> Reported-by: Jonathan Greental <[email protected]> Fixes: dda44eb29c23 ("powerpc/vas: Add VAS user space API") Signed-off-by: Haren Myneni <[email protected]> Signed-off-by: Madhavan Srinivasan <[email protected]> Link: https://patch.msgid.link/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions