Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 942b6860 authored by Mitchel Humpherys's avatar Mitchel Humpherys Committed by Stephen Boyd
Browse files

gpu: ion: fix race condition in checking virtual address



Currently, on an Ion cache operation, there is a short period of time
between checking the validity of the virtual address range of the
operation and the actual cache operation. During this time another
thread could twiddle the vm areas, resulting in an invalid cache
operation. Fix this by holding mmap_sem of the active_mm of the
current thread across the address range check and the cache operation.

CRs-fixed: 418933
Change-Id: I859e2e3d888dea38a26d04958c1577522471a62c
Signed-off-by: default avatarMitchel Humpherys <mitchelh@codeaurora.org>
parent 77d6aa45
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