diff options
author | Matthew Auld <matthew.auld@intel.com> | 2018-05-02 20:50:21 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-09-09 20:01:19 +0200 |
commit | f916daa615e1c0d67fb3b7a65572fbc56c6aaea6 (patch) | |
tree | d54e49e02b6d07c8a8dac0520b028f9722da797e /drivers/net/wireless/marvell/libertas/dev.h | |
parent | 9f16a87ffe0029afe7c22293965ada8b409ab502 (diff) |
drm/i915/userptr: reject zero user_size
commit c11c7bfd213495784b22ef82a69b6489f8d0092f upstream.
Operating on a zero sized GEM userptr object will lead to explosions.
Fixes: 5cc9ed4b9a7a ("drm/i915: Introduce mapping of user pages into video memory (userptr) ioctl")
Testcase: igt/gem_userptr_blits/input-checking
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20180502195021.30900-1-matthew.auld@intel.com
Cc: Loic <hackurx@opensec.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/wireless/marvell/libertas/dev.h')
0 files changed, 0 insertions, 0 deletions