linux-sg2042/arch/arm64/mm
Catalin Marinas 786889636a arm64: Handle faults caused by inadvertent user access with PAN enabled
When TTBR0_EL1 is set to the reserved page, an erroneous kernel access
to user space would generate a translation fault. This patch adds the
checks for the software-set PSR_PAN_BIT to emulate a permission fault
and report it accordingly.

Cc: Will Deacon <will.deacon@arm.com>
Cc: James Morse <james.morse@arm.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
2016-11-21 18:48:54 +00:00
..
Makefile arm64: dump: Make ptdump debugfs a separate option 2016-11-07 18:15:04 +00:00
cache.S arm64: Disable TTBR0_EL1 during normal kernel execution 2016-11-21 18:48:54 +00:00
context.c arm64: Disable TTBR0_EL1 during normal kernel execution 2016-11-21 18:48:54 +00:00
copypage.c
dma-mapping.c arm64: Remove pointless WARN_ON in DMA teardown 2016-11-07 18:15:03 +00:00
dump.c arm64: dump: Add checking for writable and exectuable pages 2016-11-07 18:15:04 +00:00
extable.c arm64: migrate exception table users off module.h and onto extable.h 2016-09-20 09:36:21 +01:00
fault.c arm64: Handle faults caused by inadvertent user access with PAN enabled 2016-11-21 18:48:54 +00:00
flush.c arm64: Add uprobe support 2016-11-07 18:15:21 +00:00
hugetlbpage.c arm64: hugetlb: fix the wrong address for several functions 2016-11-09 16:55:13 +00:00
init.c arm64: remove pr_cont abuse from mem_init 2016-10-20 15:27:56 +01:00
ioremap.c
kasan_init.c
mmap.c arm64: mm: remove unnecessary EXPORT_SYMBOL_GPL 2016-05-05 09:49:38 +01:00
mmu.c arm64: dump: Add checking for writable and exectuable pages 2016-11-07 18:15:04 +00:00
numa.c arm64/numa: fix incorrect log for memory-less node 2016-10-26 18:21:51 +01:00
pageattr.c arm64: hibernate: Support DEBUG_PAGEALLOC 2016-08-25 18:00:30 +01:00
pgd.c arm64: mm: drop fixup_init() and mm.h 2016-09-06 19:09:38 +01:00
proc.S arm64: Factor out TTBR0_EL1 post-update workaround into a specific asm macro 2016-11-21 17:33:47 +00:00
ptdump_debugfs.c arm64: dump: Make ptdump debugfs a separate option 2016-11-07 18:15:04 +00:00