Re: [PATCH] drm: Add the mutex protection in drm_do_vm_fault.
From: Dave Airlie
Date: Tue Nov 05 2013 - 22:33:20 EST
On Sat, Oct 12, 2013 at 1:47 AM, Jun Chen <jun.d.chen@xxxxxxxxx> 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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/