aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorAriel Yin <ayin@google.com>2017-02-13 17:17:45 -0800
committerRichard Chang <dickchang@google.com>2017-03-17 14:53:27 -0700
commitb92004a3d4a21adfc5ccc0db4cd845a434b69ec8 (patch)
tree5c50cc16cdebc7d8218fe25df32a096e649cf0a5 /net/lapb/lapb_timer.c
parent392bc723f354b9d3be9fbc1ca41f81c5a1a2f83e (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 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions