From: Dave Hansen <dave@sr71.net>
To: linux-kernel@vger.kernel.org
Cc: linux-mm@kvack.org, x86@kernel.org, Dave Hansen <dave@sr71.net>,
dave.hansen@linux.intel.com
Subject: [PATCH] um, pkeys: give UML an arch_vma_access_permitted()
Date: Thu, 18 Feb 2016 10:35:57 -0800 [thread overview]
Message-ID: <20160218183557.AE1DB383@viggo.jf.intel.com> (raw)
From: Dave Hansen <dave.hansen@linux.intel.com>
UML has a special mmu_context.h and needs updates whenever the generic one
is updated. The original pkeys patches missed this. This fixes it up.
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
---
b/arch/um/include/asm/mmu_context.h | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff -puN arch/um/include/asm/mmu_context.h~pkeys-fix-um-arch_vma_access_permitted arch/um/include/asm/mmu_context.h
--- a/arch/um/include/asm/mmu_context.h~pkeys-fix-um-arch_vma_access_permitted 2016-02-18 10:19:17.675287570 -0800
+++ b/arch/um/include/asm/mmu_context.h 2016-02-18 10:20:09.214627363 -0800
@@ -27,6 +27,20 @@ static inline void arch_bprm_mm_init(str
struct vm_area_struct *vma)
{
}
+
+static inline bool arch_vma_access_permitted(struct vm_area_struct *vma,
+ bool write, bool execute, bool foreign)
+{
+ /* by default, allow everything */
+ return true;
+}
+
+static inline bool arch_pte_access_permitted(pte_t pte, bool write)
+{
+ /* by default, allow everything */
+ return true;
+}
+
/*
* end asm-generic/mm_hooks.h functions
*/
_
next reply other threads:[~2016-02-18 18:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-18 18:35 Dave Hansen [this message]
2016-02-18 20:22 ` [tip:mm/pkeys] um, pkeys: Add UML arch_*_access_permitted() methods tip-bot for Dave Hansen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160218183557.AE1DB383@viggo.jf.intel.com \
--to=dave@sr71.net \
--cc=dave.hansen@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®