Skip to content
Commit 34c2c4f6 authored by Eric Anholt's avatar Eric Anholt
Browse files

drm/v3d: Fix a use-after-free race accessing the scheduler's fences.



Once we push the job, the scheduler could run it and free it.  So, if
we want to reference their fences, we need to grab them before then.
I haven't seen this happen in many days of conformance test runtime,
but let's still close the race.

Signed-off-by: default avatarEric Anholt <eric@anholt.net>
Fixes: 57692c94 ("drm/v3d: Introduce a new DRM driver for Broadcom V3D V3.x+")
Link: https://patchwork.freedesktop.org/patch/254119/


Reviewed-by: default avatarBoris Brezillon <boris.brezillon@bootlin.com>
parent 73230015
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment