[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.00.1112131025370.23111@router.home>
Date: Tue, 13 Dec 2011 10:27:53 -0600 (CST)
From: Christoph Lameter <cl@...ux.com>
To: Eric Dumazet <eric.dumazet@...il.com>
cc: zhihua che <zhihua.che@...il.com>, linux-kernel@...r.kernel.org,
Pekka Enberg <penberg@...helsinki.fi>
Subject: Re: [Slub allocator] There are chances that kmem_cache_cpu->freelist
gets lost if the process happens to be rescheduled to a differenet cpu before
the local_irq_save() completes in __slab_alloc()
On Tue, 13 Dec 2011, Eric Dumazet wrote:
> We can be interrupted and the IRQ handler can free an object an populate
> freelist too. So the check must always be done.
True. So a small memory leak that remained undetected. Hmm.... Wonder how
one can create some diagnostics to allow detection of this in the future.
Acked-by: Christoph Lameter <cl@...ux.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists