From nobody Fri Dec 16 21:25:35 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NYhwH4H5jzZgQS; Fri, 16 Dec 2022 21:25:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NYhwH3crDz41fL; Fri, 16 Dec 2022 21:25:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671225935; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rQLfbFNoCJMm6HPUWutHyrxafu4XVN9T2NAv66Ylgyw=; b=wlvMN4OFCNRFpUjwatLKUNBXSOR2Gm8FeXJiIAIkPzptxfF3nJ+7xvbruZlq/UD3ksfITy s8D/Wo2XRnkQmct6p1yWrdZT1uv8GMRdYRZR1zwIv4Ay716zWWa+ejtnpCnYUqPulrpFfR nl692xb8KS15V0gUHET0RnXHs5CtMo2adnyVKg8JWiJKaHDUf3ejALN62nfcn0Bxace/oo lnstu3H/9jG4XiOz1V/xCx9u/8JGpnk8aZslfhzb206ca8XD12Y5oTXsL+zYiQSzcmxMDB yNugTEPPy/xY/BBNOrkH7sJBaynnzoDePLyvqRN5GUvX56X0050LVcV0eXcbeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671225935; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rQLfbFNoCJMm6HPUWutHyrxafu4XVN9T2NAv66Ylgyw=; b=M7Z8pjh9WRgpcetKBhbjGDqMJ8U7f53+huTwKwt/MOAOlbas+94LoTKED3TeOz/r+vxmRZ QN0nQSFwpMlGzcPts1zJBi0egb/kMHge8oGrGu5V9GwhatW4DPFc+nsQfBGoQMs0Mkt89G ksB2jqYNy1+SK8ZeWp3/V6TJP2R1Q/q4b1YcWVvuXuTCE1UnTm4lPSzMLH45NfmiUeNRLV 6Aup9oufh45FrbSILGp0lOSfVXENKCdXNpqFTabFbqhcJ9L4VTtGNjSneTpA8GNVZMtR7b VVhgHLGwJsiJmJ+G7RejHtytasFLYDLPfH22FLQr93vgmfT6AA6DySZOlkGQOg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1671225935; a=rsa-sha256; cv=none; b=mx0Wtq0KZNdxZCCsZbXu6Q3Itsd6fKZ5AyudhltEFooxcYrBMQNTQeCg/QJvcLoAJAFEAM 3+fauK9KimiYQNZD9Ce9kErXFhZL2HhK0xCqv/iVPCIe+KCRTaN47HL/6dsnSX6TstzNxN /8CWOj/Trp3XRStVAP27iOaO9IkWFNdLeGZbbUkgcekv1Itq9XRGZ+62p3tyZgFRW54Wbb vjan4NEtJX/d4O0o9pvmQokZem1VAcxeWRj/aBUBMSEFuy5oU6NhfZ7yKATaehFpHqxkVJ PylBlfY+OZ7odML4vDF6RMWibmLtoK7fV5xpCVc37JS1tUeK7xnRTevlYFXtJw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NYhwH2fcRzRsT; Fri, 16 Dec 2022 21:25:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2BGLPZB1099128; Fri, 16 Dec 2022 21:25:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2BGLPZRD099127; Fri, 16 Dec 2022 21:25:35 GMT (envelope-from git) Date: Fri, 16 Dec 2022 21:25:35 GMT Message-Id: <202212162125.2BGLPZRD099127@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Rick Macklem Subject: git: a3c07a933d5c - stable/13 - rpcb_clnt.c: Do not force use of UDP List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: rmacklem X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: a3c07a933d5cb71a6d58cc9f0ecb5385a5e0ea29 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by rmacklem: URL: https://cgit.FreeBSD.org/src/commit/?id=a3c07a933d5cb71a6d58cc9f0ecb5385a5e0ea29 commit a3c07a933d5cb71a6d58cc9f0ecb5385a5e0ea29 Author: Rick Macklem AuthorDate: 2022-11-13 20:16:06 +0000 Commit: Rick Macklem CommitDate: 2022-12-16 21:23:49 +0000 rpcb_clnt.c: Do not force use of UDP Without this patch, the code in the rpcbind client forces the use of UDP. A comment notes that some rpcbind servers only support UDP. This makes NFSv3 mounts to Azure servers impossible, since they require use of TCP for rpcbind. Since the comment is very old (imported from NetBSD in 2001) and I do not believe any UDP only rpcbind servers will still exist, this patch comments out the code that forces use of UDP, so that NFSv3 mounts to Azure servers can work. For an NFSv3 mount, the "udp" mount option will still make mount_nfs use UDP for rpcbind so that can be used as a workaround for any old NFSv3 server that only supports rpcbind over UDP (if any such server still exists). I asked if doing this change is appropriate on freebsd-fs@ and I only got one reply (off list) that supported doing the change. PR: 267301 (cherry picked from commit 032b04626b671ec16deacd479569998b96c96142) --- lib/libc/rpc/rpcb_clnt.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/lib/libc/rpc/rpcb_clnt.c b/lib/libc/rpc/rpcb_clnt.c index f39d99bfeee3..b44fd1c5e77b 100644 --- a/lib/libc/rpc/rpcb_clnt.c +++ b/lib/libc/rpc/rpcb_clnt.c @@ -741,6 +741,16 @@ __rpcb_findaddr_timed(rpcprog_t program, rpcvers_t version, rpcvers_t pmapvers = 2; struct pmap pmapparms; + /* + * The comment below is now very old, having + * been committed to FreeBSD during an import + * from NetBSD in 2001. I do not believe there + * will still be any rpcbind servers that do + * UDP only and, since Azure requires use of + * TCP for NFSv3 mounts, comment this out + * so that NFSv3 mounts on Azure can work. + */ +#ifdef notnow /* * Try UDP only - there are some portmappers out * there that use UDP only. @@ -754,9 +764,9 @@ __rpcb_findaddr_timed(rpcprog_t program, rpcvers_t version, } client = getclnthandle(host, newnconf, &parms.r_addr); freenetconfigent(newnconf); - } else { + } else +#endif client = getclnthandle(host, nconf, &parms.r_addr); - } if (client == NULL) return (NULL);