]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm: fix use of copy_from_user() while holding spinlock
authorRob Clark <robdclark@gmail.com>
Mon, 22 Aug 2016 19:15:23 +0000 (15:15 -0400)
committerRob Clark <robdclark@gmail.com>
Sun, 28 Aug 2016 16:47:46 +0000 (12:47 -0400)
commit4c09fcb925d2b3d678944f9018d6a3941624038d
treeaaafcf9dff775b5df1898fc9adb925adae96b4cc
parent6d5e0145611d5e0f74da622ffe85851b1439fc7d
drm/msm: fix use of copy_from_user() while holding spinlock

Use instead __copy_from_user_inatomic() and fallback to slow-path where
we drop and re-aquire the lock in case of fault.

Cc: stable@vger.kernel.org
Reported-by: Vaishali Thakkar <vaishali.thakkar@oracle.com>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/msm_gem_submit.c