drm: crtc: integer overflow in drm_property_create_blob()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 29 Oct 2015 13:37:54 +0000 (16:37 +0300)
committerDave Airlie <airlied@gmail.com>
Sat, 31 Oct 2015 00:00:05 +0000 (10:00 +1000)
commit9ac0934bbe52290e4e4c2a58ec41cab9b6ca8c96
tree5d1efc1e282f49e061e1a6677f9bf77c93e20a5d
parent04ccb89073e7cfc31d9b9208d32b2cdf84a4d97d
drm: crtc: integer overflow in drm_property_create_blob()

The size here comes from the user via the ioctl, it is a number between
1-u32max so the addition here could overflow on 32 bit systems.

Fixes: f453ba046074 ('DRM: add mode setting support')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Cc: stable@kernel.org # v4.2
Signed-off-by: Dave Airlie <airlied@gmail.com>
drivers/gpu/drm/drm_crtc.c