Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp458983imm; Fri, 28 Sep 2018 01:08:51 -0700 (PDT) X-Google-Smtp-Source: ACcGV62J8Swb+bLYD/j6GiK4TaT9m6axuBKl9D7AhSd5Kl0wNiNi3qHP3hZueCNQvvk0BjnAVMt4 X-Received: by 2002:a17:902:447:: with SMTP id 65-v6mr14681301ple.325.1538122131587; Fri, 28 Sep 2018 01:08:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538122131; cv=none; d=google.com; s=arc-20160816; b=VtNamUsANwNVckKv8aiUgPfJqOLwyacp3pwld9IjcGrlqtWp2WHBZsEPrvY7qj2iYe J7mJ6RBLzmJIxW/BwQt1vS6U6BAk7DO3OI+88wJ/nO9779PrvTN+GI36jiEAz26xLICU Cy+Jv/7TZCGiS9sJmTcNbolyDWtTXe96gjuiOPG/yNwBQJ0nunAGjXhvT5wzuqoB2S7D 8u9E2XT2O5xecG5gD+V6XmwVLuakUy9851RDkUDphd9fdI1KnFMEVv/U4Zza+9wAMMNo T5+F5kZAgQGQ3N85kDMg6M9uYOQ0UVpvbC6dTtCat3zUFi0ce6xRtE8yXc2zPp/TPb1M Cwew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :references:subject:cc:to:mime-version:user-agent:from:date :message-id; bh=ipHk9YDq3RUb3ldpVttu/fCKemkEBA4kfCiF/889Nvg=; b=l7sBXXFV9yMSPRlsWGHMeQiXNE/27AKWxZtpiQLm3N5R45BAEk2SZaGKEkLbATVDys 700qBc4a2I7AhKN/QO5dyZtHFEhx2woI5bfa66TZ7ZtfB70zqxzObtpbCtaU+WqqNpGQ 1EaVvljdgU6oCha2vqjMprsewsLdDhZ5MQz0S/UsdDkGlWlC5UJiVJ+MOxKa7r7blQ8L uKTjZJJ7ipaxk+OLcEp8OQatKyeAwl90I4Jihqs+UaNM6NlAsaRGa3QUvqtKj2CrWGEN meMv1AACodrXteA+PH0QrnwLhzWYqi77ayxeqady7yAT+1rt+kNOXJY5SnU00MQ7N8/b b2oA== ARC-Authentication-Results: i=1; mx.google.com; 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 r73-v6si4523617pfk.83.2018.09.28.01.08.35; Fri, 28 Sep 2018 01:08:51 -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; 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 S1728930AbeI1O30 (ORCPT + 99 others); Fri, 28 Sep 2018 10:29:26 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:13167 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726440AbeI1O30 (ORCPT ); Fri, 28 Sep 2018 10:29:26 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 061F9FB218F9A; Fri, 28 Sep 2018 16:06:50 +0800 (CST) Received: from [127.0.0.1] (10.177.29.68) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.399.0; Fri, 28 Sep 2018 16:06:46 +0800 Message-ID: <5BADE115.7020701@huawei.com> Date: Fri, 28 Sep 2018 16:06:45 +0800 From: zhong jiang User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Greg KH CC: , , , , , , , , Subject: Re: [STABLE PATCH] slub: make ->cpu_partial unsigned int References: <1538059420-14439-1-git-send-email-zhongjiang@huawei.com> <20180927154647.GB31654@kroah.com> In-Reply-To: <20180927154647.GB31654@kroah.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.29.68] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018/9/27 23:46, Greg KH wrote: > On Thu, Sep 27, 2018 at 10:43:40PM +0800, zhong jiang wrote: >> From: Alexey Dobriyan >> >> /* >> * 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. >> Because 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. >> >> Link: 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. > > > This is not the correct way to submit patches for inclusion in the > stable kernel tree. Please read: > https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html > for how to do this properly. > > Will resend with proper format. Thanks, zhong jiang