From nobody Mon May 23 10:20:15 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 AD4641B39328; Mon, 23 May 2022 10:20:16 +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 4L6Cy803jPz3Fl3; Mon, 23 May 2022 10:20:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1653301216; 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=ZbWyB3d/W12buhXo5Y4UcG9qvE4dl7iE104Th03zTIY=; b=YCJZShrowugYqU2x+v7rfSFOMu/e3JtEbxV4wDjKC8uyPINZdjBZoT0tFJaIXDZ23HDuoL sgqzSebcxkhnANOPv+CbRTIJu55Jkz0yPjVvXYeevn1rzHekuiMYTzLV3jGU5TCEXme+o2 C1JqRoYdRKCRBZfxO7lHeS9zAiWsdPS6Va5JvcLj1gw5uakkzDxN3Wqg7+Fyba5AlXN/IW Gt9NjzZqZV/MhhL6Aw2Clx1Pg+2BfgMPiBhWiQSng+WpT2Ssx5r0YoYEovUJHQ8Mbjk2YD S1tQDLeA6DfP2CGF1DM3oVNKEz9jMF+5Flu73lp+a/G3mFracVPDTMfpI2FiDg== 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 C1CA95FE4; Mon, 23 May 2022 10:20:15 +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 24NAKFjx029589; Mon, 23 May 2022 10:20:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 24NAKFhG029586; Mon, 23 May 2022 10:20:15 GMT (envelope-from git) Date: Mon, 23 May 2022 10:20:15 GMT Message-Id: <202205231020.24NAKFhG029586@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dmitry Chagin Subject: git: e0aef0d62d2b - main - linux(4): Fix unlink() after a125ed50 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/main X-Git-Reftype: branch X-Git-Commit: e0aef0d62d2b14e754f25ef4f3582ae5faf8579c Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1653301216; 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=ZbWyB3d/W12buhXo5Y4UcG9qvE4dl7iE104Th03zTIY=; b=psdjdRfnUw9vJQhpGzozk/UN2RBr/wFq4Ka8Iyn0Qrd633+GvGqUHgX3Na4LZM6mPNKlV5 k+xcIVM9Jm8G8YQmZvNUqkbFkX/sdQ4/LC9KQLLlVfWutkKS2eVOSs56KL2jOlB3kBS8tz t8HexaNx5d0gMa3vwbqASBUQ5xjML9Xhnr/+t1gw6YRC+TqGw29sk43u1SxwBauW05rWTk vsjVOP/ewglWB3i3qufevzk7qt+G8YZj682fcrGhocBpB1kbc/xbF2ftk48Mk8eK/zbfeT lHNUlm+Q/fvGH4nJZOwm2vQJWftqLlIRLN3+tWbhItYR6Nt5RO6YzURAID8JYg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1653301216; a=rsa-sha256; cv=none; b=rs0IrLrNRtziION5BynFbUNYn2jAqYV8lh0CyZ/UMkIRpAVCUmcfrhoOIazxHCecmEccQy udcIkMswZ432/xO0DJh1pJAq3mpXu7SQj/q+Pa4C7//Ii8J+vtyntDMcTccGZdEMTtZpuq BIPMrzmu1NUoPByUgmOfjJ4yBFT3YrM9YPHmHZiWXyxhi5YDvCTzV00nFIaHRaDDQ6UgJB XzlLOKuGkZ/nm+B9ZtWQDQS0vpBK/rviRyNZCReeySqEQ3FcogG1AEo8prz7yA3Twi/I9m 1W0xTYiKx3IJcQL129hFalUGP08HMq3f0s56FggTohmTWilmeZCv+8mXRSlKWg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=e0aef0d62d2b14e754f25ef4f3582ae5faf8579c commit e0aef0d62d2b14e754f25ef4f3582ae5faf8579c Author: Dmitry Chagin AuthorDate: 2022-05-23 10:18:07 +0000 Commit: Dmitry Chagin CommitDate: 2022-05-23 10:18:07 +0000 linux(4): Fix unlink() after a125ed50 MFC after: 2 weeks --- sys/compat/linux/linux_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c index 199bed80d92a..2664b38ad1ad 100644 --- a/sys/compat/linux/linux_file.c +++ b/sys/compat/linux/linux_file.c @@ -741,7 +741,7 @@ linux_unlink(struct thread *td, struct linux_unlink_args *args) if (error == EPERM) { /* Introduce POSIX noncompliant behaviour of Linux */ if (kern_statat(td, 0, AT_FDCWD, args->path, - UIO_SYSSPACE, &st, NULL) == 0) { + UIO_USERSPACE, &st, NULL) == 0) { if (S_ISDIR(st.st_mode)) error = EISDIR; }