aboutsummaryrefslogtreecommitdiff
path: root/include/linux/timerfd.h
diff options
context:
space:
mode:
authorTodd Kjos <tkjos@google.com>2017-11-20 14:22:14 -0800
committerMister Oyster <oysterized@gmail.com>2017-12-14 14:59:18 +0100
commitc86bd72faf3953bd8c23e581c26461add875c9ce (patch)
treef4e8799dc45d4280b0994e3978497f35d0bcdab2 /include/linux/timerfd.h
parent305d0663f45433e3a1c986b161e88a225bf6ddf8 (diff)
binder: fix proc->files use-after-free
proc->files cleanup is initiated by binder_vma_close. Therefore a reference on the binder_proc is not enough to prevent the files_struct from being released while the binder_proc still has a reference. This can lead to an attempt to dereference the stale pointer obtained from proc->files prior to proc->files cleanup. This has been seen once in task_get_unused_fd_flags() when __alloc_fd() is called with a stale "files". The fix is to protect proc->files with a mutex to prevent cleanup while in use. Bug: 69164715 Change-Id: I90fc117e004ecefc5336779cd7cd24faad37bd86 Signed-off-by: Todd Kjos <tkjos@google.com>
Diffstat (limited to 'include/linux/timerfd.h')
0 files changed, 0 insertions, 0 deletions