Skip to content

Tags: CyanogenMod/android_kernel_oneplus_msm8974

Tags

cm-12.1-YOG4PA_1L0

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>

cm-11.0-XNPH05Q-bacon-5229c4ef56

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)

cm-11.0-XNPH44S-bacon-5fa8c79c0b

Revert "prima: Reapply fixes after upgrade to 3.2.2.2"

This reverts commit f85e35b.

Revert "prima: Update to 3.2.2.1_rb1 release"

This reverts commit 5267fdd.

The new version has issues with P2P GO negotiation and sessions,
so back off for now

Change-Id: I6469664832643f813e061f5b7f5d20d4dc1a0dd4

cm-11.0-XNPH33R-bacon-3628510d76

drivers: video: Updated support for the truly panels

Change-Id: I85f6c5d21453cee9126a081caa6cb2ffdfae0b03
(cherry picked from commit df4be40)

cm-11.0-XNPH30O-bacon-4f280f505a

Merge remote-tracking branch 'github/cm-11.0' into stable/cm-11.0

cm-11.0-XNPH25R-bacon-d22b777afa

msm: Oppo: Fix gyro init failure

Change-Id: I1836fcae9617f6b68f6bcea9d1ae01e02b6f08d0