mm: update ptep_modify_prot_start/commit to take vm_area_struct as arg
Patch series "NestMMU pte upgrade workaround for mprotect", v5. We can upgrade pte access (R -> RW transition) via mprotect. We need to make sure we follow the recommended pte update sequence as outlined in commit bd5050e3 ("powerpc/mm/radix: Change pte relax sequence to handle nest MMU hang") for such updates. This patch series does that. This patch (of 5): Some architectures may want to call flush_tlb_range from these helpers. Link: http://lkml.kernel.org/r/20190116085035.29729-2-aneesh.kumar@linux.ibm.com Signed-off-by:Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com> Cc: Nicholas Piggin <npiggin@gmail.com> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Michael Ellerman <mpe@ellerman.id.au> Cc: Heiko Carstens <heiko.carstens@de.ibm.com> Cc: Martin Schwidefsky <schwidefsky@de.ibm.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- arch/s390/include/asm/pgtable.h 2 additions, 2 deletionsarch/s390/include/asm/pgtable.h
- arch/s390/mm/pgtable.c 4 additions, 2 deletionsarch/s390/mm/pgtable.c
- arch/x86/include/asm/paravirt.h 6 additions, 5 deletionsarch/x86/include/asm/paravirt.h
- arch/x86/include/asm/paravirt_types.h 3 additions, 2 deletionsarch/x86/include/asm/paravirt_types.h
- arch/x86/xen/mmu.h 2 additions, 2 deletionsarch/x86/xen/mmu.h
- arch/x86/xen/mmu_pv.c 4 additions, 4 deletionsarch/x86/xen/mmu_pv.c
- fs/proc/task_mmu.c 2 additions, 2 deletionsfs/proc/task_mmu.c
- include/asm-generic/pgtable.h 8 additions, 8 deletionsinclude/asm-generic/pgtable.h
- mm/memory.c 2 additions, 2 deletionsmm/memory.c
- mm/mprotect.c 2 additions, 2 deletionsmm/mprotect.c
Loading
Please register or sign in to comment