From owner-freebsd-net@freebsd.org Mon Feb 18 15:50:17 2019 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9383D14DF72C for ; Mon, 18 Feb 2019 15:50:17 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from CAN01-TO1-obe.outbound.protection.outlook.com (mail-eopbgr670084.outbound.protection.outlook.com [40.107.67.84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "GlobalSign Organization Validation CA - SHA256 - G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 953186D271 for ; Mon, 18 Feb 2019 15:50:15 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from QB1PR01MB3537.CANPRD01.PROD.OUTLOOK.COM (52.132.89.15) by QB1PR01MB3636.CANPRD01.PROD.OUTLOOK.COM (52.132.84.205) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1622.16; Mon, 18 Feb 2019 15:50:14 +0000 Received: from QB1PR01MB3537.CANPRD01.PROD.OUTLOOK.COM ([fe80::609b:1ecd:c908:d44c]) by QB1PR01MB3537.CANPRD01.PROD.OUTLOOK.COM ([fe80::609b:1ecd:c908:d44c%6]) with mapi id 15.20.1622.018; Mon, 18 Feb 2019 15:50:14 +0000 From: Rick Macklem To: FreeBSD Net Subject: correct IP# for NFS kernel upcall to userland daemon Thread-Topic: correct IP# for NFS kernel upcall to userland daemon Thread-Index: AQHUx6BfIzCkM5w4JEKb3VotlufxJw== Date: Mon, 18 Feb 2019 15:50:14 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 3591010c-72e1-4f31-13b6-08d695b8c59f x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600110)(711020)(4605104)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:QB1PR01MB3636; x-ms-traffictypediagnostic: QB1PR01MB3636: x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1; QB1PR01MB3636; 23:Pl6u7uqDES6KO07unbBtdhrjctIMdbPhIu99kkJ?= =?iso-8859-1?Q?od13aDyibFyCAml5oIh1Rq6ovvqHfgjmYf0gWUltFjEqfSMj8qFvMqAwho?= =?iso-8859-1?Q?1fLRxt4IoCvWEXUBTbCfwPeh2yZ5q6Ryj8K8nDvvN+zIELMUuo24lH0iGV?= =?iso-8859-1?Q?JyHFErSMk5a+AFP+1ku5zjvpD81sKVJDBMyw3UasopITxgjxQEwp/+Xd2c?= =?iso-8859-1?Q?nKZpym2FT/LWtGaZMofyPWGsEN443dwj9kmCVnWYwnmsq2KPs+HV7Yp5GQ?= =?iso-8859-1?Q?q4TBOmYWzxSoB6pw3QBl7gX724kMBxW7XIDmiTNacT+QuZ43bmeiWsbqf4?= =?iso-8859-1?Q?Ik8Ujunz2e2WYqLf6f11oi+y+iNgZC9YIMgDf4MWp1thaqN00WMRVvmcrS?= =?iso-8859-1?Q?WmIjfIOHiXlZTBInjK9pe085P/GUTEpRPdGlvwsom2FCYbuaYNuCZIPWHu?= =?iso-8859-1?Q?zTXwHcFSRSLoe7LNd/i5pESNGOjOHtw23WHk9n56zMT38gL+9Hmk6puMqr?= =?iso-8859-1?Q?3s/6Zq1SdaicL1falpfRdRo1WUZI7m1Cqns4hPpm9+/nV0MtK3IUbCybbI?= =?iso-8859-1?Q?yeNBzY765EosVq9XwZd+9M26fptnsph54h2qXLJrSjFUgu0TtIzBYUEhAD?= =?iso-8859-1?Q?WoT0xpsjaCs4JjcvaGclupDyW2upBExgU9e+ZPkyc392DdDOnDzndULBNv?= =?iso-8859-1?Q?G++0aBuZ4slsPmjZxOZU+9Rdll45I5mtUTexpjwxqpj7xz4DhK2++EFCAR?= =?iso-8859-1?Q?iD6GTWJxwQa23yyXNqsF16VNcvyBuNaE63Dp5shs2vr9bSpMBF6H3Haw/B?= =?iso-8859-1?Q?O2D9RH0tB2O7OhPLS05gJtIgL95KDCaTMrMFWaFKl/4kcRV8RCbFV5pyek?= =?iso-8859-1?Q?4hG4P98pqTrbr5dPLMuntyPnbSV+6seuaj+HjKeROFZV0Jdgl3lU/grpk/?= =?iso-8859-1?Q?MiIJxOPtbsClNvgrakY3x5XB3aO5in4M8sTaU9W9nkXVrbGyakx6suI/ae?= =?iso-8859-1?Q?dzX0hMb5Z5+aLaXek372mMHg9JUl2ZNwCgH1+X0/2SFdr+TgPSKXdT+8YR?= =?iso-8859-1?Q?lNWDGBAfLEpG3B43Y0SGQ=3D=3D?= x-microsoft-antispam-prvs: x-forefront-prvs: 09525C61DB x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(366004)(346002)(396003)(39860400002)(376002)(51874003)(199004)(189003)(105586002)(106356001)(6916009)(97736004)(33656002)(7696005)(5660300002)(68736007)(74316002)(8936002)(786003)(316002)(14454004)(81166006)(9686003)(25786009)(478600001)(6436002)(99286004)(486006)(55016002)(305945005)(53936002)(46003)(186003)(81156014)(71190400001)(86362001)(6506007)(71200400001)(2906002)(102836004)(8676002)(256004)(476003)(74482002); DIR:OUT; SFP:1101; SCL:1; SRVR:QB1PR01MB3636; H:QB1PR01MB3537.CANPRD01.PROD.OUTLOOK.COM; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: uoguelph.ca does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: yzdMbzSZD+KumzXNdmxJXRn9HjH0lRyPEWrUu/IHa1e0XZ5W/9VpSMrouyP3Z7o/RaAOSdD3B+ra62DPQcFEdXIoQhLTisEUy5cexUVdaSLR7sAbmRv0L7TTMfXNNF9439Y5eq1zMPtPHzy47AS4bRsCd9ZsDZoCOZ44UKgGT5Jz9HdZKOrnz63mx2K+utnRMicv1L8pQ1YF/2gXVBUbNDHQcWgeXoUH4Qh9s6jyKzZDVR3NdcvPu0YC+wYlECD4fx7AkjqtXmCvBK/0POdt/bbG1GYGvz+mGXZf0Sk/OfCJV8TJhDa5kQsYoF/m+O+EW7IDXc++GdKK+1zxZMZmM6bPE6C/VghhoCYQJffakM5VnhBdRNzlijdxy8zyYT11VkZ1DBh8DfzxuCJC8JDMg9gzUrM1OftYHkrPV3YG8cY= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: uoguelph.ca X-MS-Exchange-CrossTenant-Network-Message-Id: 3591010c-72e1-4f31-13b6-08d695b8c59f X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Feb 2019 15:50:14.0451 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: be62a12b-2cad-49a1-a5fa-85f4f3156a7d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: QB1PR01MB3636 X-Rspamd-Queue-Id: 953186D271 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of rmacklem@uoguelph.ca designates 40.107.67.84 as permitted sender) smtp.mailfrom=rmacklem@uoguelph.ca X-Spamd-Result: default: False [-4.13 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:40.107.0.0/16]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[uoguelph.ca]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[3]; IP_SCORE(-1.08)[ipnet: 40.64.0.0/10(-3.01), asn: 8075(-2.31), country: US(-0.07)]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com]; NEURAL_HAM_SHORT(-0.75)[-0.746,0]; RCVD_IN_DNSWL_NONE(0.00)[84.67.107.40.list.dnswl.org : 127.0.3.0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:8075, ipnet:40.64.0.0/10, country:US]; RCVD_TLS_LAST(0.00)[] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Feb 2019 15:50:17 -0000 Hi, I have been in a recent discussion about what the correct IP address to use= for an upcall from the kernel to the NFS daemon nfsuserd (which maps between uids<->usernames and gids<->group names). The code uses UDP for the upcall (I once committed a patch changing that to an AF_LOCAL socket, but it broke certain sites where the directory the sock= et was being created in was NFS mounted). Currently the code uses a hardwired "127.0.0.1". Rodney Grimes feels that it would be better to do a name lookup on "localho= st" to get the address to use. In this case, I am concerned that the daemon will not be able to start up u= nder conditions where the DNS service isn't yet functional. (This problem can mo= stly be avoided by specifying "localhost" in /etc/hosts and configuring the syst= em to use that file before DNS, but I still don't like having this dependency on = DNS for the daemon starting up.) Note that the upcall will work for any IP# that refers to the local machine= and it does not need to be the one specified for "localhost" in the DNS. So, do you think I should do a lookup for "localhost" at daemon startup or = use a hardwired "127.0.0.1/::1"? Thanks in advance for any comments, rick