|
| | K_SEM_DEFINE (test_revoke_sem, 0, 1) |
| |
| | K_APPMEM_PARTITION_DEFINE (default_part) |
| |
| | K_APP_BMEM (default_part) |
| | Test to pass a user object to system call.
|
| |
| static void | set_fault (unsigned int reason) |
| |
| void | k_sys_fatal_error_handler (unsigned int reason, const struct arch_esf *pEsf) |
| | Fatal error policy handler.
|
| |
| void | test_is_usermode (void) |
| | Test to check if the thread is in user mode.
|
| |
| void | test_write_control (void) |
| | Test to write to a control register.
|
| |
| void | test_disable_mmu_mpu (void) |
| | Test to disable memory protection.
|
| |
| void | test_read_kernram (void) |
| | Test to read from kernel RAM.
|
| |
| void | test_write_kernram (void) |
| | Test to write to kernel RAM.
|
| |
| void | test_write_kernro (void) |
| | Test to write kernel RO.
|
| |
| void | test_write_kerntext (void) |
| | Test to write to kernel text section.
|
| |
| void | test_read_kernel_data (void) |
| | Test to read from kernel data section.
|
| |
| void | test_write_kernel_data (void) |
| | Test to write to kernel data section.
|
| |
| | K_APP_DMEM (default_part) volatile |
| | Test to read privileged stack.
|
| |
| void | test_write_priv_stack (void) |
| | Test to write to privilege stack.
|
| |
| void | test_pass_noperms_object (void) |
| | Test to pass object to a system call without permissions.
|
| |
| void | thread_body (void *p1, void *p2, void *p3) |
| |
| void | test_start_kernel_thread (void) |
| | Test to start kernel thread from usermode.
|
| |
| static void | uthread_read_body (void *p1, void *p2, void *p3) |
| |
| static void | uthread_write_body (void *p1, void *p2, void *p3) |
| |
| void | test_read_other_stack (void) |
| | Test to read from another thread's stack.
|
| |
| void | test_write_other_stack (void) |
| | Test to write to other thread's stack.
|
| |
| void | test_revoke_noperms_object (void) |
| | Test to revoke access to kobject without permission.
|
| |
| void | test_access_after_revoke (void) |
| | Test to access object after revoking access.
|
| |
| static void | umode_enter_func (void *p1, void *p2, void *p3) |
| |
| void | test_user_mode_enter (void) |
| | Test to check supervisor thread enter one-way to usermode.
|
| |
| | K_PIPE_DEFINE (kpipe, 1, 1) |
| |
| void | test_write_kobject_user_pipe (void) |
| | Test to write to kobject using pipe.
|
| |
| void | test_read_kobject_user_pipe (void) |
| | Test to read from kobject using pipe.
|
| |
| static void | user_half (void *arg1, void *arg2, void *arg3) |
| |
| static void | spawn_user (volatile bool *to_modify) |
| |
| static void | drop_user (volatile bool *to_modify) |
| |
| void | test_1st_init_and_access_other_memdomain (void) |
| | Test creation of new memory domains.
|
| |
| void | test_domain_add_thread_drop_to_user (void) |
| | Show that changing between memory domains and dropping to user mode works as expected.
|
| |
| void | test_domain_add_part_drop_to_user (void) |
| |
| void | test_domain_remove_part_drop_to_user (void) |
| | Show that self-removing a partition from a domain we are a member of, and then dropping to user mode faults as expected.
|
| |
| void | test_domain_add_thread_context_switch (void) |
| | Show that changing between memory domains and then switching to another thread in the same domain works as expected.
|
| |
| void | test_domain_add_part_context_switch (void) |
| |
| void | test_domain_remove_part_context_switch (void) |
| | Show that self-removing a partition from a domain we are a member of, and then switching to another user thread in the same domain faults as expected.
|
| |
| void | test_unimplemented_syscall (void) |
| | Test unimplemented system call.
|
| |
| void | test_bad_syscall (void) |
| | Test bad syscall handler.
|
| |
| void | test_object_recycle (void) |
| | Test recycle object.
|
| |
| void | test_oops_panic (void) |
| |
| void | test_oops_oops (void) |
| |
| void | test_oops_exception (void) |
| |
| void | test_oops_maxint (void) |
| |
| void | test_oops_stackcheck (void) |
| |
| void | test_syscall_context (void) |
| |
| void | test_tls_leakage (void) |
| |
| void | test_tls_pointer (void) |
| |
| void | kernel_only_thread_entry (void *p1, void *p2, void *p3) |
| |
| static | K_KERNEL_THREAD_DEFINE (kernel_only_thread,(ROUND_UP(1024, CONFIG_MMU_PAGE_SIZE)), kernel_only_thread_entry, NULL, NULL, NULL, 0, 0, 0) |
| |
| void | test_kernel_only_thread (void) |
| |
| void * | userspace_setup (void) |
| |
| | ZTEST_SUITE (userspace, NULL, userspace_setup, NULL, NULL, NULL) |
| |
| | ZTEST_SUITE (userspace_domain, NULL, NULL, NULL, NULL, NULL) |
| |
| | ZTEST_SUITE (userspace_domain_ctx, NULL, NULL, NULL, NULL, NULL) |
| |