android_kernel_oneplus_msm8998/drivers/gpu
Rajesh Kemisetti a614a92c2a 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>
2019-08-30 09:24:37 +02:00
..
drm drm/msm/dsi-staging: Add range check in debugfs_dump_info_read 2019-08-30 09:21:11 +02:00
host1x gpu: host1x: Fix MLOCK's debug info 2015-10-02 14:40:12 +02:00
ipu-v3 Revert "Merge remote-tracking branch 'msm-4.4/tmp-510d0a3f' into msm-4.4" 2016-08-26 14:34:05 -07:00
msm msm: kgsl: Fix race condition between drawobj and context destroy 2019-08-30 09:24:37 +02:00
vga vgaarb: fix signal handling in vga_get() 2015-12-11 14:04:44 +10:00
Makefile msm: kgsl: Update various exernal APIs for the 4.4 kernel 2016-03-22 11:15:52 -07:00