OpenCloudOS-Kernel/arch/powerpc/include/asm/book3s/32
Christophe Leroy d10f60ae27 powerpc/32s: fix allow/prevent_user_access() when crossing segment boundaries.
Make sure starting addr is aligned to segment boundary so that when
incrementing the segment, the starting address of the new segment is
below the end address. Otherwise the last segment might get  missed.

Fixes: a68c31fc01 ("powerpc/32s: Implement Kernel Userspace Access Protection")
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/067a1b09f15f421d40797c2d04c22d4049a1cee8.1571071875.git.christophe.leroy@c-s.fr
2019-10-17 08:57:43 +11:00
..
hash.h Revert "powerpc/book3s32: Reorder _PAGE_XXX flags to simplify TLB handling" 2019-02-23 20:30:50 +11:00
kup.h powerpc/32s: fix allow/prevent_user_access() when crossing segment boundaries. 2019-10-17 08:57:43 +11:00
mmu-hash.h powerpc/mm: move pgtable_t in asm/mmu.h 2019-05-03 01:20:24 +10:00
pgalloc.h powerpc/mm: refactor pmd_pgtable() 2019-05-03 01:20:25 +10:00
pgtable.h powerpc: use the generic dma coherent remap allocator 2019-08-28 23:19:34 +10:00
tlbflush.h powerpc: split asm/tlbflush.h 2018-07-30 22:48:21 +10:00