Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2821406imm; Sun, 30 Sep 2018 05:47:03 -0700 (PDT) X-Google-Smtp-Source: ACcGV62L2klpTFqJfdC8+Y7d/JBk9ghECPzbWoUM4PqnfumFmCOS9kzbEdZgEFoTpW/nqwPQe7lB X-Received: by 2002:a63:9612:: with SMTP id c18-v6mr6246227pge.21.1538311623626; Sun, 30 Sep 2018 05:47:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538311623; cv=none; d=google.com; s=arc-20160816; b=LNv+/ZfzK7QDhTU4B/R0zG6t0xqgU9+0fi0eufj3ZCgJXJDjQB6lGDrSm4E/evILbp f5Wmywa7pFYLN3D5RE1JqMiYo4Xzrf36gvlVLNaiJm7jfa0gPxLB9CFfLnFyfbl//POG 4bNssUScqP+dziUEOQA+hvRTi0t5lDXn16wVl0f4AafAvADIgPJk71ouVObD/5lChy3W Y4vM9hRs8oHN7KFN549Gzh9dLucuMoKqbvcBLE76Zk3feo3EkeCZrim3AZutyqScr9Hy oYwqjeKbqXQaXDpCR/hjTBsbLwY9SNPYrSxVbhyv7mwPmkg/8rmrxFh9LDlQvGe8fCxK 3NTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=B5IsJsfB3cNAguwaT3hrkonVwWpmRaf7ckui15xNVDY=; b=b/p9vVb/T+OFffYwrkb0qnYuQkqfPumms3nQh2c5SNSc8j5153z1Kak3RfxxdnQk8c y8nY3gmZvz8IP/14IZ9khyMB5IkZQVicXwu66XX8OlnmkDdCC+eQdZFh2xYXFn9MpWLq 1iChM/KMkFc70Gd4A3khziIRRP1I2xUkBxYCjdD7pTDSwR4G3erJgzkgmFRJWZw0Az8A 8Q0rvv34JfNk00RTVrGtvKDmBxVUsk7xRQhbSSGyBVasflfeQ5RMp1lYJZh96mnvz7pq BNoBG/bmYyh9aulYSR4uVnKGHwylIFbWqxy696WIkHmjqxsZL4El6KRJ25xriLt9UXzU pIPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=C2ikLI1x; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c66-v6si9705728pga.639.2018.09.30.05.46.47; Sun, 30 Sep 2018 05:47:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=C2ikLI1x; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728412AbeI3TTg (ORCPT + 99 others); Sun, 30 Sep 2018 15:19:36 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:51575 "EHLO out3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728299AbeI3TTg (ORCPT ); Sun, 30 Sep 2018 15:19:36 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 3A2E920DC2; Sun, 30 Sep 2018 08:37:49 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Sun, 30 Sep 2018 08:37:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=B5IsJsfB3cNAguwaT3hrkonVwWpmR af7ckui15xNVDY=; b=C2ikLI1x4L4/0eL6bIRouII0xBn6+VNmTd3Kh4o8DJffU 4THpHv9NG5Ao6vu1bnP+z4geFbYuDy00EaBwxFoUQ3CvP/Veo5cRZivkxO9NuYGT d886z+hC9v2bdEP4D4+O3KcW8JKrK/b67da1vPaEidvqwiPHM63XAUPLzc4yjzwW kb5Ht6NIE/NGSObCXoU0hcxvFdVNVyg4+agKYJeUwnfB+gsUg361ZFSh/bR4Nw6W jnuuanOF/MxRewt1Elt7f4NMnVpsc1RVwAVf4g1tnpJM4UMVCD3+VXUL7aLYJf+8 MYrCZ995cxRtpHvwn6zJeM8DQ7kDicizIVaKQGFqw== X-ME-Proxy: X-ME-Sender: Received: from localhost (c-73-221-170-44.hsd1.wa.comcast.net [73.221.170.44]) by mail.messagingengine.com (Postfix) with ESMTPA id 5F52FE46B8; Sun, 30 Sep 2018 08:37:45 -0400 (EDT) Date: Sun, 30 Sep 2018 05:37:44 -0700 From: Greg KH To: zhong jiang Cc: cl@linux.com, penberg@kernel.org, rientjes@google.com, iamjoonsoo.kim@lge.com, akpm@linux-foundation.org, mhocko@kernel.org, mgorman@suse.de, vbabka@suse.cz, andrea@kernel.org, kirill@shutemov.name, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [STABLE PATCH] slub: make ->cpu_partial unsigned int Message-ID: <20180930123744.GA20353@kroah.com> References: <1538303301-61784-1-git-send-email-zhongjiang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1538303301-61784-1-git-send-email-zhongjiang@huawei.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Sep 30, 2018 at 06:28:21PM +0800, zhong jiang wrote: > From: Alexey Dobriyan > > [ Upstream commit e5d9998f3e09359b372a037a6ac55ba235d95d57 ] > > /* > * cpu_partial determined the maximum number of objects > * kept in the per cpu partial lists of a processor. > */ > > Can't be negative. > > I hit a real issue that it will result in a large number of memory leak. > Becuase Freeing slabs are in interrupt context. So it can trigger this issue. > put_cpu_partial can be interrupted more than once. > due to a union struct of lru and pobjects in struct page, when other core handles > page->lru list, for eaxmple, remove_partial in freeing slab code flow, It will > result in pobjects being a negative value(0xdead0000). Therefore, a large number > of slabs will be added to per_cpu partial list. > > I had posted the issue to community before. The detailed issue description is as follows. > > https://www.spinics.net/lists/kernel/msg2870979.html > > After applying the patch, The issue is fixed. So the patch is a effective bugfix. > It should go into stable. > > Link: http://lkml.kernel.org/r/20180305200730.15812-15-adobriyan@gmail.com > Signed-off-by: Alexey Dobriyan > Acked-by: Christoph Lameter > Cc: Pekka Enberg > Cc: David Rientjes > Cc: Joonsoo Kim > Cc: # 4.4.x This didn't apply to 4.14.y and any reason you didn't cc: the stable mailing list for the other stable developers to see it? I've fixed up the patch, but next time please always cc: the stable list. thanks, greg k-h