From: Dave Hansen <haveblue@us.ibm.com>
To: Michael Buesch <mb@bu3sch.de>
Cc: linuxppc-dev@ozlabs.org, linux-mm@kvack.org, apw@shadowen.org,
mkravetz@us.ibm.com, hch@infradead.org, jk@ozlabs.org,
linux-kernel@vger.kernel.org, akpm@osdl.org, paulus@samba.org,
benh@kernel.crashing.org, gone@us.ibm.com,
cbe-oss-dev@ozlabs.org, naveen.b.s@intel.com
Subject: Re: [PATCH] Fix sparsemem on Cell
Date: Fri, 15 Dec 2006 09:57:50 -0800 [thread overview]
Message-ID: <1166205470.8105.28.camel@localhost.localdomain> (raw)
In-Reply-To: <200612151822.23764.mb@bu3sch.de>
On Fri, 2006-12-15 at 18:22 +0100, Michael Buesch wrote:
> On Friday 15 December 2006 17:53, Dave Hansen wrote:
> > lxc-dave/init/main.c | 4 ++++
> > lxc-dave/mm/page_alloc.c | 28 +++++++++++++++++++++++++---
> > 2 files changed, 29 insertions(+), 3 deletions(-)
> >
> > diff -puN init/main.c~sparsemem-fix init/main.c
> > --- lxc/init/main.c~sparsemem-fix 2006-12-15 08:49:53.000000000 -0800
> > +++ lxc-dave/init/main.c 2006-12-15 08:49:53.000000000 -0800
> > @@ -770,6 +770,10 @@ static int init(void * unused)
> > free_initmem();
> > unlock_kernel();
> > mark_rodata_ro();
> > + /*
> > + * Memory hotplug requires that this system_state transition
> > + * happer after free_initmem(). (see memmap_init_zone())
>
> s/happer/happens/
>
> Other than that, can't this possibly race and crash here?
> I mean, it's not a big race window, but it can happen, no?
That's a good point. Nice eye.
There are three routes in here: boot-time init, an ACPI call, and a
write to a sysfs file. Bootmem is taken care of. The write to a sysfs
file can't happen yet because userspace isn't up.
The only question would be about ACPI. I _guess_ an ACPI event could
come in at any time, and could hit this race window.
One other thought I had was to add an argument to memmap_init_zone() to
indicate that the memory being fed to it was contiguous and did not need
the validation checks.
Anybody have thoughts on that?
-- Dave
WARNING: multiple messages have this Message-ID (diff)
From: Dave Hansen <haveblue@us.ibm.com>
To: Michael Buesch <mb@bu3sch.de>
Cc: linuxppc-dev@ozlabs.org, linux-mm@kvack.org, apw@shadowen.org,
mkravetz@us.ibm.com, hch@infradead.org, jk@ozlabs.org,
linux-kernel@vger.kernel.org, akpm@osdl.org, paulus@samba.org,
benh@kernel.crashing.org, gone@us.ibm.com,
cbe-oss-dev@ozlabs.org, naveen.b.s@intel.com
Subject: Re: [PATCH] Fix sparsemem on Cell
Date: Fri, 15 Dec 2006 09:57:50 -0800 [thread overview]
Message-ID: <1166205470.8105.28.camel@localhost.localdomain> (raw)
In-Reply-To: <200612151822.23764.mb@bu3sch.de>
On Fri, 2006-12-15 at 18:22 +0100, Michael Buesch wrote:
> On Friday 15 December 2006 17:53, Dave Hansen wrote:
> > lxc-dave/init/main.c | 4 ++++
> > lxc-dave/mm/page_alloc.c | 28 +++++++++++++++++++++++++---
> > 2 files changed, 29 insertions(+), 3 deletions(-)
> >
> > diff -puN init/main.c~sparsemem-fix init/main.c
> > --- lxc/init/main.c~sparsemem-fix 2006-12-15 08:49:53.000000000 -0800
> > +++ lxc-dave/init/main.c 2006-12-15 08:49:53.000000000 -0800
> > @@ -770,6 +770,10 @@ static int init(void * unused)
> > free_initmem();
> > unlock_kernel();
> > mark_rodata_ro();
> > + /*
> > + * Memory hotplug requires that this system_state transition
> > + * happer after free_initmem(). (see memmap_init_zone())
>
> s/happer/happens/
>
> Other than that, can't this possibly race and crash here?
> I mean, it's not a big race window, but it can happen, no?
That's a good point. Nice eye.
There are three routes in here: boot-time init, an ACPI call, and a
write to a sysfs file. Bootmem is taken care of. The write to a sysfs
file can't happen yet because userspace isn't up.
The only question would be about ACPI. I _guess_ an ACPI event could
come in at any time, and could hit this race window.
One other thought I had was to add an argument to memmap_init_zone() to
indicate that the memory being fed to it was contiguous and did not need
the validation checks.
Anybody have thoughts on that?
-- Dave
--
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:"dont@kvack.org"> email@kvack.org </a>
WARNING: multiple messages have this Message-ID (diff)
From: Dave Hansen <haveblue@us.ibm.com>
To: Michael Buesch <mb@bu3sch.de>
Cc: akpm@osdl.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org,
hch@infradead.org, linuxppc-dev@ozlabs.org, paulus@samba.org,
mkravetz@us.ibm.com, gone@us.ibm.com, cbe-oss-dev@ozlabs.org,
naveen.b.s@intel.com
Subject: Re: [PATCH] Fix sparsemem on Cell
Date: Fri, 15 Dec 2006 09:57:50 -0800 [thread overview]
Message-ID: <1166205470.8105.28.camel@localhost.localdomain> (raw)
In-Reply-To: <200612151822.23764.mb@bu3sch.de>
On Fri, 2006-12-15 at 18:22 +0100, Michael Buesch wrote:
> On Friday 15 December 2006 17:53, Dave Hansen wrote:
> > lxc-dave/init/main.c | 4 ++++
> > lxc-dave/mm/page_alloc.c | 28 +++++++++++++++++++++++++---
> > 2 files changed, 29 insertions(+), 3 deletions(-)
> >
> > diff -puN init/main.c~sparsemem-fix init/main.c
> > --- lxc/init/main.c~sparsemem-fix 2006-12-15 08:49:53.000000000 -0800
> > +++ lxc-dave/init/main.c 2006-12-15 08:49:53.000000000 -0800
> > @@ -770,6 +770,10 @@ static int init(void * unused)
> > free_initmem();
> > unlock_kernel();
> > mark_rodata_ro();
> > + /*
> > + * Memory hotplug requires that this system_state transition
> > + * happer after free_initmem(). (see memmap_init_zone())
>
> s/happer/happens/
>
> Other than that, can't this possibly race and crash here?
> I mean, it's not a big race window, but it can happen, no?
That's a good point. Nice eye.
There are three routes in here: boot-time init, an ACPI call, and a
write to a sysfs file. Bootmem is taken care of. The write to a sysfs
file can't happen yet because userspace isn't up.
The only question would be about ACPI. I _guess_ an ACPI event could
come in at any time, and could hit this race window.
One other thought I had was to add an argument to memmap_init_zone() to
indicate that the memory being fed to it was contiguous and did not need
the validation checks.
Anybody have thoughts on that?
-- Dave
next prev parent reply other threads:[~2006-12-15 17:57 UTC|newest]
Thread overview: 68+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-15 16:53 [PATCH] Fix sparsemem on Cell Dave Hansen
2006-12-15 16:53 ` Dave Hansen
2006-12-15 16:53 ` Dave Hansen
2006-12-15 17:11 ` Andy Whitcroft
2006-12-15 17:11 ` Andy Whitcroft
2006-12-15 17:11 ` Andy Whitcroft
2006-12-15 17:24 ` Dave Hansen
2006-12-15 17:24 ` Dave Hansen
2006-12-15 17:24 ` Dave Hansen
2006-12-15 19:45 ` Andrew Morton
2006-12-15 19:45 ` Andrew Morton
2006-12-15 19:45 ` Andrew Morton
2006-12-16 8:03 ` KAMEZAWA Hiroyuki
2006-12-16 8:03 ` KAMEZAWA Hiroyuki
2006-12-16 8:03 ` KAMEZAWA Hiroyuki
2006-12-18 21:13 ` Dave Hansen
2006-12-18 21:13 ` Dave Hansen
2006-12-18 21:13 ` Dave Hansen
2006-12-18 22:15 ` Christoph Hellwig
2006-12-18 22:15 ` Christoph Hellwig
2006-12-18 22:15 ` Christoph Hellwig
2006-12-18 22:54 ` Arnd Bergmann
2006-12-18 22:54 ` Arnd Bergmann
2006-12-18 22:54 ` Arnd Bergmann
2006-12-18 23:16 ` Dave Hansen
2006-12-18 23:16 ` Dave Hansen
2006-12-18 23:16 ` Dave Hansen
2006-12-19 0:16 ` KAMEZAWA Hiroyuki
2006-12-19 0:16 ` KAMEZAWA Hiroyuki
2006-12-19 0:16 ` KAMEZAWA Hiroyuki
2006-12-19 8:59 ` Arnd Bergmann
2006-12-19 8:59 ` Arnd Bergmann
2006-12-19 8:59 ` Arnd Bergmann
2006-12-19 19:34 ` Dave Hansen
2006-12-19 19:34 ` Dave Hansen
2006-12-19 19:34 ` Dave Hansen
2007-01-06 1:10 ` [PATCH] Fix sparsemem on Cell (take 3) Dave Hansen
2007-01-06 1:10 ` Dave Hansen
2007-01-06 1:10 ` Dave Hansen
2007-01-06 4:52 ` John Rose
2007-01-06 4:52 ` John Rose
2007-01-06 4:52 ` John Rose
2007-01-07 8:58 ` Dave Hansen
2007-01-07 8:58 ` Dave Hansen
2007-01-07 8:58 ` Dave Hansen
2007-01-07 12:07 ` Arnd Bergmann
2007-01-07 12:07 ` Arnd Bergmann
2007-01-07 12:07 ` Arnd Bergmann
2007-01-08 6:31 ` Tim Pepper
2007-01-08 6:31 ` Tim Pepper
2007-01-08 6:47 ` Tim Pepper
2007-01-08 6:47 ` Tim Pepper
2007-01-08 6:47 ` Tim Pepper
2006-12-15 17:22 ` [PATCH] Fix sparsemem on Cell Michael Buesch
2006-12-15 17:22 ` Michael Buesch
2006-12-15 17:22 ` Michael Buesch
2006-12-15 17:57 ` Dave Hansen [this message]
2006-12-15 17:57 ` Dave Hansen
2006-12-15 17:57 ` Dave Hansen
2006-12-15 20:21 ` Benjamin Herrenschmidt
2006-12-15 20:21 ` Benjamin Herrenschmidt
2006-12-15 20:21 ` Benjamin Herrenschmidt
-- strict thread matches above, loose matches on Subject: below --
2006-12-15 17:14 Dave Hansen
2006-12-15 17:14 ` Dave Hansen
2006-12-15 17:14 ` Dave Hansen
2006-12-17 23:02 ` Arnd Bergmann
2006-12-17 23:02 ` Arnd Bergmann
2006-12-17 23:02 ` Arnd Bergmann
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=1166205470.8105.28.camel@localhost.localdomain \
--to=haveblue@us.ibm.com \
--cc=akpm@osdl.org \
--cc=apw@shadowen.org \
--cc=benh@kernel.crashing.org \
--cc=cbe-oss-dev@ozlabs.org \
--cc=gone@us.ibm.com \
--cc=hch@infradead.org \
--cc=jk@ozlabs.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=mb@bu3sch.de \
--cc=mkravetz@us.ibm.com \
--cc=naveen.b.s@intel.com \
--cc=paulus@samba.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.