Skip to content
Snippets Groups Projects
Commit fe2cff85 authored by Riley Andrews's avatar Riley Andrews Committed by Thierry Strudel
Browse files

android: drivers: workaround debugfs race in binder


If a /d/binder/proc/[pid] entry is kept open after linux has
torn down the associated process, binder_proc_show can deference
an invalid binder_proc that has been stashed in the debugfs
inode.  Validate that the binder_proc ptr passed into binder_proc_show
has not been freed by looking for it within the global process list
whilst the global lock is held. If the ptr is not valid, print nothing.

Bug 19587483
Change-Id: Ice878c171db51ef9a4879c2f9299a2deb873d255
Signed-off-by: default avatarRiley Andrews <riandrews@android.com>
parent e70d64c1
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment