From nobody Thu Jun 4 17:55:36 2026 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 4gWXKn2FPhz6ghwm for ; Thu, 04 Jun 2026 17:55:41 +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 "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gWXKn1hSjz4HnL for ; Thu, 04 Jun 2026 17:55:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1780595741; 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=4IXgxVWE0ST2Km4EdC9k9SsARZuQ3vshyovykRNNcqY=; b=lyV2jFH4mHu4FThXl9A9pFnglgWnObCiUisW+kYWm1Ns1pfxv95/W5C/xgzIIRRYT87QJZ YRGTLOphWFbzQzRK9pj1Q1k/Dtt2rnZ6IIpPuTacjGGYnsMXUIvxdRRxWhpXQX5cLvssmJ oJ/PYeceKm/QOQo4pqKQVtRnFdLFBReHw6sjlBuMegBeEH40+EXczriKUDXMJ9BJKmqphQ vhOK9603IrsI1O4+z0xM1WOtgZ0HYwttrfPeNy/SStOcZBlQ2n3/nPgEPApNljZG6xmARG HXLi6es8WXDiirV2t3gjLn7qDN9GvV8jZDkrjvhhT/gfsK+eRSGhqlS8zuetqQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1780595741; a=rsa-sha256; cv=none; b=bfW159YxrBImKwriu+NIUttNTKbNzoV6ii+IXTrR4L/WPz5HyL+yaI1vB230VR1lx2gPI2 SrNPgxbRlXmJ1IXWo58NHux1DJaaH0BAlgkO/o8JzqTEIoAfAHh2L0VrKsCk2YOr6PYN3V EX4rn/T/u+sMvQlluaEhhxUyMMgLCFwgH4L13eFFUIPgt+OnYaO6fabJO8lW007/FMnT3J v/OvZQsKifeduXv11cV3Kxp+AIvpJY1t3jvXxmwYbqwG82yvBX9h+zq3NAhnVVOF2lub00 Ti7cXukIJpxhfMBdm6b3nCqwK8B7QoRP6Sr64/dNisJVuasPY31UXA+BCoDRWQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1780595741; 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=4IXgxVWE0ST2Km4EdC9k9SsARZuQ3vshyovykRNNcqY=; b=vfYNSwLNBekTMhGgWLdUKw0543bz6LOwrl14uKbdmNu1mfl/RveJM7PWjW79CqhUoUghyd +Fl4x1LFCfhT8XmtKKn2eqZvF0d1D+1eQWfXJPPStXipdffgnF0d3qr3R2uzYrJn9M6to0 upresPiBIz07pGiIOMWKCtf0K2kt2zOvReYb1XRjGkJIYvzU1ARANvkqfvV96DONGOMWAI eEBPsXXa04tLQaf+HcAqJPZldCLIPiQ4rb78GmH3L4CPFGoz7pIHp4eN9nDu6orqusf9YE IHFvhqx0qhVjHd4z3aAiK/3yRlT3My4T3rvsQT1nvP2fA8SkCCLIlWuATHn0wA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gWXKn12bzz17rL for ; Thu, 04 Jun 2026 17:55:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 2040e by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 04 Jun 2026 17:55:36 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 453968c78d27 - main - uipc_usrreq: revert addition of EMPTYPATH for bindat(2) 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 453968c78d27ed5c90562a1178f34fe8d616bf40 Auto-Submitted: auto-generated Date: Thu, 04 Jun 2026 17:55:36 +0000 Message-Id: <6a21bc18.2040e.38ce0e7e@gitrepo.freebsd.org> The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=453968c78d27ed5c90562a1178f34fe8d616bf40 commit 453968c78d27ed5c90562a1178f34fe8d616bf40 Author: Konstantin Belousov AuthorDate: 2026-06-04 17:26:09 +0000 Commit: Konstantin Belousov CommitDate: 2026-06-04 17:55:11 +0000 uipc_usrreq: revert addition of EMPTYPATH for bindat(2) The caller wants the parent vnode, which cannot be provided for emptypath lookups. Reported and reviewed by: markj Fixes: 12c590a9abd7 ("bindat(2)/connectat(2): allow implicit EMPTYPATH for unix domain sockets") Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D57448 --- lib/libsys/open.2 | 4 +--- sys/kern/uipc_usrreq.c | 5 ++--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/libsys/open.2 b/lib/libsys/open.2 index defc593b15ce..7915f7e8ef0a 100644 --- a/lib/libsys/open.2 +++ b/lib/libsys/open.2 @@ -447,11 +447,9 @@ The other functionality of the returned file descriptor is limited to the following descriptor-level operations: .Pp .Bl -tag -width __acl_aclcheck_fd -offset indent -compact -.It Xr bindat 2 -for unix domain socket -.Pq see Xr unix 4 .It Xr connectat 2 for unix domain socket +.Pq see Xr unix 4 .It Xr fcntl 2 but advisory locking is not allowed .It Xr dup 2 diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c index a798aaf4f871..920588627914 100644 --- a/sys/kern/uipc_usrreq.c +++ b/sys/kern/uipc_usrreq.c @@ -612,9 +612,8 @@ uipc_bindat(int fd, struct socket *so, struct sockaddr *nam, struct thread *td) buf[namelen] = 0; restart: - NDINIT_ATRIGHTS(&nd, CREATE, NOFOLLOW | LOCKPARENT | NOCACHE | - EMPTYPATH, UIO_SYSSPACE, buf, fd, cap_rights_init_one(&rights, - CAP_BINDAT)); + NDINIT_ATRIGHTS(&nd, CREATE, NOFOLLOW | LOCKPARENT | NOCACHE, + UIO_SYSSPACE, buf, fd, cap_rights_init_one(&rights, CAP_BINDAT)); /* SHOULD BE ABLE TO ADOPT EXISTING AND wakeup() ALA FIFO's */ error = namei(&nd); if (error)