Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759197Ab2EPGgR (ORCPT ); Wed, 16 May 2012 02:36:17 -0400 Received: from mail-lb0-f174.google.com ([209.85.217.174]:42246 "EHLO mail-lb0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759125Ab2EPGgQ (ORCPT ); Wed, 16 May 2012 02:36:16 -0400 Date: Wed, 16 May 2012 09:35:40 +0300 (EEST) From: Pekka Enberg X-X-Sender: penberg@tux.localdomain To: Christoph Lameter cc: Joonsoo Kim , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Greg Kroah-Hartman , stable@vger.kernel.org Subject: Re: [PATCH] slub: fix a memory leak in get_partial_node() In-Reply-To: Message-ID: References: <1337108498-4104-1-git-send-email-js1304@gmail.com> User-Agent: Alpine 2.02 (LFD 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 816 Lines: 26 On Wed, 16 May 2012, Joonsoo Kim wrote: > > > In the case which is below, > > > > 1. acquire slab for cpu partial list > > 2. free object to it by remote cpu > > 3. page->freelist = t > > > > then memory leak is occurred. > > Hmmm... Ok so we cannot assign page->freelist in get_partial_node() for > the cpu partial slabs. It must be done in the cmpxchg transition. > > Acked-by: Christoph Lameter Joonsoo, can you please fix up the stable submission format, add Christoph's ACK and resend? Pekka -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/