Searched hist:a8f0c31fa87dcf9154c4209960f1dd1ed6a1aad8 (Results 1 – 4 of 4) sorted by relevance
/linux/arch/xtensa/mm/ |
H A D | Makefile | diff a8f0c31fa87dcf9154c4209960f1dd1ed6a1aad8 Tue Dec 10 23:23:49 CET 2019 Max Filippov <jcmvbkbc@gmail.com> 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>
|
H A D | fault.c | diff a8f0c31fa87dcf9154c4209960f1dd1ed6a1aad8 Tue Dec 10 23:23:49 CET 2019 Max Filippov <jcmvbkbc@gmail.com> 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>
|
/linux/arch/xtensa/kernel/ |
H A D | traps.c | diff a8f0c31fa87dcf9154c4209960f1dd1ed6a1aad8 Tue Dec 10 23:23:49 CET 2019 Max Filippov <jcmvbkbc@gmail.com> 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>
|
/linux/arch/xtensa/ |
H A D | Kconfig | diff a8f0c31fa87dcf9154c4209960f1dd1ed6a1aad8 Tue Dec 10 23:23:49 CET 2019 Max Filippov <jcmvbkbc@gmail.com> 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>
|