login
Header Space

 
 

Re: [patch] mm: sparsemem memory_present() memory corruption fix

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Christoph Lameter <clameter@...>
Cc: Linus Torvalds <torvalds@...>, Pekka Enberg <penberg@...>, <linux-kernel@...>, Mel Gorman <mel@...>, Nick Piggin <npiggin@...>, Andrew Morton <akpm@...>, Rafael J. Wysocki <rjw@...>, <Yinghai.Lu@...>, <apw@...>, KAMEZAWA Hiroyuki <kamezawa.hiroyu@...>
Date: Tuesday, April 15, 2008 - 8:36 pm

* Christoph Lameter <clameter@sgi.com> wrote:


it is the right fix. The architecture memory setup code doesnt even 
_know_ the limits at this place in an open-coded way (and shouldnt know 
them) - and even later on we use pfn_valid() to determine whether to 
attempt to get to a struct page and free it into the buddy.

[ Of course the architecture code in general 'knows' about the limits - 
  but still it's cleaner to have a dumb enumeration interface here 
  combined with a resilient core code - that's always going to be less 
  fragile. ]

btw., i just did some bug history analysis, the calls were originally 
added when sparsemem support was added:

| commit 215c3409eed16c89b6d11ea1126bd9d4f36b9afd
| Author: Andy Whitcroft <apw@shadowen.org>
| Date:   Fri Jan 6 00:12:06 2006 -0800
|
|    [PATCH] i386 sparsemem for single node systems

in v2.6.15-1003-g215c340. (so this is appears to be an unfixed bug in 
v2.6.16 as well)

	Ingo
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [bug] mm/slab.c boot crash in -git, "kernel BUG at mm/sl..., Christoph Lameter, (Fri Apr 11, 3:25 pm)
Re: [bug] mm/slab.c boot crash in -git, "kernel BUG at mm/sl..., Christoph Lameter, (Fri Apr 11, 3:26 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 2:25 am)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Linus Torvalds, (Tue Apr 15, 12:02 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 12:15 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 4:23 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Linus Torvalds, (Tue Apr 15, 1:23 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Christoph Lameter, (Tue Apr 15, 3:39 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 3:54 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Christoph Lameter, (Tue Apr 15, 4:03 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 4:17 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Christoph Lameter, (Tue Apr 15, 4:54 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 4:58 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 5:08 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Pekka Enberg, (Tue Apr 15, 4:34 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 4:40 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Linus Torvalds, (Tue Apr 15, 5:06 pm)
Re: [patch] mm: sparsemem memory_present() memory corruption..., KAMEZAWA Hiroyuki, (Tue Apr 15, 9:48 pm)
Re: [patch] mm: sparsemem memory_present() memory corruption..., Christoph Lameter, (Tue Apr 15, 8:45 pm)
Re: [patch] mm: sparsemem memory_present() memory corruption..., Christoph Lameter, (Tue Apr 15, 8:19 pm)
Re: [patch] mm: sparsemem memory_present() memory corruption..., Ingo Molnar, (Tue Apr 15, 8:36 pm)
Re: [patch] mm: sparsemem memory_present() memory corruption..., Christoph Lameter, (Tue Apr 15, 8:46 pm)
Re: [patch] mm: sparsemem memory_present() memory corruption..., KAMEZAWA Hiroyuki, (Tue Apr 15, 10:20 pm)
Re: [patch] mm: sparsemem memory_present() memory corruption..., Christoph Lameter, (Tue Apr 15, 8:10 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 5:13 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 5:24 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Christoph Lameter, (Tue Apr 15, 5:42 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 5:55 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Christoph Lameter, (Tue Apr 15, 6:06 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Yinghai Lu, (Tue Apr 15, 7:18 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 6:13 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Christoph Lameter, (Tue Apr 15, 6:27 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Christoph Lameter, (Tue Apr 15, 7:22 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 7:27 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Christoph Lameter, (Tue Apr 15, 8:04 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Christoph Lameter, (Tue Apr 15, 7:32 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 6:32 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 4:28 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 4:34 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 4:42 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Christoph Lameter, (Tue Apr 15, 4:50 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 4:58 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Christoph Lameter, (Tue Apr 15, 5:08 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 5:19 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Mike Travis, (Tue Apr 15, 5:27 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Christoph Lameter, (Tue Apr 15, 5:21 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 5:23 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Christoph Lameter, (Tue Apr 15, 5:24 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 5:28 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 6:07 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Mike Travis, (Tue Apr 15, 5:43 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Christoph Lameter, (Tue Apr 15, 5:33 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Mike Travis, (Tue Apr 15, 5:16 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 3:35 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 3:41 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Pekka Enberg, (Tue Apr 15, 2:41 am)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 3:08 am)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 5:11 am)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Yinghai Lu, (Tue Apr 15, 4:31 am)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 4:46 am)
Re: [bug] mm/slab.c boot crash in -git, "kernel BUG at mm/sl..., Christoph Lameter, (Fri Apr 11, 3:28 pm)
Re: [bug] mm/slab.c boot crash in -git, "kernel BUG at mm/sl..., Christoph Lameter, (Sat Apr 12, 6:38 am)
speck-geostationary