Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp4794722imd; Tue, 30 Oct 2018 07:32:44 -0700 (PDT) X-Google-Smtp-Source: AJdET5ddPp6M7Laks9RaZWOSv8s12EVfom14OdBdpu22ThJZgb4VSYvAoLSGwheXGaBe6w3Yhysa X-Received: by 2002:a17:902:708b:: with SMTP id z11-v6mr19566458plk.151.1540909964450; Tue, 30 Oct 2018 07:32:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540909964; cv=none; d=google.com; s=arc-20160816; b=nW4mECxfg+updXmQAoBSQx0Lq7/BclTLqX0rNBGsDUbySo8sSQZxbxEAtVQo9oxmFj wDASCmDrBSNbiqxJgn9JDLFj+WyWncgeD4+4RGWZOFOf4GwTQJNydVlVAj0gj46RTHVd aUT7yDdISqpHPZO90lGUOVm8XgQ2hzWubU+Y52hoWj1RAYwPpOCJ3nF0NDWBmzS6VNbH W/KaH03K71/68gpwTlqBKb9cxbQOY+EY6RAsziytb9ZdPljUg7cvtvLhavpYH36QtlxF jdX+Nf8Lly2sj1hdKXVcq0IPaFmX6JQfGYy1o9/pVT7indyGhJnVH7qNv0Uoj1vuYGiB 2IGw== 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=jp4r5dqJOKdGv5yDF/PFR8tdJbDd+xnIzBHNdpsjB3Y=; b=DCzAVdkdRy6ambkscoftwuwl6eHgyLu6aGrxcOHCBZ14SZj7nulul4v6Qe/A4l2cEn D1YUFsXCsqSh9bDtYOM7CgHqL4iBvPsdOq2fIQsKC+3Ek54BIA+6xiTGhTx524XwsFUm Y9GODu7hZkNrCQN9eb2WrldJZvHt50LOLJsl16sQ0pCaiNpai7c532/Oscv1Hk7gib82 rfj9gjdG9CX8EP3c1lOCqLLWOAaRhy/PPF+N2DbrCpQ2KN30TDVQ+fltn6bVc4ZeyPpG UbwsiYthvFLVBUYYezDUDSr0qIoM+U705hKmMdX1oHrHTl6Gb7ke/YFnieBiqndRBXR1 9l6Q== 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 p186-v6si25607228pfb.200.2018.10.30.07.32.25; Tue, 30 Oct 2018 07:32:44 -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 S1728265AbeJ3XX1 (ORCPT + 99 others); Tue, 30 Oct 2018 19:23:27 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:59098 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728071AbeJ3XX0 (ORCPT ); Tue, 30 Oct 2018 19:23:26 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id CBEBAE0A75DE9; Tue, 30 Oct 2018 22:29:41 +0800 (CST) Received: from [127.0.0.1] (10.177.29.68) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.408.0; Tue, 30 Oct 2018 22:29:40 +0800 Message-ID: <5BD86AD3.1070102@huawei.com> Date: Tue, 30 Oct 2018 22:29:39 +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: Benjamin Coddington CC: , , , , LKML , Subject: Re: [Qestion] Lots of memory leaks when mounting and unmounting nfs client to server continuously. References: <5BD85266.6000301@huawei.com> <1DEE371C-69EB-4D92-8F78-535AA5203007@redhat.com> <5BD86392.7070200@huawei.com> <8975EA60-7C42-426A-ADA3-DEE0E2CEE964@redhat.com> In-Reply-To: <8975EA60-7C42-426A-ADA3-DEE0E2CEE964@redhat.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/10/30 22:03, Benjamin Coddington wrote: > On 30 Oct 2018, at 9:58, zhong jiang wrote: > >> On 2018/10/30 21:06, Benjamin Coddington wrote: >>> Hi zhong jiang, >>> >>> Try asking in linux-nfs.. but I'll also note that 3.10-stable may be >>> missing a number of fixes to leaks in the NFS GSS code. >>> >>> I can see a more than a few fixes to memory leaks with: git log >>> --grep=leak --oneline net/sunrpc/auth_gss/ >>> >> Thanks for your reply. I has tested some of them in the upsteam as you >> have said. but It fails to solve the issue completely. > What have you tested? It is hard to help without specifics. In the latest mainline. we can filter the following result by the key word "leak" in net/sunrpc/auth_gss. 0070ed3 Fix 16-byte memory leak in gssp_accept_sec_context_upcall (has been tested, Fail to work) 78794d1 svcrpc: don't leak contexts on PROC_DESTROY (has been tested, Fail to work) a1d1e9b svcrpc: fix memory leak in gssp_accept_sec_context_upcall (Not yet) e9776d0 SUNRPC: Fix a pipe_version reference leak (Not yet) cdead7c SUNRPC: Fix a potential memory leak in auth_gss (Not yet) 980e5a4 nfsd: fix rsi_cache reference count leak (Not yet) 07a2bf1 SUNRPC: Fix a memory leak in gss_create() (Not yet) 3ab9bb7 SUNRPC: Fix a memory leak in the auth credcache code (existed) 54f9247 knfsd: fix resource leak resulting in module refcount leak for rpcsec_gss_krb5.ko (existed) b797b5b [PATCH] knfsd: svcrpc: fix gss krb5i memory leak (existed) d4a30e7 RPCSEC_GSS: fix leak in krb5 code caused by superfluous kmalloc (Not yet) I suspect that commit d4a30e7 ("RPCSEC_GSS: fix leak in krb5 code caused by superfluous kmalloc") will solve the issue. Further, I will adjust the patch to 3.10. and see what it will happen. Actually I am not sure. :-[ Thanks, zhong jiang.