Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752160AbbKIH7e (ORCPT ); Mon, 9 Nov 2015 02:59:34 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:60940 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751181AbbKIH7c (ORCPT ); Mon, 9 Nov 2015 02:59:32 -0500 X-AuditID: cbfee61a-f79a06d000005c6f-fe-5640525db478 From: Shailendra Verma To: Russell King , Greg Kroah-Hartman , =?UTF-8?q?Arve=20Hj=C3=B8nnev=C3=A5g?= , Riley Andrews , Laura Abbott , Jungseung Lee , Shailendra Verma , Dan Carpenter , Mitchel Humpherys , Sumit Semwal , "Kirill A. Shutemov" , Gioh Kim , Rasmus Villemoes , Shawn Lin , Markus Elfring , linux-arm-kernel@lists.infradead.org, devel@driverdev.osuosl.org Cc: Ravikant Bijendra Sharma , Shailendra Verma , linux-kernel@vger.kernel.org, vidushi.koul@samsung.com Subject: [PATCH] arch:arm:mm:Correction in the boundary check for module end address. Date: Mon, 09 Nov 2015 13:27:28 +0530 Message-id: <1447055848-28180-1-git-send-email-shailendra.v@samung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrBLMWRmVeSWpSXmKPExsVy+t9jQd3YIIcwgzurbCze/73PZvH633QW iz1nfrFbnO9czmzxrOkLo0Xz4vVsFn/nvGOyuPl8DovF9s4Z7BabHl9jtbi8aw6bxe3LvBaP Z81js1g7fxubRVPDbHaL15v+MlrcmjeTzWLRt1fMFneerGe1OHX3M7vF34uX2BxEPbbt3sbq 0dLcw+Zxua+XyePevsMsHjtn3WX36Hp7hcnjzrU9bB7zTgZ67J+7ht1j85J6j49Pb7F4XOjK 9vg7az+LR9+WVYweTafaWT0+b5ILEIjisklJzcksSy3St0vgymjpOMZesJq94s2xJWwNjJPZ uhg5OSQETCQurFzMDGGLSVy4tx4ozsUhJDCLUeLuhoPsEM5rRolNPZuBqjg42AQMJDbdCgCJ iwi8YZX4seo1I4jDLDCfUeLDtzlgY4UFwiW6121gBLFZBFQlDjy+zQ5i8wq4S0y+95YRZJCE gILEnEk2Exi5FzAyrGKUSC1ILihOSs81zEst1ytOzC0uzUvXS87P3cQIjo9nUjsYD+5yP8Qo wMGoxMPLMN0+TIg1say4MvcQowQHs5II72FvhzAh3pTEyqrUovz4otKc1OJDjNIcLErivPqe RmFCAumJJanZqakFqUUwWSYOTqkGRtseY4+kmZZ9x14GXVZyc+9+d9e8K8rPzelGw8cD7Oz5 S5fHxFQybJH0+H5p7dxHyY0a92csdD+++7VoZYu87/7KC33Bft3f91TtnZx+jpXlzqKMxYyG Zv9DAtxMj71d4L1jifEdgahPgd8XVOo+53K7Hbn8keRpvnteTIvbRRfKWzWzfbv3S4mlOCPR UIu5qDgRAIXZBWOLAgAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1157 Lines: 32 From: Shailendra Verma The module end boundary check is not proper.The out of bound value of module end can produce undesired results. Signed-off-by: Shailendra Verma Reviewed-by: Ravikant Bijendra Sharma --- linux-4.3-rc6/arch/arm/mm/pageattr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-4.3-rc6/arch/arm/mm/pageattr.c b/linux-4.3-rc6/arch/arm/mm/pageattr.c index cf30daf..be7fe4b 100644 --- a/linux-4.3-rc6/arch/arm/mm/pageattr.c +++ b/linux-4.3-rc6/arch/arm/mm/pageattr.c @@ -52,7 +52,7 @@ static int change_memory_common(unsigned long addr, int numpages, if (start < MODULES_VADDR || start >= MODULES_END) return -EINVAL; - if (end < MODULES_VADDR || start >= MODULES_END) + if (end < MODULES_VADDR || end >= MODULES_END) return -EINVAL; data.set_mask = set_mask; -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/