From: Brent Casavant <bcasavan@sgi.com>
To: linux-mm@kvack.org
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] get_nodes mask miscalculation
Date: Mon, 9 Aug 2004 17:39:55 -0500 [thread overview]
Message-ID: <Pine.SGI.4.58.0408091731270.21911@kzerza.americas.sgi.com> (raw)
It appears there is a nodemask miscalculation in the get_nodes()
function in mm/mempolicy.c. This bug has two effects:
1. It is impossible to specify a length 1 nodemask.
2. It is impossible to specify a nodemask containing the last node.
The following patch against 2.6.8-rc3 has been confirmed to solve
both problems.
Signed-off-by: Brent Casavant <bcasavan@sgi.com>
--- linux-2.6.8-rc3/mm/mempolicy.c 2004-08-03 16:28:51.000000000 -0500
+++ linux-work/mm/mempolicy.c 2004-08-09 14:56:44.000000000 -0500
@@ -132,7 +132,6 @@
unsigned long nlongs;
unsigned long endmask;
- --maxnode;
bitmap_zero(nodes, MAX_NUMNODES);
if (maxnode == 0 || !nmask)
return 0;
--
Brent Casavant bcasavan@sgi.com Forget bright-eyed and
Operating System Engineer http://www.sgi.com/ bushy-tailed; I'm red-
Silicon Graphics, Inc. 44.8562N 93.1355W 860F eyed and bushy-haired.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>
next reply other threads:[~2004-08-09 22:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-09 22:39 Brent Casavant [this message]
[not found] <2rr7U-5xT-11@gated-at.bofh.it>
2004-08-10 1:44 ` Andi Kleen
2004-08-10 5:25 ` Paul Jackson
2004-08-10 10:45 ` Andi Kleen
2004-08-17 3:43 ` Paul Jackson
2004-08-10 14:54 ` Brent Casavant
2004-08-10 15:34 ` Andi Kleen
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=Pine.SGI.4.58.0408091731270.21911@kzerza.americas.sgi.com \
--to=bcasavan@sgi.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
/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