Tags: CyanogenMod/android_kernel_oneplus_msm8974
Tags
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. CYNGNOS-677 Bug 19587483 Change-Id: I4abc6443d96cca6500608976cded5ff3d1697d33 Signed-off-by: Riley Andrews <riandrews@android.com>
KEYS: close race between key lookup and freeing When a key is being garbage collected, it's key->user would get put before the ->destroy() callback is called, where the key is removed from it's respective tracking structures. This leaves a key hanging in a semi-invalid state which leaves a window open for a different task to try an access key->user. An example is find_keyring_by_name() which would dereference key->user for a key that is in the process of being garbage collected (where key->user was freed but ->destroy() wasn't called yet - so it's still present in the linked list). This would cause either a panic, or corrupt memory. Change-Id: Ic74246dc2dcc593f04f71063e3301e7356d588b7 Signed-off-by: Sasha Levin <sasha.levin@oracle.com> (cherry picked from commit bb82e33)
drivers: video: Updated support for the truly panels Change-Id: I85f6c5d21453cee9126a081caa6cb2ffdfae0b03 (cherry picked from commit df4be40)
Merge remote-tracking branch 'github/cm-11.0' into stable/cm-11.0
msm: Oppo: Fix gyro init failure Change-Id: I1836fcae9617f6b68f6bcea9d1ae01e02b6f08d0