From nobody Fri Jun 17 19:40:59 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 74CFF85D5DC; Fri, 17 Jun 2022 19:41:02 +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 4LPqCc31byz3hpc; Fri, 17 Jun 2022 19:41:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655494861; 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=cZ9UdJd6pXQ8CXdMG/T2F4RJrXG2iolJxhi6S82Q4QY=; b=mFrjkNPL02zEVhaR9rgjaaHEmE0SwO4XCVYi3UVwfVYQ0y6qv3bk+GZT44JZ5PVEJwRf9J 4QeaZnTT/boUk34xDwx6ZDVpq7JU8dh6NYTf0u79PWTFezRwarGYnvew1+RcIGay7pZb+F ZxActctqe09NaEHLVH+M5YrDZb0WU6CCKEi5h7m7PKxT1TyIOooSdNimj7Thah7AlgV9ll EeqeH2OlNPcQdNiJFtbGruJD+38ytxXPUYNlCh7beu+XDaxmewvRR1m7DrZgvzPXznhNkI GLR9ih5RmmhPxnN9JOjwZdLitSpPJq+J54/UCW4xSDqulzKpJYkG+F5GG/yEWQ== 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 ABB9B257F3; Fri, 17 Jun 2022 19:40:59 +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 25HJexW2029882; Fri, 17 Jun 2022 19:40:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 25HJexqo029881; Fri, 17 Jun 2022 19:40:59 GMT (envelope-from git) Date: Fri, 17 Jun 2022 19:40:59 GMT Message-Id: <202206171940.25HJexqo029881@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: 264df06b36d1 - stable/13 - 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/stable/13 X-Git-Reftype: branch X-Git-Commit: 264df06b36d114ea15522e063f392dff9a77c112 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655494861; 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=cZ9UdJd6pXQ8CXdMG/T2F4RJrXG2iolJxhi6S82Q4QY=; b=K+THhdgejV8aV0WgQkoW3Rn2i9FZgqwIDB4Spvu8Ps5wManu3R5hu3cOVMPhVTVtNoc6tg CfOddJ1CqJ6rn7uzdt0cMn6Z8v8s+6D8GOPHNqes3P9SrzBsrqzQV9elQknpVupSqpDdxb KMlf1EKkzCuFjU1LL06CSEf4xE0zT8WWjcVZwno3AMr8Ht5bkjZtAU1q1XTy5WJcgFAE8/ B/3mtPIxnhuZKWyXE6xbwIETnOZHo0opliie1OncALEegFNUorzuv6GAA7WjyJmnCtGkg8 ediuPxj9IcYJuPhnxDzGFvPTZ3hNQG+57SYC+zvDOJNGaPL+xcbiNoxxJNtVUA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1655494861; a=rsa-sha256; cv=none; b=GdEtFdGDr/WHvvqzn7X5mFzk1XqYYV1KOJH0lwNmIkMnQx2hGPiL2Um6NcHihQHP+aVucT 9iOopK/CGU2nDmQnrnxZ84+/vxi4wfCe6jmE19aWsW4nbJUQTLo8aXUUASrpcUjysQSQjK TpkIuAnEh+2ziSs90n5NTS8v8y1IobCc0EofR2BhnInXBRBJSig3gPURgCFVV2en2pm5hJ CzojKlLesZeHYq/YY77Je6tmc54Z5crbKtGlQ/J2GcTieD99uXkXvW4HHtbXZwoxZpD1P4 6lCDzIAierT1xm7m/nqzKLZAbeEizWg+QAXIuVQhvl8+eguvROkm3feBn4BzgA== 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=264df06b36d114ea15522e063f392dff9a77c112 commit 264df06b36d114ea15522e063f392dff9a77c112 Author: Dmitry Chagin AuthorDate: 2022-05-23 10:18:07 +0000 Commit: Dmitry Chagin CommitDate: 2022-06-17 19:35:29 +0000 linux(4): Fix unlink() after a125ed50 MFC after: 2 weeks (cherry picked from commit e0aef0d62d2b14e754f25ef4f3582ae5faf8579c) --- 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; }