mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Shailendra Verma <shailendra.v@samung.com>
To: "Russell King" <linux@arm.linux.org.uk>,
	"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
	"Arve Hjønnevåg" <arve@android.com>,
	"Riley Andrews" <riandrews@android.com>,
	"Laura Abbott" <lauraa@codeaurora.org>,
	"Jungseung Lee" <js07.lee@gmail.com>,
	"Shailendra Verma" <shailendra.capricorn@gmail.com>,
	"Dan Carpenter" <dan.carpenter@oracle.com>,
	"Mitchel Humpherys" <mitchelh@codeaurora.org>,
	"Sumit Semwal" <sumit.semwal@linaro.org>,
	"Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>,
	"Gioh Kim" <gioh.kim@lge.com>,
	"Rasmus Villemoes" <linux@rasmusvillemoes.dk>,
	"Shawn Lin" <shawn.lin@rock-chips.com>,
	"Markus Elfring" <elfring@users.sourceforge.net>,
	linux-arm-kernel@lists.infradead.org, devel@driverdev.osuosl.org
Cc: Ravikant Bijendra Sharma <ravikant.s2@samsung.com>,
	Shailendra Verma <shailendra.v@samsung.com>,
	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	[thread overview]
Message-ID: <1447055848-28180-1-git-send-email-shailendra.v@samung.com> (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


             reply	other threads:[~2015-11-09  7:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-09  7:57 Shailendra Verma [this message]
2015-11-09 15:35 ` Jungseung Lee
2015-11-09 16:01   ` Russell King - ARM Linux
2015-11-10  2:50     ` Hillf Danton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1447055848-28180-1-git-send-email-shailendra.v@samung.com \
    --to=shailendra.v@samung.com \
    --cc=arve@android.com \
    --cc=dan.carpenter@oracle.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=elfring@users.sourceforge.net \
    --cc=gioh.kim@lge.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=js07.lee@gmail.com \
    --cc=kirill.shutemov@linux.intel.com \
    --cc=lauraa@codeaurora.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=linux@rasmusvillemoes.dk \
    --cc=mitchelh@codeaurora.org \
    --cc=ravikant.s2@samsung.com \
    --cc=riandrews@android.com \
    --cc=shailendra.capricorn@gmail.com \
    --cc=shailendra.v@samsung.com \
    --cc=shawn.lin@rock-chips.com \
    --cc=sumit.semwal@linaro.org \
    --cc=vidushi.koul@samsung.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®