Skip to content
Commit dd9dcfb8 authored by Dawei Li's avatar Dawei Li Committed by Greg Kroah-Hartman
Browse files

drm/vmwgfx: Fix race issue calling pin_user_pages



[ Upstream commit ed14d225 ]

pin_user_pages() is unsafe without protection of mmap_lock,
fix it by calling pin_user_pages_fast().

Fixes: 7a7a933e ("drm/vmwgfx: Introduce VMware mks-guest-stats")
Signed-off-by: default avatarDawei Li <set_pte_at@outlook.com>
Reviewed-by: default avatarMartin Krastev <krastevm@vmware.com>
Signed-off-by: default avatarZack Rusin <zackr@vmware.com>
Link: https://patchwork.freedesktop.org/patch/msgid/TYWP286MB23193621CB443E1E1959A00BCA3E9@TYWP286MB2319.JPNP286.PROD.OUTLOOK.COM


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 7b09ba90
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment