Skip to content
Snippets Groups Projects
Commit 87def960 authored by Srinivasarao P's avatar Srinivasarao P Committed by Allen Huang
Browse files

perf: duplicate deletion of perf event


a malicious app can open a perf event with constraint_duplicate
bit set, disable the event, and close the fd.  On closing the fd,
the perf_release() modification causes the kernel to clean up
the event as if it still were enabled, leading to the event
being removed from a list twice.

CRs-Fixed: 977563
Change-Id: I5fbec3722407d2f3d0ff0d9f7097c5889e31fd62
Signed-off-by: default avatarSrinivasarao P <spathi@codeaurora.org>
Reviewed-on: http://mcrd1-22-pc.corpnet.asus/code-review/master/228533


Reviewed-by: default avatarallen1_huang <allen1_huang@asus.com>
Tested-by: default avatarallen1_huang <allen1_huang@asus.com>
parent a99ee96b
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment