Re: [PATCH v2 3/5] drm/i915/gem: Replace user_access_begin by user_write_access_begin
From: Michael Ellerman
Date: Fri May 29 2020 - 00:20:59 EST
On Fri, 2020-04-03 at 07:20:52 UTC, Christophe Leroy wrote:
> When i915_gem_execbuffer2_ioctl() is using user_access_begin(),
> that's only to perform unsafe_put_user() so use
> user_write_access_begin() in order to only open write access.
>
> Signed-off-by: Christophe Leroy <christophe.leroy@xxxxxx>
> Reviewed-by: Kees Cook <keescook@xxxxxxxxxxxx>
Applied to powerpc topic/uaccess, thanks.
https://git.kernel.org/powerpc/c/b44f687386875b714dae2afa768e73401e45c21c
cheers