summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-postgresql.py
diff options
context:
space:
mode:
authorDivya Ponnusamy <pdivya@codeaurora.org>2016-05-06 13:24:37 -0600
committerKyle Yan <kyan@codeaurora.org>2016-05-25 14:21:42 -0700
commit231003b1376550b38d47d0531d8782df38f75ad0 (patch)
treefb15d1c4feecfe4213d0ef94d81e4d1d80990749 /tools/perf/scripts/python/call-graph-from-postgresql.py
parentd7cd1d20514adf3ad49781b4cb65c3248e95cf14 (diff)
msm: kgsl: Avoid race condition in ioctl_syncsource_destroy
If the ioctl syncsource_destroy is accessed by parallel threads, where the spinlock is acquired by threads after getting syncsource, then the simultaneous processes try to remove the already destroyed syncsource->refcount by the first thread that acquires this spinlock. This leads to race condition while removing syncsource->idr. Avoid separate lock inside getting syncsource, instead acquire spinlock before we get the syncsource in destroy ioctl so that the threads access the spinlock and operate on syncsource without use-after-free issue. Change-Id: I6add3800c40cd09f6e6e0cf2720e69059bd83cbc Signed-off-by: Divya Ponnusamy <pdivya@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions