Re: repeatable slab corruption with LTP msgctl08

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Pekka J Enberg <penberg@...>
Cc: Andrew Morton <akpm@...>, Nadia Derbey <Nadia.Derbey@...>, <linux-kernel@...>, <linux-mm@...>, Christoph Lameter <clameter@...>
Date: Thursday, June 12, 2008 - 2:33 pm

Pekka J Enberg wrote:
Hmm. double kfree() should be cached by the redzone code.
And I disagree with your link interpretation:

000: 00 e0 12 f2 88 32 c0 f7 88 00 00 00 88 50 90 f2
010:
inuse: 14 00 00 00 (20 entries in use, 6 should be free)
free:  0f 00 00 00
nodeid: 00 00 00 00
bufctl[0x00] ff ff ff ff 020: fd ff ff ff fd ff ff ff fd ff ff ff
bufctl[0x4] fd ff ff ff  030: fd ff ff ff fd ff ff ff fd ff ff ff
bufctl[0x8] fd ff ff ff  040: fd ff ff ff fd ff ff ff 00 00 00 00
bufctl[0x0c] fd ff ff ff 050: fd ff ff ff fd ff ff ff 19 00 00 00
bufctl[0x10] 17 00 00 00 060: fd ff ff ff fd ff ff ff 0b 00 00 00
bufctl[0x14] fd ff ff ff 070: fd ff ff ff fd ff ff ff fd ff ff ff
bufctl[0x18] fd ff ff ff 080: 10 00 00 00

free: points to entry 0x0f.
bufctl[0x0f] is 0x19, i.e. it points to entry 0x19
0x19 points to 0x10
0x10 points to 0x17
0x17 is a BUFCTL_ACTIVE - that's a bug.
but: 0x13 is a valid link entry, is points to 0x0b
0x0b points to 0x00, which is BUFCTL_END.

IMHO the most probable bug is a single bit error:
bufctl[0x10] should be 0x13 instead of 0x17.

What about printing all redzone words? That would allow us to validate the bufctl chain.

Andrew: Could you post the new oops?

--
	Manfred

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

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