linux/arch/powerpc/include/asm/nohash
Christophe Leroy 3d7dfd632f powerpc: Implement user_access_save() and user_access_restore()
Implement user_access_save() and user_access_restore()

On 8xx and radix:
  - On save, get the value of the associated special register then
    prevent user access.
  - On restore, set back the saved value to the associated special
    register.

On book3s/32:
  - On save, get the value stored in current->thread.kuap and prevent
    user access.
  - On restore, regenerate address range from the stored value and
    reopen read/write access for that range.

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/54f2f74938006b33c55a416674807b42ef222068.1579866752.git.christophe.leroy@c-s.fr
2020-01-28 23:14:44 +11:00
..
32 powerpc: Implement user_access_save() and user_access_restore() 2020-01-28 23:14:44 +11:00
64 powerpc/mm: refactor ioremap vm area setup. 2019-08-27 13:03:35 +10:00
hugetlb-book3e.h
mmu-book3e.h powerpc/fsl_booke/32: implement KASLR infrastructure 2019-11-13 19:27:40 +11:00
mmu.h
pgalloc.h
pgtable.h
pte-book3e.h
tlbflush.h