]> Git Repo - linux.git/commit
mm: replace pud_write with pud_access_permitted in fault + gup paths
authorDan Williams <[email protected]>
Thu, 30 Nov 2017 00:10:14 +0000 (16:10 -0800)
committerLinus Torvalds <[email protected]>
Thu, 30 Nov 2017 02:40:42 +0000 (18:40 -0800)
commite7fe7b5cae90cf85bb6fed5ec5d4c5cf311a4fe9
tree8019ca6ee6cd5adbe2bea8f7313c5601a2f87c7f
parente4e40e0263ea6a3bfefbfd15d1b6ff5c03f2b95e
mm: replace pud_write with pud_access_permitted in fault + gup paths

The 'access_permitted' helper is used in the gup-fast path and goes
beyond the simple _PAGE_RW check to also:

 - validate that the mapping is writable from a protection keys
   standpoint

 - validate that the pte has _PAGE_USER set since all fault paths where
   pud_write is must be referencing user-memory.

[[email protected]: fix powerpc compile error]
Link: http://lkml.kernel.org/r/151129127237.37405.16073414520854722485.stgit@dwillia2-desk3.amr.corp.intel.com
Link: http://lkml.kernel.org/r/151043110453.2842.2166049702068628177.stgit@dwillia2-desk3.amr.corp.intel.com
Signed-off-by: Dan Williams <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: "David S. Miller" <[email protected]>
Cc: Kirill A. Shutemov <[email protected]>
Cc: Martin Schwidefsky <[email protected]>
Cc: Heiko Carstens <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
arch/s390/include/asm/pgtable.h
arch/sparc/mm/gup.c
mm/huge_memory.c
mm/memory.c
This page took 0.053177 seconds and 4 git commands to generate.