From nobody Fri Jun 17 19:24:09 2022 X-Original-To: dev-commits-src-branches@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 97421843E99; Fri, 17 Jun 2022 19:24:10 +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 4LPprB0TvVz3C70; Fri, 17 Jun 2022 19:24:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655493850; 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=Y/kC0n7FzQRnUavxGcZhZT3iVF30a5SXIlsNfDg4HPc=; b=ZdSN57v3CmRbbl7D9pM6HWKndRcv3bCrjoh74xOJUNaYZQbHKHWgjUVXnfdeFLT/aHFrU0 Em/rirzRUBA/OKsJaA7KeiC4DLTDi3AwOieEy8EKyV6nNTg98+6YnOAEPydrqdUClYd/F7 6TJ1bY50b98Pd+ZFKR4KuB/PulWjB2sd1NeinEMnD0mHinDbwsyWaMQiC92HkRJDYF3SKu Kx9Mib9ahubzrgspeSZ9IKmtHpnJcOfrnJPQp4/bFSl2ZNYJ8ID+A3dIr5piKseaA9hYEU jSKBIpxLbMVGvJEMDuGI+6AMPfxGWgWyj3XIzZ3iFjx4FHmEuIc9NLlaEiUvMw== 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 946D125989; Fri, 17 Jun 2022 19:24:09 +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 25HJO9dO096064; Fri, 17 Jun 2022 19:24:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 25HJO9qE096063; Fri, 17 Jun 2022 19:24:09 GMT (envelope-from git) Date: Fri, 17 Jun 2022 19:24:09 GMT Message-Id: <202206171924.25HJO9qE096063@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dmitry Chagin Subject: git: 5e777d88c46a - stable/13 - linux(4): Handle AT_EMPTY_PATH in the utimensat syscall. List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dchagin X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 5e777d88c46a394dd0d0b9dd0fa1a6d870bf4e32 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655493850; 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=Y/kC0n7FzQRnUavxGcZhZT3iVF30a5SXIlsNfDg4HPc=; b=NYzDbWEa4O1Pnoj4cz+hzoxhjySivX+2zWhWo954nVN9zkm1LPoqjAoXKX+OYUJyvlQo92 NkMO3EkvdiclJfo5f3kXPZjXEP5QFYJTJ5XLRqXDXuWLii+jcka0+Ife1S91jHAw0+zml+ L6/gXarGAkjxgy7IwkmtAN9m9FQ6ATKBtCmfvE91gfHtCTlniehvlVDU3eOPnfSehi0Epe hm0WJaxaM95hc7afQrSpim8mfC3HVIddPDc2Ofhq1zzmU+/t0Sq8ED/9Ew/X8ZhJ7J29A+ yUqHnjIrEDM6y7YzNIHdSaKpTZ1Xb4r36RhgLMysJPbtrFD+QJoCUsQDqm0mUw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1655493850; a=rsa-sha256; cv=none; b=CGWQxJFYFINupXepH6S1I1X1SlbgCHfBTV7kODwo/oHVm6OmWp+HaucKSoPQ6XplMTA3NL aokzM4kFCU/JiqgF4tzBjNBMUXeiC/XpafdUnZNB+JYoJdYRaltf9mgGmoF8iaU+fGMhCx 0FYT+Gj3w7P+uqvqM6u4s/Hk+mkwGuZMNTGFoTaVSQ6xKjfJc6R0jjeM2GYHSmB1dhy5oh 7DeZSi1ZPGDSg5Wme69oYX9aIVdesHuzf4eBRx+iHvmyph+V3v6cUDJ51zJssGTpSuxlUL OK8OHtQ1UxDeo0lZK/pi6TgVx7NLQthL3AV0XuAHKnyThz5ZXSi5SGNYnaLjpQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=5e777d88c46a394dd0d0b9dd0fa1a6d870bf4e32 commit 5e777d88c46a394dd0d0b9dd0fa1a6d870bf4e32 Author: Dmitry Chagin AuthorDate: 2021-05-31 19:37:06 +0000 Commit: Dmitry Chagin CommitDate: 2022-06-17 19:22:16 +0000 linux(4): Handle AT_EMPTY_PATH in the utimensat syscall. Differential Revision: https://reviews.freebsd.org/D30518 MFC after: 2 weeks (cherry picked from commit b4f9b6eef2bb30059cf1040383c88c94f4d093a5) --- sys/compat/linux/linux_misc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index cb129179a44d..023d98f2ec34 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -813,7 +813,7 @@ linux_utimensat(struct thread *td, struct linux_utimensat_args *args) dfd = (args->dfd == LINUX_AT_FDCWD) ? AT_FDCWD : args->dfd; - if (args->flags & ~LINUX_AT_SYMLINK_NOFOLLOW) + if (args->flags & ~(LINUX_AT_SYMLINK_NOFOLLOW | LINUX_AT_EMPTY_PATH)) return (EINVAL); if (args->times != NULL) { @@ -863,6 +863,8 @@ linux_utimensat(struct thread *td, struct linux_utimensat_args *args) if (args->flags & LINUX_AT_SYMLINK_NOFOLLOW) flags |= AT_SYMLINK_NOFOLLOW; + if (args->flags & LINUX_AT_EMPTY_PATH) + flags |= AT_EMPTY_PATH; if (!LUSECONVPATH(td)) { if (args->pathname != NULL) {