From: Dan Carpenter Date: Mon, 22 Feb 2016 19:33:09 +0000 (+0300) Subject: Staging: gdm72xx: underflow bug in gdm_wimax_ioctl_get_data() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e0aa762cac39d18aa60938a3d1f7f6b42fcb2cdf;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Staging: gdm72xx: underflow bug in gdm_wimax_ioctl_get_data() "size" here should be unsigned, otherwise we might end up trying to copy negative bytes in gdm_wimax_ioctl_get_data() resulting in an information leak. Reported-by: Alan Cox Signed-off-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/gdm72xx/wm_ioctl.h b/drivers/staging/gdm72xx/wm_ioctl.h index 631cb1d23c7e..032cb073461c 100644 --- a/drivers/staging/gdm72xx/wm_ioctl.h +++ b/drivers/staging/gdm72xx/wm_ioctl.h @@ -74,12 +74,12 @@ struct fsm_s { }; struct data_s { - int size; + unsigned int size; void *buf; }; struct udata_s { - int size; + unsigned int size; void __user *buf; };