linux/include/asm-powerpc
Adam Litke c9169f8747 [POWERPC] hugepage BUG fix
On Tue, 2006-08-15 at 08:22 -0700, Dave Hansen wrote:
> kernel BUG in cache_free_debugcheck at mm/slab.c:2748!

Alright, this one is only triggered when slab debugging is enabled.  The
slabs are assumed to be aligned on a HUGEPTE_TABLE_SIZE boundary.  The free
path makes use of this assumption and uses the lowest nibble to pass around
an index into an array of kmem_cache pointers.  With slab debugging turned
on, the slab is still aligned, but the "working" object pointer is not.
This would break the assumption above that a full nibble is available for
the PGF_CACHENUM_MASK.

The following patch reduces PGF_CACHENUM_MASK to cover only the two least
significant bits, which is enough to cover the current number of 4 pgtable
cache types.  Then use this constant to mask out the appropriate part of
the huge pte pointer.

Signed-off-by: Adam Litke <agl@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2006-08-24 10:07:23 +10:00
..
2006-06-28 15:18:55 +10:00
2006-01-09 14:49:54 +11:00
2005-09-28 15:42:53 +10:00
2006-04-29 16:15:57 +10:00
2006-02-15 15:32:22 -08:00
2006-06-30 18:20:44 +02:00
2006-06-15 19:31:26 +10:00
2006-07-03 15:27:00 -07:00
2006-08-24 10:07:23 +10:00
2006-06-30 18:20:44 +02:00
2006-06-21 15:01:29 +10:00
2005-10-31 13:37:12 +11:00
2005-11-03 16:24:25 +11:00
2006-06-29 16:58:06 -07:00
2005-11-03 16:02:23 +11:00
2006-03-25 09:41:40 -08:00
2006-06-21 15:01:32 +10:00
2006-04-29 18:07:54 +10:00
2005-11-01 14:36:55 +11:00
2006-06-28 15:18:56 +10:00
2005-11-03 16:59:17 +11:00