zephyr/tests
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
..
application_development/gen_inc_file tests/samples: fixed yaml syntax 2017-12-11 14:47:08 -05:00
benchmarks tests: benchmarks: latency_measure: Fix build issue with abs() 2018-01-25 01:27:22 -06:00
bluetooth test: shell: native_posix also supports shell 2018-02-02 07:48:46 -08:00
boards/altera_max10/sysid tests: boards: add SysID test app for altera_max10 board 2017-12-15 18:12:00 -05:00
booting/stub tests/booting/stub: disable banner 2017-12-14 13:11:04 -05:00
compliance tests/compiance/checkpatch: force the format to 'email' 2016-11-10 19:30:32 +00:00
crypto test: mbedtls: remove while loop 2018-01-25 04:45:35 +05:30
drivers tests: build_all: Add missing sensors 2018-01-31 10:17:58 -06:00
include tests: native: do not kill process when test completes 2018-01-25 04:45:35 +05:30
kernel tests: userspace: test syscall buffer validation 2018-02-02 13:09:35 -08:00
lib/json tests/samples: fixed yaml syntax 2017-12-11 14:47:08 -05:00
misc/test_build tests: add CONFIG_TEST for marking tests 2018-01-08 10:03:57 -05:00
net net: Improve net management event information 2018-02-02 16:50:07 +02:00
power tests: add CONFIG_TEST for marking tests 2018-01-08 10:03:57 -05:00
shell test: shell: native_posix also supports shell 2018-02-02 07:48:46 -08:00
subsys tests: subsys: fs: nffs_fs_api: cleanup configuration for nRF5x 2018-01-29 12:50:35 +01:00
sys/ringbuffer tests: add ringbuffer api test and combine original test 2018-01-29 23:19:17 -05:00
unit tests: unit: lib: crc: Add test for crc8-ccitt implementation 2018-01-15 15:46:37 -05:00
ztest ztest: cleanup phase should reset the timeout queue. 2018-01-24 21:16:17 +05:30
CMakeLists.txt tests: add CONFIG_TEST for marking tests 2018-01-08 10:03:57 -05:00
Kconfig tests: Kconfig: add proper description to config option 2018-01-30 11:32:02 -05:00