summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/lists.py
diff options
context:
space:
mode:
authorRajesh Kemisetti <rajeshk@codeaurora.org>2019-07-18 20:31:08 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2019-08-02 04:14:12 -0700
commit6a540c205a38805b453e5d05acd84bd9c8de41f1 (patch)
treedabbb6ab9ffe8c7b207d8519ccf7b2f458db80ce /scripts/gdb/linux/lists.py
parent12f1cbf68dc1628166291cc338457cdd752dac49 (diff)
msm: kgsl: Fix race condition between drawobj and context destroy
drawobj_destroy_sync() tries to cancel all pending sync events by taking local copy of pending list. In case of sync point timestamp event, it goes ahead and accesses context's events list assuming that event's context would be alive. But at the same time, if the other context, which is of interest for these sync point events, can be destroyed by cancelling all events in its group. This leads to use-after-free in drawobj_destroy_sync() path. Fix is to give the responsibility of putting the context's ref count to the thread which clears the pending mask. Change-Id: I8d08ef6ddb38ca917f75088071c04727bced11d2 Signed-off-by: Rajesh Kemisetti <rajeshk@codeaurora.org>
Diffstat (limited to 'scripts/gdb/linux/lists.py')
0 files changed, 0 insertions, 0 deletions