Re: [bug, netconsole, SLUB] BUG skbuff_head_cache: Poison overwritten

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Ingo Molnar <mingo@...>
Cc: <linux-kernel@...>, <netdev@...>, Pekka Enberg <penberg@...>, Rafael J. Wysocki <rjw@...>
Date: Thursday, July 17, 2008 - 8:05 pm

On Fri, Jul 18, 2008 at 1:52 AM, Ingo Molnar <mingo@elte.hu> wrote:

Cool :)


Hm, if you think it was that slow, I am suspecting you were also using
SLUB debugging.

This can actually be negative, since now SLUB will access the objects
(+redzone +padding) and possibly trick kmemcheck into thinking they
were initialized in the first place.

But what we are really looking for is "read from freed memory"
messages. So I would actually recommend this: Disable kmemcheck's
reporting of uninitialized memory, simply to make it easier to spot
the "freed" messages more easily.

Maybe something like this (warning: whitespace-munged):

diff --git a/arch/x86/mm/kmemcheck/error.c b/arch/x86/mm/kmemcheck/error.c
index 56410c6..6944cb7 100644
--- a/arch/x86/mm/kmemcheck/error.c
+++ b/arch/x86/mm/kmemcheck/error.c
@@ -98,6 +98,9 @@ void kmemcheck_error_save(enum kmemcheck_shadow state,
                return;
        prev_ip = regs->ip;

+       if (state == KMEMCHECK_SHADOW_UNINITIALIZED)
+               return;
+
        e = error_next_wr();
        if (!e)
                return;


If this only happens during boot, it would also be a good idea to
simply reboot the machine a lot...


Vegard

-- 
"The animistic metaphor of the bug that maliciously sneaked in while
the programmer was not looking is intellectually dishonest as it
disguises that the error is the programmer's own creation."
	-- E. W. Dijkstra, EWD1036
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [bug, netconsole, SLUB] BUG skbuff_head_cache: Poison ov..., Christoph Lameter, (Fri Jul 18, 9:55 am)
Re: [bug, netconsole, SLUB] BUG skbuff_head_cache: Poison ov..., Christoph Lameter, (Mon Jul 21, 12:22 pm)
Re: [bug, netconsole, SLUB] BUG skbuff_head_cache: Poison ov..., Christoph Lameter, (Mon Jul 21, 12:19 pm)
Re: [bug, netconsole, SLUB] BUG skbuff_head_cache: Poison ov..., Christoph Lameter, (Fri Jul 18, 9:54 am)
Re: [bug, netconsole, SLUB] BUG skbuff_head_cache: Poison ov..., Evgeniy Polyakov, (Fri Jul 18, 12:07 pm)
Re: [bug, netconsole, SLUB] BUG skbuff_head_cache: Poison ov..., Christoph Lameter, (Fri Jul 18, 10:48 am)
Re: [bug, netconsole, SLUB] BUG skbuff_head_cache: Poison ov..., Vegard Nossum, (Thu Jul 17, 8:05 pm)