Re: repeatable slab corruption with LTP msgctl08

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

Andrew Morton wrote:
bufctl[0x18] 0x1b instead of 0x1f yields a valid bufctl chain.
bufctl[0x10]: 0x13 instead of 0x17 creates a valid tree

bufctl[0x00] 13 00 00 00 020: fd ff ff ff fd ff ff ff fd ff ff ff
bufctl[0x04]  fd ff ff ff 030: 06 00 00 00 ff ff ff ff fd ff ff ff
bufctl[0x08] 18 00 00 00 040: fd ff ff ff fd ff ff ff 17 00 00 00
bufctl[0x0c] fd ff ff ff 050: fd ff ff ff fd ff ff ff fd ff ff ff
bufctl[0x10] fd ff ff ff 060: fd ff ff ff fd ff ff ff 05 00 00 00
bufctl[0x14] fd ff ff ff 070: fd ff ff ff fd ff ff ff 00 00 00 00
bufctl[0x18] 0f 00 00 00 080: fd ff ff ff

bufctl[0x18] is wrong, it must be 0x0b

bufcfl[0x00] fd ff ff ff 020: fd ff ff ff fd ff ff ff 07 00 00 00
bufctl[0x04] fd ff ff ff 030: fd ff ff ff fd ff ff ff 08 00 00 00
bufctl[0x08] 0f 00 00 00 040: fd ff ff ff fd ff ff ff ff ff ff ff
bufctl[0x0c] fd ff ff ff 050: fd ff ff ff fd ff ff ff fd ff ff ff
bufctl[0x10] fd ff ff ff 060: fd ff ff ff 03 00 00 00 fd ff ff ff
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: fd ff ff ff

bufctl[0x08] is wrong, it must be 0x0b instead of 0x0f

All bugs appear to be a spurious 0x04 in a bufctl[nr%8==0].

Either someone does a set_bit() or your cpu is breaking down.

 From looking at the the msgctl08 test: it shouldn't produce any races, 
it just does lots of bulk msgsnd()/msgrcv() operations. Always one 
thread sends, one thread receives on each queue. It's probably more a 
scheduler stresstest than anything else.

Attached is a completely untested patch:
- add 8 bytes to each slabp struct: This changes the alignment of the 
bufctl entries.
- add a hexdump of the redzone bytes. Andrew: how do you log the oops? 
it might scroll of the screen.

--
    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)