[PATCH 1/1] drm/xe/eustall: Use copy_from_user() instead of __copy_from_user()

Dixit, Ashutosh ashutosh.dixit at intel.com
Wed Apr 30 22:49:41 UTC 2025


On Wed, 30 Apr 2025 11:51:18 -0700, Kees Cook wrote:
>
> On Tue, Apr 29, 2025 at 10:11:11PM -0700, Harish Chegondi wrote:
> > copy_from_user() has more checks and is more safer than
> > __copy_from_user()
> >
> > Fixes: 1537ec85ebd7 ("drm/xe/uapi: Introduce API for EU stall sampling")
> > Signed-off-by: Harish Chegondi <harish.chegondi at intel.com>
>
> Thanks!
>
> Reviewed-by: Kees Cook <kees at kernel.org>

Harish, could we add the other instances of __copy_from_user() also to this
patch? So we can fix all of them in one go.

Thanks.
--
Ashutosh


More information about the Intel-xe mailing list