From: WANG Chao <chaowang@redhat.com>
To: David Rientjes <rientjes@google.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>,
Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>,
x86@kernel.org, Andrew Morton <akpm@linux-foundation.org>,
Grygorii Strashko <grygorii.strashko@ti.com>,
Pavel Machek <pavel@ucw.cz>,
"Lee, Chun-Yi" <joeyli.kernel@gmail.com>,
Xishi Qiu <qiuxishi@huawei.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] x86, e820: clean up around sanitize_e820_map()
Date: Thu, 22 Jan 2015 10:25:44 +0800 [thread overview]
Message-ID: <20150122022544.GA8670@dhcp-129-179.nay.redhat.com> (raw)
In-Reply-To: <alpine.DEB.2.10.1501211450330.2716@chino.kir.corp.google.com>
Hi, David
On 01/21/15 at 02:51pm, David Rientjes wrote:
> On Wed, 7 Jan 2015, WANG Chao wrote:
>
> > The argument 3 of sanitize_e820_map() will only update upon a successful
> > sanitization. Some of the callers may not be aware of this in the past.
> > Now clean up these callers.
> >
> > Signed-off-by: WANG Chao <chaowang@redhat.com>
>
> Nice, but it's incomplete: it should also cleanup
> default_machine_specific_memory_setup().
default_machine_specific_memory_setup() is special. Because
boot_params.e820_entries is 8bit unsigned, and sanitize_e820_map() which
takes 32bit unsigned, will step on other member of boot_params next to
e820_entries.
Thanks
WANG Chao
next prev parent reply other threads:[~2015-01-22 2:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-07 3:37 [PATCH] x86, e820: clean up around sanitize_e820_map() WANG Chao
2015-01-21 22:51 ` David Rientjes
2015-01-22 2:25 ` WANG Chao [this message]
2015-01-23 15:18 ` [tip:x86/mm] x86, e820: Clean up sanitize_e820_map() users tip-bot for WANG Chao
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=20150122022544.GA8670@dhcp-129-179.nay.redhat.com \
--to=chaowang@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=grygorii.strashko@ti.com \
--cc=hpa@zytor.com \
--cc=joeyli.kernel@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=pavel@ucw.cz \
--cc=qiuxishi@huawei.com \
--cc=rientjes@google.com \
--cc=tglx@linutronix.de \
--cc=x86@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.