Commit 7298df96 authored by Haren Myneni's avatar Haren Myneni Committed by Greg Kroah-Hartman
Browse files

powerpc/vas: Return -EINVAL if the offset is non-zero in mmap()



[ Upstream commit 0d67f0de ]

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: default avatarJonathan Greental <yonatan02greental@gmail.com>
Signed-off-by: default avatarJonathan Greental <yonatan02greental@gmail.com>
Reported-by: default avatarJonathan Greental <yonatan02greental@gmail.com>
Fixes: dda44eb2 ("powerpc/vas: Add VAS user space API")
Signed-off-by: default avatarHaren Myneni <haren@linux.ibm.com>
Signed-off-by: default avatarMadhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20250610021227.361980-2-maddy@linux.ibm.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 81260c41
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment