Re: repeatable slab corruption with LTP msgctl08

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Pekka J Enberg
Date: Thursday, June 12, 2008 - 3:35 am

Hi Andrew,

On Wed, 11 Jun 2008, Andrew Morton wrote:

Looking at the above dump, slabp->free is 0x0f and the bufctl it points to 
is 0xff ("BUFCTL_END") which marks the last element in the chain. This is 
wrong as the total number of objects in the slab (cachep->num) is 26 but 
the number of objects in use (slabp->inuse) is 20. So somehow you have 
managed to lost 6 objects from the bufctl chain.

I really don't understand how your bufctl chains has so many BUFCTL_END 
elements in the first place. It's doesn't look like the memory has been 
stomped on (slab->s_mem, for example, is 0xf2906088), so I'd look for a 
double kfree() of size 128 somewhere...

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

Messages in current thread:
repeatable slab corruption with LTP msgctl08, Andrew Morton, (Wed Jun 11, 10:13 pm)
Re: repeatable slab corruption with LTP msgctl08, Andrew Morton, (Wed Jun 11, 11:34 pm)
Re: repeatable slab corruption with LTP msgctl08, Andrew Morton, (Thu Jun 12, 1:02 am)
Re: repeatable slab corruption with LTP msgctl08, Andrew Morton, (Thu Jun 12, 1:15 am)
Re: repeatable slab corruption with LTP msgctl08, Andrew Morton, (Thu Jun 12, 1:16 am)
Re: repeatable slab corruption with LTP msgctl08, Andi Kleen, (Thu Jun 12, 1:35 am)
Re: repeatable slab corruption with LTP msgctl08, Andrew Morton, (Thu Jun 12, 2:08 am)
Re: repeatable slab corruption with LTP msgctl08, Andrew Morton, (Thu Jun 12, 3:24 am)
Re: repeatable slab corruption with LTP msgctl08, Pekka J Enberg, (Thu Jun 12, 3:35 am)
Re: repeatable slab corruption with LTP msgctl08, Andi Kleen, (Thu Jun 12, 3:41 am)
Re: repeatable slab corruption with LTP msgctl08, Christoph Lameter, (Thu Jun 12, 10:13 am)
Re: repeatable slab corruption with LTP msgctl08, Manfred Spraul, (Thu Jun 12, 11:33 am)
Re: repeatable slab corruption with LTP msgctl08, Andrew Morton, (Thu Jun 12, 11:41 am)
Re: repeatable slab corruption with LTP msgctl08, Manfred Spraul, (Thu Jun 12, 12:09 pm)
Re: repeatable slab corruption with LTP msgctl08, Andrew Morton, (Thu Jun 12, 12:20 pm)
Re: repeatable slab corruption with LTP msgctl08, Pekka Enberg, (Thu Jun 12, 12:27 pm)
Re: repeatable slab corruption with LTP msgctl08, Nadia Derbey, (Fri Jun 13, 12:03 am)
Re: repeatable slab corruption with LTP msgctl08, Nadia Derbey, (Fri Jun 13, 1:33 am)
Re: repeatable slab corruption with LTP msgctl08, Andrew Morton, (Fri Jun 13, 1:42 am)