Return-Path: Received: from lgeamrelo02.lge.com ([156.147.1.126]:38833 "EHLO lgeamrelo02.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752624AbbFDBjy (ORCPT ); Wed, 3 Jun 2015 21:39:54 -0400 From: "Joonsoo Kim" To: "'Zefan Li'" , "'Ben Hutchings'" , "'Christoph Lameter'" , "'Pekka Enberg'" , "'stable'" References: <556E766C.80006@huawei.com> In-Reply-To: <556E766C.80006@huawei.com> Subject: RE: [BUG] a bug in slub on 3.2 and 3.4 Date: Thu, 4 Jun 2015 10:39:51 +0900 Message-ID: <001d01d09e67$59dead10$0d9c0730$@lge.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Language: ko Sender: stable-owner@vger.kernel.org List-ID: > -----Original Message----- > From: Zefan Li [mailto:lizefan@huawei.com] > Sent: Wednesday, June 03, 2015 12:37 PM > To: Ben Hutchings; Christoph Lameter; Pekka Enberg; Joonsoo Kim; stable > Subject: [BUG] a bug in slub on 3.2 and 3.4 > > I think 3.2 and 3.4 need to backport 43d77867a4f3 ("slub: refactoring > unfreeze_partials()") > > On 3.4 kernel, we found there are tens of thousands of free task_struct > slabs > in the partial list of node 0 when they should have been discarded, which > is > essentially a huge memory leak. > > Looking into the code, seems the cause is, we check n->nr_partial but the > page > might be in n2 where n != n2, and then the page is added to n2->partial > though > n2->partial > s->min_partial. Looks like it's possible scenario. And, yes, commit 43d77867a4f3 will fix the issue. Acked-by: Joonsoo Kim Thanks.