WSL2-Linux-Kernel/arch/xtensa/mm
Max Filippov a8f0c31fa8 xtensa: noMMU: allow handling protection faults
Many xtensa CPU cores without full MMU still have memory protection
features capable of raising exceptions for invalid instruction
fetches/data access. Allow handling such exceptions. This improves
behavior of processes that pass invalid memory pointers to syscalls in
noMMU configs: in case of exception the kernel instead of killing the
process is now able to return -EINVAL from a syscall.

Introduce CONFIG_PFAULT that controls whether protection fault code is
enabled and register handlers for common memory protection exceptions
when it is enabled.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
2022-05-01 19:51:21 -07:00
..
Makefile xtensa: noMMU: allow handling protection faults 2022-05-01 19:51:21 -07:00
cache.c xtensa: simplify coherent_kvaddr logic 2021-04-04 15:39:03 -07:00
fault.c xtensa: noMMU: allow handling protection faults 2022-05-01 19:51:21 -07:00
highmem.c xtensa/mm/highmem: Make generic kmap_atomic() work correctly 2020-11-16 21:19:24 +01:00
init.c mm: move mem_init_print_info() into mm_init() 2021-04-30 11:20:42 -07:00
ioremap.c mm: reorder includes after introduction of linux/pgtable.h 2020-06-09 09:39:13 -07:00
kasan_init.c mm: pgtable: add shortcuts for accessing kernel PMD and PTE 2020-06-09 09:39:13 -07:00
misc.S xtensa: simplify coherent_kvaddr logic 2021-04-04 15:39:03 -07:00
mmu.c xtensa: move asid_cache from fault.c to mmu.c 2022-05-01 19:51:20 -07:00
tlb.c xtensa: define update_mmu_tlb function 2022-03-22 09:45:09 -07:00