Re: [PATCH] drm/radeon: fix potential racing issue due to mmap_lock

2022-11-14 Thread Christian König
Am 13.11.22 um 13:42 schrieb Dawei Li: Both find_vma() and get_user_pages() need explicit protection of mmap lock, fix them by mmap_lock and get_user_pages_fast(). NAK, the MM read lock should already be taken when we reach this function. Could be that this is buggy and the function is called

[PATCH] drm/radeon: fix potential racing issue due to mmap_lock

2022-11-13 Thread Dawei Li
Both find_vma() and get_user_pages() need explicit protection of mmap lock, fix them by mmap_lock and get_user_pages_fast(). Fixes: ddd00e33e17a ("drm/radeon: add userptr flag to limit it to anonymous memory v2") Fixes: f72a113a71ab ("drm/radeon: add userptr support v8") Signed-off-by: Dawei Li