From nobody Tue Sep 12 16:44:10 2023 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 4RlTtz1tdcz4stmc; Tue, 12 Sep 2023 16:44:11 +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 4RlTty6n4Mz3dYV; Tue, 12 Sep 2023 16:44:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694537051; 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=20GSvIS/ruJetSb45t+Q2oFGx6kihqJj5QWboJN+PZA=; b=lWbnXYOAtqHoArd+68tjeGPr7FwPvZql0SBb14QrF0Z6ihRzlFvO/lNp03WxqLMNzAykjs +Pb6phUlkGKaScULHVzyomeyFhNYCoabj8q0O0R+AdJ4uKllgsNlvqMVWskcZayM+aWKyu 8yOt4CyaD6mRIHeLIAK79KNmRliL3erVpiaIl6XcLQhdIBRhWva82JjumUxiGzug4kPAiK cPZbllZxkcv80sXo/yOiMIfrTgF2I14L7rhv4Y+1FknT1E1dYt8j2J5dtTbNlzYNFOM5fF VHsZErg6lEbbOvNNcaBrYS6xVsuW8YFqgzwSX+Jzjd/BByCK5MUNw3Y6YG7rfw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694537050; a=rsa-sha256; cv=none; b=irAb+YxfAU8smI75YgnQWM7nq97WG0jw9b1mWefgobBm0i2qVrea59mR65aua+JDUTr5XE qDqhgeCIFvgZSTKSJUArCe32Q8uz8nMmMF2PL3HZuX2OYTJk5BlpBjP5Go3FU/wwSlgXeh izZFOW2fr+1dLs9+z2RNJIhLk7AqNk4g9vr5gVjLdJ7XFJfL4pDfaCpFHjpdC8du2Qe9o2 2XV7rjlkiNJ0ZlQM6fBU/iRyQytMEjhw9cJZlGSXDA87lzqZPFHaqy98iJ9Qw9L6DOibbz /prhsCBABmm9Xuw7ONRbgTKaIcI9y9SERP2fVvDCe04N8cS2UwlfOQt1h9Fleg== 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=1694537050; 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=20GSvIS/ruJetSb45t+Q2oFGx6kihqJj5QWboJN+PZA=; b=ISf7aCuymvz+PCNAhFeypXp281L2NRb/eQn1rJib0voJZwTk9L4/ArcYTVX76jsR2OBGHY oJUGnmV4aJa316osXu0S0F6oL7Lplj8GtRqyMq/sMdo54l+Z1/lSzc7p7ftrisuGHS29jF M7UWoT+BPK75/6it2cLPNrt0w0edI9PADS2obAmA00spLfykfaSJVfEtIJw0IxmPgc0gSA iX/kA7K7W+3LBPISLZjKLQn8X3xtMixiNlYDXXDiPyO3j1UekfYi21cM3BTtI8depUncnc p8EqdIzB4DIzb/VNBgm252yEpmUsQoqIaTB01YIskr4c8uxG6QHO4z7GCCJ6JA== 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 4RlTty5rF5zfjk; Tue, 12 Sep 2023 16:44:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 38CGiABZ070988; Tue, 12 Sep 2023 16:44:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 38CGiAKV070985; Tue, 12 Sep 2023 16:44:10 GMT (envelope-from git) Date: Tue, 12 Sep 2023 16:44:10 GMT Message-Id: <202309121644.38CGiAKV070985@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: 01d9f0eebf8d - releng/14.0 - linux(4): Return ENODATA from getxattr syscalls instead of EPERM 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: dchagin X-Git-Repository: src X-Git-Refname: refs/heads/releng/14.0 X-Git-Reftype: branch X-Git-Commit: 01d9f0eebf8dceddc465fecac919c1e9d7a586a2 Auto-Submitted: auto-generated The branch releng/14.0 has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=01d9f0eebf8dceddc465fecac919c1e9d7a586a2 commit 01d9f0eebf8dceddc465fecac919c1e9d7a586a2 Author: Dmitry Chagin AuthorDate: 2023-09-01 08:10:12 +0000 Commit: Dmitry Chagin CommitDate: 2023-09-12 16:42:31 +0000 linux(4): Return ENODATA from getxattr syscalls instead of EPERM On Linux ENODATA mean the named attribute does not exist, or the process has no access to this attribute. Approved by: re (gjb) Reported by: zirias PR: 273517 Tested by: zirias MFC after: 1 week (cherry picked from commit 4d59b790553ef75b9a4b6a673eab3354f3d012b3) (cherry picked from commit a9b8a0ced46efe72ec118a749d191b29ce47712b) --- sys/compat/linux/linux_xattr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/compat/linux/linux_xattr.c b/sys/compat/linux/linux_xattr.c index 901123684154..b9717c62133c 100644 --- a/sys/compat/linux/linux_xattr.c +++ b/sys/compat/linux/linux_xattr.c @@ -285,7 +285,7 @@ getxattr(struct thread *td, struct getxattr_args *args) else error = kern_extattr_get_fd(td, args->fd, attrnamespace, attrname, args->value, args->size); - return (error); + return (error == EPERM ? ENOATTR : error); } int