Skip to content
Commit 3a72ea0a authored by Santosh Sakore's avatar Santosh Sakore
Browse files

msm: adsprpc: Do not search the global map in the process-specific list



If a user makes the ioctl call for the fastrpc_internal_mmap with the
global map flag, fd, and va corresponding to some map already present
in the process-specific list, then this map present in the process-
specific list could be added to the global list. Because global maps
are also searched in the process-specific list. If a map gets removed
from the global list and another concurrent thread is using the same
map for a process-specific use case, it could lead to a use-after-free.
Avoid searching the global map in the process-specific list.

Change-Id: Ife06a3018332017f0076171fb4be98f3b0ed3502
Acked-by: default avatarAbhishek Singh <[email protected]>
Signed-off-by: default avatarSantosh Sakore <[email protected]>
parent e15a373f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment