linux_dsm_epyc7002/arch/powerpc/include/asm/book3s/64
Aneesh Kumar K.V 52c50ca75c powerpc/mm: handle protnone ptes on fork
We need to mark pages of parent process read only on fork.  Numa fault
pte needs a protnone ptes variant with saved write flag set.  On fork we
need to make sure we remove the saved write bit.  Instead of adding the
protnone check in the caller update ptep_set_wrprotect variants to clear
savedwrite bit.

Without this we see random segfaults in application on fork.

Fixes: c137a2757b ("powerpc/mm/autonuma: switch ppc64 to its own implementation of saved write")
Link: http://lkml.kernel.org/r/1488203787-17849-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Cc: Rik van Riel <riel@surriel.com>
Cc: Mel Gorman <mgorman@techsingularity.net>
Cc: Paul Mackerras <paulus@ozlabs.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2017-03-09 17:01:09 -08:00
..
hash-4k.h powerpc/mm: Fix little-endian 4K hugetlb 2017-01-18 11:58:50 +11:00
hash-64k.h powerpc/64: get rid of MIN_HUGEPTE_SHIFT 2016-11-18 22:40:37 +11:00
hash.h powerpc/mm/4k: don't allocate larger pmd page table for 4k 2017-01-23 19:19:35 +11:00
hugetlb.h powerpc/mm: Introduce _PAGE_LARGE software pte bits 2016-11-28 22:37:41 +11:00
mmu-hash.h powerpc/pseries: Add support for hash table resizing 2017-02-10 13:27:55 +11:00
mmu.h Second batch of KVM changes for 4.11 merge window 2017-03-04 11:36:19 -08:00
pgalloc.h powerpc fixes for 4.7 #4 2016-06-25 06:01:48 -07:00
pgtable-4k.h powerpc/mm: Fix build break with RADIX=y & HUGETLBFS=n 2017-02-14 16:54:21 +11:00
pgtable-64k.h powerpc/mm: Fix build break with RADIX=y & HUGETLBFS=n 2017-02-14 16:54:21 +11:00
pgtable.h powerpc/mm: handle protnone ptes on fork 2017-03-09 17:01:09 -08:00
radix-4k.h powerpc/mm/radix: Add radix pte #defines 2016-05-01 18:32:52 +10:00
radix-64k.h powerpc/mm/radix: Add radix pte #defines 2016-05-01 18:32:52 +10:00
radix.h powerpc/mm/radix: Skip ptesync in pte update helpers 2017-02-15 20:02:41 +11:00
tlbflush-hash.h powerpc/mm: remove flush_tlb_page_nohash 2016-08-01 11:15:13 +10:00
tlbflush-radix.h powerpc/mm: Add radix__tlb_flush_pte_p9_dd1() 2016-11-28 22:43:45 +11:00
tlbflush.h powerpc/mm: remove flush_tlb_page_nohash 2016-08-01 11:15:13 +10:00