From nobody Thu Feb 17 08:43:20 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 9BDF019D9081; Thu, 17 Feb 2022 08:43:21 +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 4JzpJ85GxCz3q8f; Thu, 17 Feb 2022 08:43:20 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645087400; 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=V3mhdCqbINCdKAUU+y3B7qhpRH/BUnvvCW4uly78GHA=; b=qyh41/TodEyKarAo5rjExhlywvaQfLIWGxZ9TZIJct8m4nuh173C0QNU3uvH8PCD9ozQyb r++7pRyxl2FJTyirge2eOotmDqr2S0pgnQiZvNkA+saRbFZTM0D+3ipW5BTiWHfO9ZiJOz PE6hY6ajO5caF2KRH1BCxZW+REJ1dci6CtxuqOGdGQIoNiqlq8mTKUi7YUz5bH3q5n+xQG eIi4Sv9xSsh98RFx3HNl34cFVCfnFcyUZchyIhcZDipvdtqupAc74ncAi8FwS5eE7DTD+u FuBZSumBPlSmglVymQYohNsIi5nzCHyOhT5niHhVje9eVr1ARPJeRWT+IxWmeQ== 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 738A026838; Thu, 17 Feb 2022 08:43:20 +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 21H8hK1N045139; Thu, 17 Feb 2022 08:43:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21H8hKqN045138; Thu, 17 Feb 2022 08:43:20 GMT (envelope-from git) Date: Thu, 17 Feb 2022 08:43:20 GMT Message-Id: <202202170843.21H8hKqN045138@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Emmanuel Vadot Subject: git: 4f689b302fc4 - main - linuxkpi: Add user_write_access_* 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: manu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4f689b302fc49fc11d19169386f6ccfad05f47dd Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645087400; 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=V3mhdCqbINCdKAUU+y3B7qhpRH/BUnvvCW4uly78GHA=; b=GhZcqe2ww9TbvVglMHPQ2PF/DZLaoQTk9fmGZP67j3FwLJ2jYSxVLtdPM7UT/tLsnV0zwl 5W+5xlrgYssOFUbYpWHxzgDTVUGYZokb8Q4gJztJ3znFGDhGcPzNqqAc5yfT/ekZOVmkS1 KIbDBfZ1Un5JJ8jcfSjLi6NemCnbZrgWpQtpF5nvEGAn34zDE4X3/mEIkJdvbXcxTsgZSG tb04bgGeIKM/XoM6haOy6jJG/ZH5dw0ZflhjofmdeyscoI0NwjBkRsiyWr8b+ndSdhmgfu RMVdJsihRR9m5lLhJOvCoOEPKY5fHS9wTRDhdcygiZMHLSlTmoYBaQCng5CEIg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1645087400; a=rsa-sha256; cv=none; b=LEeRAWCI5uXu33qcnfm+BKmDJ2dCv7D+qOeg5sQDMJ2HJnqwUkATs11N6KgQQ+HDaieXHS nHjjx4nLzr0kiMnlrid7JoV9qVGToiE8RLywPTFovrJId+U1IthO+WmD80ccxWkkUy44Jl tVVrSiZj0R+KdqepBFqTFVcYKJ/HiCOM7GuAXV8Zlho8BTf6jV7/ggaHde+px/3Pfov9fk QSE3aly6OAACHYVLb43RXuz/6UQhOivWK8dRGe7XDhAIA5IGfOxnCwcrHvCJpG+HhNMoKc iqBXH0QyI4cfP/KQ/yS0GVD4YAzCVsCrUjIliQkVv7MvaS2MncdLQAXiK2sIEA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=4f689b302fc49fc11d19169386f6ccfad05f47dd commit 4f689b302fc49fc11d19169386f6ccfad05f47dd Author: Emmanuel Vadot AuthorDate: 2022-02-15 11:04:40 +0000 Commit: Emmanuel Vadot CommitDate: 2022-02-17 08:30:55 +0000 linuxkpi: Add user_write_access_* Needed by drm-kmod v5.8 Reviewed by: bz MFC after: 2 weeks Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D34284 --- sys/compat/linuxkpi/common/include/asm/uaccess.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/asm/uaccess.h b/sys/compat/linuxkpi/common/include/asm/uaccess.h index 6994b48d071e..b3b2cb53d22a 100644 --- a/sys/compat/linuxkpi/common/include/asm/uaccess.h +++ b/sys/compat/linuxkpi/common/include/asm/uaccess.h @@ -55,6 +55,9 @@ copy_from_user(void *to, const void *from, unsigned long n) #define user_access_begin(ptr, len) access_ok(ptr, len) #define user_access_end() do { } while (0) +#define user_write_access_begin(ptr, len) access_ok(ptr, len) +#define user_write_access_end() do { } while (0) + #define unsafe_get_user(x, ptr, err) do { \ if (unlikely(__get_user(x, ptr))) \ goto err; \