Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1265434

[PATCH] arch:arm:mm:Correction in the boundary check for module end address.

From Shailendra Verma <shailendra.v@samung.com>
Newsgroups linux.kernel
Subject [PATCH] arch:arm:mm:Correction in the boundary check for module end address.
Date 2015-11-09 09:00 +0100
Message-ID <qsPwS-3v4-9@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


From: Shailendra Verma <Shailendra.v@samsung.com>

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 <Shailendra.v@samsung.com>
Reviewed-by: Ravikant Bijendra Sharma <ravikant.s2@samsung.com>
---
 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/

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH] arch:arm:mm:Correction in the boundary check for module end  address. Shailendra Verma <shailendra.v@samung.com> - 2015-11-09 09:00 +0100
  Re: [PATCH] arch:arm:mm:Correction in the boundary check for module  end address. Jungseung Lee <js07.lee@gmail.com> - 2015-11-09 16:40 +0100
    Re: [PATCH] arch:arm:mm:Correction in the boundary check for module  end address. Russell King - ARM Linux <linux@arm.linux.org.uk> - 2015-11-09 17:10 +0100
      Re: [PATCH] arch:arm:mm:Correction in the boundary check for module end address. "Hillf Danton" <hillf.zj@alibaba-inc.com> - 2015-11-10 04:00 +0100

csiph-web