char: Int overflow in lp_do_ioctl().
authorYongjian Xu <xuyongjiande@gmail.com>
Wed, 18 Dec 2013 07:45:12 +0000 (15:45 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Dec 2013 00:39:54 +0000 (16:39 -0800)
commit1c2de820d66d704c7d6fffdd872b7670eb4e29bb
treef86d9d46e7aaae7cee35ea4886ebaf5c6782086d
parent138a6d7ea2deb3080116a4f99019e181b62e5ce5
char: Int overflow in lp_do_ioctl().

arg comes from user-space, so int overflow may occur:
LP_TIME(minor) = arg * HZ/100;

Reported-by: Yongjian Xu <xuyongjiande@gmail.com>
Suggested-by: Qixue Xiao <s2exqx@gmail.com>
Signed-off-by: Yu Chen <chyyuu@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/lp.c