[PATCH 2/2] drm: prime: fix lookup of existing imports for self imported buffers

Dave Airlie airlied at gmail.com
Tue Apr 9 14:52:06 PDT 2013


> Since atm we don't take a reference on the dma buf pointer when we add
> it to the import lookup table the dma buf can vanish leaving the stale
> pointer behind. This can in turn lead to returning stale GEM handles
> when userspace imports a newly exported buffer.


I sent a bunch of patches to prime months ago, maybe go back and dig them out

they might fix some of these issues,

I think danvet bikeshedded my will to care at the time due to lack of
proper locking,
the fact is the patches didn't change the locking, but I could
probably go back and find them.

Hopefully you haven't gone and reinvented that work.

Dave.


More information about the dri-devel mailing list