Re: [PATCH] SLUB: clear c->freelist in __slab_alloc()/load_freelist:/SlabDebug path

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Benny Halevy <bhalevy@...>
Cc: Christoph Lameter <clameter@...>, Linux Kernel <linux-kernel@...>
Date: Tuesday, May 13, 2008 - 2:40 pm

Hi Benny,

On Mon, May 12, 2008 at 11:32 PM, Benny Halevy <bhalevy@panasas.com> wrote:

But for debug pages, we never load c->page->freelist to c->freelist so
it should always be NULL.


Looking at this, we're oopsing at:

   0:   48 8b 04 c2             mov    (%rdx,%rax,8),%rax

where rdx is c->freelist and rax c->offset. The the value for
c->freelist ("3200100010100000") doesn't make much sense. Furthermore,
we never if this really were a bug in __slab_alloc() shouldn't we be
hitting it more often?

How did you make SLUB hit the debug path since you have
CONFIG_SLUB_DEBUG_ON disabled?

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

Messages in current thread:
Re: [PATCH] SLUB: clear c->freelist in __slab_alloc()/loa..., Pekka Enberg, (Tue May 13, 2:40 pm)
Re: [PATCH] SLUB: clear c-&gt;freelist in __slab_alloc()/loa..., Christoph Lameter, (Wed May 14, 1:44 pm)
Re: [PATCH] SLUB: clear c-&gt;freelist in __slab_alloc()/loa..., Christoph Lameter, (Wed May 14, 1:58 pm)