msm: mdss: fix possible out-of-bounds and overflow issue in mdp debugfs...
msm: mdss: fix possible out-of-bounds and overflow issue in mdp debugfs (CVE-2016-2489)(CVE-2016-2465) There are few cases where the count argument passed by the user space is not validated, which can potentially lead to out of bounds or overflow issues. In some cases, kernel might copy more data than what is requested. Add necessary checks to avoid such cases. Change-Id: I8a76fe64d2885879870c4e239333bc3da2c2256c Reviewed-on: http://mcrd1-22-pc.corpnet.asus/code-review/master/231138 Reviewed-by: shunmin_wang <shunmin_wang@asus.com> Tested-by: shunmin_wang <shunmin_wang@asus.com>
Please register or sign in to comment