Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6830169iob; Wed, 11 May 2022 06:21:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzx52gFD+dF35Gu/rEbyKjVmdVvINBKGERH0E2AtgoiTyWW0u0fjDy9J9RIbjWgeicQdAOm X-Received: by 2002:a05:6402:5244:b0:427:b24c:a799 with SMTP id t4-20020a056402524400b00427b24ca799mr29103177edd.291.1652275269161; Wed, 11 May 2022 06:21:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652275269; cv=none; d=google.com; s=arc-20160816; b=yHYuHSR/K0ZTJ6OU1Q5rGtskhW/hJvyYIjN8f2BvaTqGCATCEA7ZjgYd46BJ/XoFVK AujBrnD7y7JgAsA7un33NDdOl3ohDU642oo56gdkmzWYwuvXNzVGYkf2GkSG6r36qMOU EQxz5eLiQvONdEdfbLsM2ngwDwuCNeaCdeQ1Rt4lrtyVkE+TaLPgRQnG2V29JQ/2aylk xpJEuthLPDek4xD5NcZxu3Vp/NLjEwdJ+j/hu38fz0RSbeSBb/jnvlStF+tLq3LmruQb W5vfd2/ZzbMkjKUA2s8wlU6nsqaeyJUB6d5CiCL9YP3HsMWIu3FK5bP9IxRwxWhVnxK1 yHuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=tFodFUaE/d/yKnBR1X6R7FT/mI81OJeLc5iKkPUQvQE=; b=EM6XagqrSdzTLWwOl3rK3YXTC0Cya3Bvk6MH/ifAwqx5gYSBjdWbeFvq/mdgpiBDhi LGrDe26a2R3oDBWjVEJUVyaLovpV0hB2qtFqyPyZDpfj5ZJFP6+JieQ8SG33ZnAUAPZV lyFHxgxlEY2UjQSD+Fjkd4k5FsRlvJYxdNFkgqzrUsaVgO+J2XrxCBVk0thHRBRtU12J l7sy7dOcF7+3QlrwfVyo+e8zkcJB4R0i27usdixnFlEr+9q+lV1COROjgZHsfax9QoEp Fo5oxrD6+R+9XNT6TUwTSu7AoiPUDOE1taUMUwIqKygz4NEUZJAcpTOlKzFdw2UIF11C zvcw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id du17-20020a17090772d100b006e89b5401casi2962273ejc.831.2022.05.11.06.20.42; Wed, 11 May 2022 06:21:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243023AbiEKNEO (ORCPT + 99 others); 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 Content-Type: text/plain 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 X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) -- 2.17.1