提交 e10b5170 编写于 作者: T Trond Myklebust 提交者: Yongqiang Liu

Revert "SUNRPC: attempt AF_LOCAL connect on setup"

mainline inclusion
from mainline-v5.18-rc6
commit a3d0562d
category: bugfix
bugzilla: https://gitee.com/src-openeuler/kernel/issues/I57MRF
CVE: NA

-------------------------------------------

This reverts commit 7073ea87.

We must not try to connect the socket while the transport is under
construction, because the mechanisms to safely tear it down are not in
place. As the code stands, we end up leaking the sockets on a connection
error.
Reported-by: Nwanghai (M) <wanghai38@huawei.com>
Cc: stable@vger.kernel.org
Signed-off-by: NTrond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: NWang Hai <wanghai38@huawei.com>
Reviewed-by: NZhang Xiaoxu <zhangxiaoxu5@huawei.com>
Reviewed-by: NWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: NYongqiang Liu <liuyongqiang13@huawei.com>
上级 7734aa05
......@@ -2978,9 +2978,6 @@ static struct rpc_xprt *xs_setup_local(struct xprt_create *args)
}
xprt_set_bound(xprt);
xs_format_peer_addresses(xprt, "local", RPCBIND_NETID_LOCAL);
ret = ERR_PTR(xs_local_setup_socket(transport));
if (ret)
goto out_err;
break;
default:
ret = ERR_PTR(-EAFNOSUPPORT);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册