zephyr/tests/kernel/mem_protect
Joshua Domagalski 90f175b19d tests: userspace: test syscall buffer validation
Tests system call memory buffer read/write validation using the
k_pipe_get() and k_pipe_put() calls from a userspace thread.
Specifically, this tests _SYSCALL_MEMORY_READ/WRITE checks
by the system call handler by attempting to read/write to a
kernel object.

write_kobject_user_pipe() attempts to write over a kernel object
by using the kernel object's location as the buffer to place
the data read from the pipe.

read_kobject_user_pipe() attempts to read a kernel object by using
the kernel object's location as the location of data to be placed
into the pipe.

Tested on qemu_x86 and frdm_k64, passes on both.

Signed-off-by: Joshua Domagalski <jedomag@tycho.nsa.gov>
2018-02-02 13:09:35 -08:00
..
app_memory
obj_validation
protection tests: mem_protect: fix README and adapt for cmake 2018-01-11 12:50:14 -05:00
stackprot tests: add CONFIG_TEST for marking tests 2018-01-08 10:03:57 -05:00
userspace tests: userspace: test syscall buffer validation 2018-02-02 13:09:35 -08:00
x86_mmu_api kernel: include: rename nano_internal.h to kernel_internal.h 2018-01-31 10:07:21 -06:00