From patchwork Wed May 11 13:22:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wang Hai X-Patchwork-Id: 12846165 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E1B6EC433F5 for ; Wed, 11 May 2022 13:04:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242967AbiEKNEO (ORCPT ); Wed, 11 May 2022 09:04:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237566AbiEKNEN (ORCPT ); Wed, 11 May 2022 09:04:13 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17902232773; Wed, 11 May 2022 06:04:11 -0700 (PDT) Received: from kwepemi100018.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Kyw810DN5zhZ2K; Wed, 11 May 2022 21:03:29 +0800 (CST) Received: from kwepemm600001.china.huawei.com (7.193.23.3) by kwepemi100018.china.huawei.com (7.221.188.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 11 May 2022 21:04:08 +0800 Received: from huawei.com (10.175.113.133) by kwepemm600001.china.huawei.com (7.193.23.3) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 11 May 2022 21:04:07 +0800 From: Wang Hai To: , , , , , , CC: , , , Subject: [PATCH 0/3] Refix the socket leak in xs_setup_local() Date: Wed, 11 May 2022 21:22:29 +0800 Message-ID: <20220511132232.4030-1-wanghai38@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.175.113.133] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemm600001.china.huawei.com (7.193.23.3) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Patch1 and patch2 roll back the wrong solution to fix socket leaks. Patch3 adds safe teardown mechanism to re-fix socket leaks. Wang Hai (3): Revert "SUNRPC: Ensure gss-proxy connects on setup" Revert "Revert "SUNRPC: attempt AF_LOCAL connect on setup"" SUNRPC: Fix local socket leak in xs_setup_local() include/linux/sunrpc/clnt.h | 1 - net/sunrpc/auth_gss/gss_rpc_upcall.c | 2 +- net/sunrpc/clnt.c | 3 --- net/sunrpc/xprtsock.c | 19 ++++++++++++++++++- 4 files changed, 19 insertions(+), 6 deletions(-)