From: Dan Carpenter Date: Tue, 6 Jan 2015 09:57:08 +0000 (+0300) Subject: staging: lustre: potential underflow in mdc_iocontrol() X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~83^2~304 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef4356bf0cf7ed2c9aed45dd64d73538da023718;p=pandora-kernel.git staging: lustre: potential underflow in mdc_iocontrol() Smatch complains that "data->ioc_plen2" is a user controlled value and, since we cast to signed int, the limit check can underflow. It's not very serious because probably the copy_to_user() would return -EFAULT on every arch that matters instead of creating an info leak. Also I haven't followed it through to see if the value is really user controlled. But definitely it would be safer to cast to unsigned so let's do that. Signed-off-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed