[PATCH] drm: Add the mutex protection in drm_do_vm_fault.

Dave Airlie airlied at gmail.com
Tue Nov 5 19:33:13 PST 2013


On Sat, Oct 12, 2013 at 1:47 AM, Jun Chen <jun.d.chen at intel.com> wrote:
>
> There are no mutex protection for the dev->map_hash while calling
> the drm_ht_find_item in the function drm_do_vm_fault. So try to
> mutex firstly and then find the list for using to avoid this race
> condition.

Can I ask how or why you found this? from what I can see we really
shouldn't be executing this code on modern drivers.

this is the sort of thing I'd really like to have tested on real hw,
which means someone booting it on AGP using UMS drivers I think.

Dave.


More information about the dri-devel mailing list