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

Skip to content
Commit c2bb02d1 authored by Colin Cross's avatar Colin Cross Committed by Mitchel Humpherys
Browse files

ion: replace userspace handle cookies with idr



Userspace handles should not leak kernel virtual addresses to
userspace.  They have to be validated by looking them up in an
rbtree anyways, so replace them with an idr and validate them
by using idr_find to convert the id number to the struct
ion_handle pointer.

Change-Id: Iab5667ba6f3a73256fec3949b23a9a6f8e14a283
Signed-off-by: default avatarColin Cross <ccross@android.com>
Git-commit: 1126d98d8e34d771afcc72ce5d1c37ad4d474402
Git-repo: https://android.googlesource.com/kernel/common


[mitchelh@codeaurora.org: conflicts due to msm changes]
Signed-off-by: default avatarMitchel Humpherys <mitchelh@codeaurora.org>
parent dc90658c
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