From nobody Thu Aug 01 22:27:22 2024 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 4WZk9Q3X27z5RZ6t; Thu, 01 Aug 2024 22:27:22 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WZk9Q1dBfz4YF2; Thu, 1 Aug 2024 22:27:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722551242; 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=4mc97po1HKOirXJ4BWM8vn8Lcwr6yV8kqka5U+4quPg=; b=Rr0PZd8tdZeLdplkKj+F0qx9qRAXDOlcBeTNX8nJu+VcXKtc7sNEnXFVdUMsLD1pVcy7u1 Mvv3+Kmhh1kiI1Wh3g34GpUY711cwAB2neBqVypFOh1KZk+tWXAvSg0Ggex50ToeyMzy4f X/+k+1GobfsAOl68r8lI1HtmgEg36QV1fcctSmzqRS3vTETIAPdZSy+AYipQurpW4FKU+b q2Bgd1z9dSRtSpWImmoJVFfMzN+8Wqq8P5Jlc1ivLo/cwulb6BvXuJu0KErDOSQm1ieAoI O6jD8PM6RmlrSBJlzhzeWYKrCFT9cq9IBG9em/J3oep2xjOQdGhC8vbKk2qvzA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722551242; a=rsa-sha256; cv=none; b=wPdRFYcTTjETJBPGgAQzeBvEG3Hx1FLD8IxNG31NpWbrKKiM7Vei5BN9afXNYbXo5Hz4sE UDSJwA8q/Ek/GnaWA4FJAoalIabkwrSLsOB+CEf1yXbIQGC6+TADjcQz3rrpGOlPZ5utzz YQ+cWQShLIzAm5NyesA8BYx8CkzWxpsrsPREvA81jgyEpwedwVCcTh9GuZa/5YR3oQmZWW C7VP0t6sv8j0la+HQAOr8u6TcVkDfp7X8Hbbp9gqT4zQA0yheCqxCo20lHg6d/WcLNDiTY CIHGGg63GMeXrpOSuZShS4yXM3zT1NCzn0x35NHIyMoqAESeRFkl4+zPnHoHxQ== 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=1722551242; 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=4mc97po1HKOirXJ4BWM8vn8Lcwr6yV8kqka5U+4quPg=; b=aZN5RoBTKuLmN5y/ycfEoZBtZuEZ3Hxz9fQuyZjtlQncoJEBeuc/HIATmV03A7CwJv4+j8 Cg9g45A3ctkt59MixBo+3RvATfs4tb5y/iDSyoMDeuuchZr+Vvs3xpqcu1ACrQChZylfE3 2DiDTDacChOOUGhLA3eMqsXxjDMufkwK1YpgmjdIRCMIBGlddihTizjX8o+12DYsJHfozm xLu42PL8QspRZ9VVr42dejwe3iZoIVXwxhWI/7yAGxfCx+1485ma8WYEdFtwkhAMNlDsNz r4Dfe+JJeN4igMYOsuUo2jxk54/8WtpoZGr6aojKjiJF5gD9ykol84ErnVlf2w== 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 4WZk9Q1DcGz13Cs; Thu, 1 Aug 2024 22:27:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 471MRMNZ026884; Thu, 1 Aug 2024 22:27:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 471MRM71026881; Thu, 1 Aug 2024 22:27:22 GMT (envelope-from git) Date: Thu, 1 Aug 2024 22:27:22 GMT Message-Id: <202408012227.471MRM71026881@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Vladimir Kondratyev Subject: git: 5496fab6a2e8 - stable/14 - LinuxKPI: Add VM_ACCESS_FLAGS define to linux/mm.h 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wulf X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 5496fab6a2e87b2fde3410093308fe6e3e1b9518 Auto-Submitted: auto-generated The branch stable/14 has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=5496fab6a2e87b2fde3410093308fe6e3e1b9518 commit 5496fab6a2e87b2fde3410093308fe6e3e1b9518 Author: Vladimir Kondratyev AuthorDate: 2024-04-08 06:47:42 +0000 Commit: Vladimir Kondratyev CommitDate: 2024-08-01 21:09:38 +0000 LinuxKPI: Add VM_ACCESS_FLAGS define to linux/mm.h VM_ACCESS_FLAGS is a basic access permission flags. Sponsored by: Serenity CyberSecurity, LLC Reviewed by: emaste MFC after: 1 week (cherry picked from commit 38c276a43f2d55e19ff6bd15ab5730315d41e3a8) --- sys/compat/linuxkpi/common/include/linux/mm.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/mm.h b/sys/compat/linuxkpi/common/include/linux/mm.h index 1356d64dde28..1a7bae27fa8b 100644 --- a/sys/compat/linuxkpi/common/include/linux/mm.h +++ b/sys/compat/linuxkpi/common/include/linux/mm.h @@ -56,6 +56,8 @@ CTASSERT((VM_PROT_ALL & -(1 << 8)) == 0); #define VM_WRITE VM_PROT_WRITE #define VM_EXEC VM_PROT_EXECUTE +#define VM_ACCESS_FLAGS (VM_READ | VM_WRITE | VM_EXEC) + #define VM_PFNINTERNAL (1 << 8) /* FreeBSD private flag to vm_insert_pfn() */ #define VM_MIXEDMAP (1 << 9) #define VM_NORESERVE (1 << 10)