From: David Rientjes <rientjes@google.com>
To: Tang Chen <tangchen@cn.fujitsu.com>
Cc: davej@redhat.com, tglx@linutronix.de, mingo@redhat.com,
hpa@zytor.com, Andrew Morton <akpm@linux-foundation.org>,
zhangyanfei@cn.fujitsu.com, guz.fnst@cn.fujitsu.com,
x86@kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] numa, mem-hotplug: Initialize numa_kernel_nodes in numa_clear_kernel_node_hotplug().
Date: Tue, 28 Jan 2014 01:10:45 -0800 (PST) [thread overview]
Message-ID: <alpine.DEB.2.02.1401280109360.4244@chino.kir.corp.google.com> (raw)
In-Reply-To: <1390899916-23566-2-git-send-email-tangchen@cn.fujitsu.com>
On Tue, 28 Jan 2014, Tang Chen wrote:
> On-stack variable numa_kernel_nodes in numa_clear_kernel_node_hotplug()
> was not initialized. So we need to initialize it.
>
> Signed-off-by: Tang Chen <tangchen@cn.fujitsu.com>
> Tested-by: Gu Zheng <guz.fnst@cn.fujitsu.com>
Reported-by: David Rientjes <rientjes@google.com>
> ---
> arch/x86/mm/numa.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/arch/x86/mm/numa.c b/arch/x86/mm/numa.c
> index 81b2750..00c9f09 100644
> --- a/arch/x86/mm/numa.c
> +++ b/arch/x86/mm/numa.c
> @@ -569,6 +569,8 @@ static void __init numa_clear_kernel_node_hotplug(void)
> unsigned long start, end;
> struct memblock_type *type = &memblock.reserved;
>
> + nodes_clear(numa_kernel_nodes)
Just initialize it with NODE_MASK_NONE.
> +
> /* Mark all kernel nodes. */
> for (i = 0; i < type->cnt; i++)
> node_set(type->regions[i].nid, numa_kernel_nodes);
next prev parent reply other threads:[~2014-01-28 9:10 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-28 9:05 [PATCH 0/2] numa, mem-hotplug: Fix array out of boundary in numa initialization Tang Chen
2014-01-28 9:05 ` [PATCH 1/2] numa, mem-hotplug: Initialize numa_kernel_nodes in numa_clear_kernel_node_hotplug() Tang Chen
2014-01-28 9:10 ` David Rientjes [this message]
2014-01-28 11:48 ` Ingo Molnar
2014-01-28 23:36 ` Tang Chen
2014-01-29 1:32 ` Gu Zheng
2014-01-29 7:19 ` Ingo Molnar
2014-01-28 9:05 ` [PATCH 2/2] numa, mem-hotplug: Fix array index overflow when synchronizing nid to memblock.reserved Tang Chen
2014-01-28 15:24 ` Dave Jones
2014-02-04 0:55 ` Josh Boyer
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=alpine.DEB.2.02.1401280109360.4244@chino.kir.corp.google.com \
--to=rientjes@google.com \
--cc=akpm@linux-foundation.org \
--cc=davej@redhat.com \
--cc=guz.fnst@cn.fujitsu.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=tangchen@cn.fujitsu.com \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
--cc=zhangyanfei@cn.fujitsu.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®