aboutsummaryrefslogtreecommitdiff
path: root/include/linux/node.h
diff options
context:
space:
mode:
authorNick Desaulniers <ndesaulniers@google.com>2017-02-10 10:54:56 -0800
committerMister Oyster <oysterized@gmail.com>2017-04-16 15:03:43 +0200
commitba697295b35131a9d44d9aae16bb93cc8fb295ee (patch)
tree6fa43da7b91faf1ea62416395f7ac2212eb3e1e0 /include/linux/node.h
parentcff1a3c2d9b02ed8a1f1630191218b4905a05e65 (diff)
ANDROID: ion: Protect kref from userspace manipulation
This separates the kref for ion handles into two components. Userspace requests through the ioctl will hold at most one reference to the internally used kref. All additional requests will increment a separate counter, and the original reference is only put once that counter hits 0. This protects the kernel from a poorly behaving userspace. Bug: 34276203 Change-Id: Ibc36bc4405788ed0fea7337b541cad3be2b934c0 Signed-off-by: Daniel Rosenberg <drosen@google.com>
Diffstat (limited to 'include/linux/node.h')
0 files changed, 0 insertions, 0 deletions