Searched hist:f37d63e219c39199a59b8b8a211412ff27192830 (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/gpu/drm/ |
H A D | drm_lease.c | diff f37d63e219c39199a59b8b8a211412ff27192830 Wed Sep 20 14:36:12 CEST 2023 Philipp Stanner <pstanner@redhat.com> drm_lease.c: copy user-array safely
Currently, there is no overflow-check with memdup_user().
Use the new function memdup_array_user() instead of memdup_user() for duplicating the user-space array safely.
Suggested-by: David Airlie <airlied@redhat.com> Signed-off-by: Philipp Stanner <pstanner@redhat.com> Reviewed-by: Kees Cook <keescook@chromium.org> Reviewed-by: Zack Rusin <zackr@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20230920123612.16914-6-pstanner@redhat.com
|