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: I68c8bda0dd53b74ef44586c3243898d3eb9db889 Acked-by:Abhishek Singh <abhishes@qti.qualcomm.com> Signed-off-by:
Santosh Sakore <quic_ssakore@quicinc.com>
Loading
Please sign in to comment