lkml.org 
[lkml]   [2004]   [Oct]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: 2.6.9-rc3-mm2
Grant Wilson <gww@btinternet.com> wrote:
>
> Andrew Morton wrote:
> [snip]
>
> >>IP: routing cache hash table of 4096 buckets, 32KBytes
> >>kmem_cache_create: Early error in slab ip_fib_hash
> >>-----[ cut here ] -----
> >>kernel BUG at mm/slab.c:1185!
> >>invalid operand: 0000 [#1]
> >>PREEMPT
>
> [snip]
>
> I am hitting the same stop on my amd64 box. With your patch the
> following is reported:
>
> in_interrupt(): 268435200 (ie 0x0fffff00)
> preempt_count(): ffffffff

heh, OK, someone goofed there.

Could you try this patch? It'll locate the bug for us.

--- 25/include/linux/preempt.h~a Mon Oct 4 14:31:24 2004
+++ 25-akpm/include/linux/preempt.h Mon Oct 4 14:31:49 2004
@@ -19,6 +19,8 @@ do { \
#define dec_preempt_count() \
do { \
preempt_count()--; \
+ if (preempt_count() == -1) \
+ *(char *)0 = 0; \
} while (0)

#ifdef CONFIG_PREEMPT
_

(I'd have used BUG, but that might cause inclusion problems)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:06    [from the cache]
©2003-2011 Jasper Spaans