Files
android_kernel_fxtec_sm6115/include/linux
John Dias 9e4a31bcf8 perf: protect group_leader from races that cause ctx double-free
When moving a group_leader perf event from a software-context
to a hardware-context, there's a race in checking and
updating that context. The existing locking solution
doesn't work; note that it tries to grab a lock inside
the group_leader's context object, which you can only
get at by going through a pointer that should be protected
from these races. To avoid that problem, and to produce
a simple solution, we can just use a lock per group_leader
to protect all checks on the group_leader's context.
The new lock is grabbed and released when no context locks
are held.

Bug: 30955111
Bug: 31095224
Change-Id: If37124c100ca6f4aa962559fba3bd5dbbec8e052
Git-repo: https://android.googlesource.com/kernel/msm
Git-commit: 5b87e00be9ca28ea32cab49b92c0386e4a91f730
[dcagle@codeaurora.org: Slight merge conflict resolution]
Signed-off-by: Dennis Cagle <d-cagle@codeaurora.org>
2018-10-22 14:29:21 -07:00
..
2018-10-09 14:35:11 -07:00
2018-08-22 10:52:48 -07:00
2018-09-07 11:49:50 -07:00
2018-09-04 21:31:43 +02:00
2018-09-13 13:00:59 -07:00
2018-08-28 17:10:42 +05:30
2018-08-22 10:52:45 -07:00
2018-09-19 15:24:43 +08:00
2018-10-16 10:35:44 -07:00