From: Dan Carpenter <dan.carpenter@oracle.com>
To: a.p.zijlstra@chello.nl
Cc: linux-kernel@vger.kernel.org
Subject: re: mm/mpol: Make MPOL_LOCAL a real policy
Date: Mon, 21 May 2012 16:38:39 +0300 [thread overview]
Message-ID: <20120521133838.GA12116@elgon.mountain> (raw)
Hello Peter Zijlstra,
The patch 03ed7b538ca0: "mm/mpol: Make MPOL_LOCAL a real policy" from
Mar 19, 2012, leads to the following warning:
mm/mempolicy.c:2591 mpol_parse_str()
error: buffer overflow 'policy_modes' 5 <= 5
mm/mempolicy.c
2590 for (mode = 0; mode < MPOL_MAX; mode++) {
2591 if (!strcmp(str, policy_modes[mode])) {
2592 break;
2593 }
2594 }
The problem is that MPOL_NOOP is not defined in policy_modes[] so we
search past the end of the array.
regards,
dan carpenter
reply other threads:[~2012-05-21 13:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20120521133838.GA12116@elgon.mountain \
--to=dan.carpenter@oracle.com \
--cc=a.p.zijlstra@chello.nl \
--cc=linux-kernel@vger.kernel.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