zephyr/tests/kernel
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
..
alert/alert_api tests/samples: fixed yaml syntax 2017-12-11 14:47:08 -05:00
arm_irq_vector_table tests/samples: fixed yaml syntax 2017-12-11 14:47:08 -05:00
arm_runtime_nmi tests/samples: fixed yaml syntax 2017-12-11 14:47:08 -05:00
bitfield tests/samples: fixed yaml syntax 2017-12-11 14:47:08 -05:00
boot_page_table tests/samples: fixed yaml syntax 2017-12-11 14:47:08 -05:00
common tests: add ringbuffer api test and combine original test 2018-01-29 23:19:17 -05:00
context tests: kernel/context support other posix boards 2018-01-15 18:42:09 -05:00
critical test: kernel/critical fix for posix arch 2017-12-27 14:16:08 -05:00
errno tests/samples: fixed yaml syntax 2017-12-11 14:47:08 -05:00
fatal tests: kernel: fatal: x86: Fixed the issue with stack alignment. 2018-01-09 08:22:05 -05:00
fifo/fifo_api tests/samples: fixed yaml syntax 2017-12-11 14:47:08 -05:00
fp_sharing tests: add CONFIG_TEST for marking tests 2018-01-08 10:03:57 -05:00
gen_isr_table tests: add CONFIG_TEST for marking tests 2018-01-08 10:03:57 -05:00
irq_offload tests/samples: fixed yaml syntax 2017-12-11 14:47:08 -05:00
libs tests/samples: fixed yaml syntax 2017-12-11 14:47:08 -05:00
lifo/lifo_api tests/samples: fixed yaml syntax 2017-12-11 14:47:08 -05:00
mbox/mbox_api tests/samples: fixed yaml syntax 2017-12-11 14:47:08 -05:00
mem_heap/mheap_api_concept tests/samples: fixed yaml syntax 2017-12-11 14:47:08 -05:00
mem_pool tests/samples: fixed yaml syntax 2017-12-11 14:47:08 -05:00
mem_protect tests: userspace: test syscall buffer validation 2018-02-02 13:09:35 -08:00
mem_slab tests/samples: fixed yaml syntax 2017-12-11 14:47:08 -05:00
msgq/msgq_api tests/samples: fixed yaml syntax 2017-12-11 14:47:08 -05:00
multilib tests/samples: fixed yaml syntax 2017-12-11 14:47:08 -05:00
mutex tests/samples: fixed yaml syntax 2017-12-11 14:47:08 -05:00
obj_tracing tests: obj_tracing: disable BT for this test 2018-01-15 18:31:47 -05:00
pending tests/samples: fixed yaml syntax 2017-12-11 14:47:08 -05:00
pipe/pipe_api tests/samples: fixed yaml syntax 2017-12-11 14:47:08 -05:00
poll tests/samples: fixed yaml syntax 2017-12-11 14:47:08 -05:00
profiling/profiling_api tests/samples: fixed yaml syntax 2017-12-11 14:47:08 -05:00
pthread tests: add CONFIG_TEST for marking tests 2018-01-08 10:03:57 -05:00
queue tests/samples: fixed yaml syntax 2017-12-11 14:47:08 -05:00
semaphore/sema_api tests/samples: fixed yaml syntax 2017-12-11 14:47:08 -05:00
sleep tests: remove empty test header 2018-01-08 08:08:45 -05:00
sprintf tests: add CONFIG_TEST for marking tests 2018-01-08 10:03:57 -05:00
stack/stack_api tests/samples: fixed yaml syntax 2017-12-11 14:47:08 -05:00
static_idt tests: static_idt: do not include test cmake 2018-01-08 08:08:45 -05:00
systhreads tests/samples: fixed yaml syntax 2017-12-11 14:47:08 -05:00
threads tests: abort: Testcase for repeated thread abort 2018-01-24 18:18:53 +05:30
tickless test: kernel/tickless fix for native 2017-12-27 14:16:08 -05:00
timer tests: timer_api: remove build_only, exclude arches 2017-12-28 20:24:29 -05:00
workq test: workq : fix for native arch 2017-12-27 14:16:08 -05:00
xip tests/samples: fixed yaml syntax 2017-12-11 14:47:08 -05:00