Re: Redzone overwritten with CONFIG_SECURITY

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Vegard Nossum
Date: Tuesday, May 27, 2008 - 7:23 am

Hello!

On Tue, May 27, 2008 at 4:00 PM, Eric Sesterhenn <snakebyte@gmx.de> wrote:

Oy, whow! :-)

I actually tried to reproduce your problem yesterday to see if
kmemcheck would catch it, but I couldn't reproduce it, so I gave up
:-(


This is sort of expected. kmemcheck is not directly incompatible with
slub debugging, but it may produce some false positives (that we
haven't worked out yet). So I recommend that you turn slub debugging
off, like you did below.


Hm, yes. It would be nice to see the actual kmemcheck error message as
well in order to determine the cause of this.

I don't really see how that write (= fp) can cause an error, so it has
to be the s->offset dereference that is doing it. That seems extremely
unlikely and would indicate a bug in SLUB itself...

Out of curiosity, will your crash go away entirely if you compile the
kernel using SLAB?


It would be nice to see the whole dmesg if you can get it.

You should also make sure you have either

CONFIG_KMEMCHECK_ENABLED_BY_DEFAULT=y

set in your config or that you are booting with the kmemcheck=1
command-line option; otherwise, you'll only get the first warning
before kmemcheck auto-disables itself. Forcing it to stay on will
potentially give us more useful output.

There is actually a newer kmemcheck tree which supports
kmemcheck+SLAB, but the version you are running should be usable for
debugging your problem, so I'm not going to ask you to try that.

Thanks for trying it out, it would feel good if kmemcheck would
finally be useful for something :-) Good luck.


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
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Redzone overwritten with CONFIG_SECURITY, Eric Sesterhenn, (Mon May 26, 7:34 am)
Re: Redzone overwritten with CONFIG_SECURITY, Eric Sesterhenn, (Tue May 27, 7:00 am)
Re: Redzone overwritten with CONFIG_SECURITY, Vegard Nossum, (Tue May 27, 7:23 am)
Re: Redzone overwritten with CONFIG_SECURITY, Eric Sesterhenn, (Tue May 27, 7:53 am)
Re: Redzone overwritten with CONFIG_SECURITY, Pekka Enberg, (Tue May 27, 7:55 am)
Re: Redzone overwritten with CONFIG_SECURITY, Pekka Enberg, (Tue May 27, 8:00 am)
Re: Redzone overwritten with CONFIG_SECURITY, Eric Sesterhenn, (Tue May 27, 8:11 am)
Re: Redzone overwritten with CONFIG_SECURITY, Eric Sesterhenn, (Tue May 27, 9:11 am)
Re: Redzone overwritten with CONFIG_SECURITY, Chris Wright, (Tue May 27, 10:47 am)
Re: Redzone overwritten with CONFIG_SECURITY, Pekka Enberg, (Tue May 27, 10:59 am)
Re: Redzone overwritten with CONFIG_SECURITY, Christoph Lameter, (Tue May 27, 11:04 am)
Re: Redzone overwritten with CONFIG_SECURITY, Pekka Enberg, (Tue May 27, 11:25 am)
Re: Redzone overwritten with CONFIG_SECURITY, Eric Sesterhenn, (Wed May 28, 3:03 am)
Re: Redzone overwritten with CONFIG_SECURITY, Chris Wright, (Wed May 28, 2:51 pm)
Re: Redzone overwritten with CONFIG_SECURITY, Chris Wright, (Sat May 31, 4:24 pm)