Skip to content

Multiple testcases in tests/kernel/mem_protect/mem_protect, tests/kernel/alert, tests/kernel/mem_pool test fails on sam_e70_xplained due to commit c090776 #9683

@spoorthik

Description

@spoorthik

Issue is seen on commit: c090776

Execution log:

***** Booting Zephyr OS v1.13.0-rc1-54-g3b80998 (delayed boot 1000ms) *****
Running test suite memory_protection_test_suite
===================================================================
starting test - test_permission_inheritance
PASS - test_permission_inheritance
===================================================================
starting test - test_mem_domain_valid_access
***** MPU FAULT *****
  Instruction Access Violation
***** Hardware exception *****
Current thread ID = 0x20406c50
Faulting instruction address = 0x0
Caught system error -- reason 0
FAIL - test_mem_domain_valid_access
===================================================================
starting test - test_mem_domain_invalid_access
PASS - test_mem_domain_invalid_access
===================================================================
starting test - test_mem_domain_partitions_user_rw
PASS - test_mem_domain_partitions_user_rw
===================================================================
starting test - test_mem_domain_partitions_supervisor_rw
PASS - test_mem_domain_partitions_supervisor_rw
===================================================================
starting test - test_mem_domain_partitions_user_ro
***** MPU FAULT *****
  Data Access Violation
  MMFAR Address: 0x20407ac0
  Instruction Access Violation
***** Hardware exception *****
Current thread ID = 0x20407b40
Faulting instruction address = 0x4019fc
Caught system error -- reason 0
PASS - test_mem_domain_partitions_user_ro
===================================================================
starting test - test_mem_domain_add_partitions_invalid
***** MPU FAULT *****
  Data Access Violation
  MMFAR Address: 0x20407ac0
  Instruction Access Violation
***** Hardware exception *****
Current thread ID = 0x20407b40
Faulting instruction address = 0x4019ca
Caught system error -- reason 0
PASS - test_mem_domain_add_partitions_invalid
===================================================================
starting test - test_mem_domain_add_partitions_simple
PASS - test_mem_domain_add_partitions_simple
===================================================================
starting test - test_mem_domain_remove_partitions_simple
***** MPU FAULT *****
  Data Access Violation
  MMFAR Address: 0x20407ac0
  Instruction Access Violation
***** Hardware exception *****
Current thread ID = 0x20407b40
Faulting instruction address = 0x401954
Caught system error -- reason 0
PASS - test_mem_domain_remove_partitions_simple
===================================================================
starting test - test_mem_domain_remove_partitions
***** MPU FAULT *****
  Data Access Violation
  MMFAR Address: 0x20407ac0
  Instruction Access Violation
***** Hardware exception *****
Current thread ID = 0x20407a14
Faulting instruction address = 0x40190c
Caught system error -- reason 0
PASS - test_mem_domain_remove_partitions
===================================================================
starting test - test_mem_domain_remove_thread
***** MPU FAULT *****
  Data Access Violation
  MMFAR Address: 0x20407ac0
  Instruction Access Violation
***** Hardware exception *****
Current thread ID = 0x20407b40
Faulting instruction address = 0x4018c4
Caught system error -- reason 0
PASS - test_mem_domain_remove_thread
===================================================================
starting test - test_mem_domain_destroy
PASS - test_mem_domain_destroy
===================================================================
starting test - test_kobject_access_grant
0x00000000 is not a valid k_sem
syscall _handler_k_sem_take failed check: access denied
***** Hardware exception *****
Current thread ID = 0x20407b40
Faulting instruction address = 0x4020d9
Caught system error -- reason 0
PASS - test_kobject_access_grant
===================================================================
starting test - test_syscall_invalid_kobject
0x20407cec is not a valid k_sem
syscall _handler_k_sem_take failed check: access denied
***** Hardware exception *****
Current thread ID = 0x20407b40
Faulting instruction address = 0x4020d9
Caught system error -- reason 0
PASS - test_syscall_invalid_kobject
===================================================================
starting test - test_thread_without_kobject_permission
thread 0x20407b40 (18) does not have permission on k_sem 0x20407cb8 [00000000]
syscall _handler_k_sem_give failed check: access denied
***** Hardware exception *****
Current thread ID = 0x20407b40
Faulting instruction address = 0x4020d9
Caught system error -- reason 0
PASS - test_thread_without_kobject_permission
===================================================================
starting test - test_kobject_revoke_access
thread 0x204072c0 (1) does not have permission on k_sem 0x20407cb8 [00000000]
syscall _handler_k_sem_give failed check: access denied
***** Hardware exception *****
Current thread ID = 0x204072c0
Faulting instruction address = 0x4020d9
Caught system error -- reason 0
PASS - test_kobject_revoke_access
===================================================================
starting test - test_kobject_grant_access_kobj
PASS - test_kobject_grant_access_kobj
===================================================================
starting test - test_kobject_grant_access_kobj_invalid
***** MPU FAULT *****
  Data Access Violation
  MMFAR Address: 0x20407ac0
  Instruction Access Violation
***** Hardware exception *****
Current thread ID = 0x20406e40
Faulting instruction address = 0x0
Caught system error -- reason 0
FAIL - test_kobject_grant_access_kobj_invalid
===================================================================
starting test - test_kobject_release_from_user
thread 0x2040734c (2) does not have permission on k_thread 0x20406e40 [00000000]
syscall _handler_k_object_access_grant failed check: access denied
***** Hardware exception *****
Current thread ID = 0x2040734c
Faulting instruction address = 0x400b07
Caught system error -- reason 0
PASS - test_kobject_release_from_user
===================================================================
starting test - test_kobject_access_all_grant
thread 0x204073d8 (3) does not have permission on k_sem 0x20407cb8 [00000000]
syscall _handler_k_sem_give failed check: access denied
***** Hardware exception *****
Current thread ID = 0x204073d8
Faulting instruction address = 0x4020d9
Caught system error -- reason 0
PASS - test_kobject_access_all_grant
===================================================================
starting test - test_thread_has_residual_permissions
PASS - test_thread_has_residual_permissions
===================================================================
starting test - test_kobject_access_grant_to_invalid_thread
PASS - test_kobject_access_grant_to_invalid_thread
===================================================================
starting test - test_kobject_access_invalid_kobject
0x204003cc is not a valid k_sem
syscall _handler_k_sem_take failed check: access denied
***** Hardware exception *****
Current thread ID = 0x20407b40
Faulting instruction address = 0x4013ed
Caught system error -- reason 0
PASS - test_kobject_access_invalid_kobject
===================================================================
starting test - test_access_kobject_without_init_access
thread 0x20407b40 (18) does not have permission on k_sem 0x204072a0 [00000000]
syscall _handler_k_sem_take failed check: access denied
***** Hardware exception *****
Current thread ID = 0x20407b40
Faulting instruction address = 0x40143d
Caught system error -- reason 0
PASS - test_access_kobject_without_init_access
===================================================================
starting test - test_access_kobject_without_init_with_access
thread 0x20407464 (4) does not have permission on k_sem 0x204072b0 [00040020]
syscall _handler_k_sem_take failed check: access denied
***** Hardware exception *****
Current thread ID = 0x20407464
Faulting instruction address = 0x400f21
Caught system error -- reason 0
PASS - test_access_kobject_without_init_with_access
===================================================================
starting test - test_kobject_reinitialize_thread_kobj
thread 0x204074f0 (5) does not have permission on k_thread 0x20406db4 [00000040]
syscall _handler_k_thread_create failed check: access denied
***** Hardware exception *****
Current thread ID = 0x204074f0
Faulting instruction address = 0x8ca03c06
Caught system error -- reason 0
PASS - test_kobject_reinitialize_thread_kobj
===================================================================
starting test - test_create_new_thread_from_user
thread 0x20406db4 (6) does not have permission on k_thread 0x20406f58 [00000200]
syscall _handler_k_thread_create failed check: access denied
***** Hardware exception *****
Current thread ID = 0x20406db4
Faulting instruction address = 0x8ca03c06
Caught system error -- reason 0
FAIL - test_create_new_thread_from_user
===================================================================
starting test - test_create_new_thread_from_user_no_access_stack
thread 0x20406fe4 (9) does not have permission on k_thread 0x20407070 [00000800]
syscall _handler_k_thread_create failed check: access denied
***** Hardware exception *****
Current thread ID = 0x20406fe4
Faulting instruction address = 0x0
Caught system error -- reason 0
PASS - test_create_new_thread_from_user_no_access_stack
===================================================================
starting test - test_create_new_thread_from_user_invalid_stacksize
SKIP - test_create_new_thread_from_user_invalid_stacksize
===================================================================
starting test - test_create_new_thread_from_user_huge_stacksize
SKIP - test_create_new_thread_from_user_huge_stacksize
===================================================================
starting test - test_create_new_supervisor_thread_from_user
thread 0x204070fc (11) does not have permission on k_thread 0x20407188 [00002000]
syscall _handler_k_thread_create failed check: access denied
***** Hardware exception *****
Current thread ID = 0x204070fc
Faulting instruction address = 0x0
Caught system error -- reason 0
PASS - test_create_new_supervisor_thread_from_user
===================================================================
starting test - test_create_new_essential_thread_from_user
thread 0x20407214 (13) does not have permission on k_thread 0x20406e40 [00000080]
syscall _handler_k_thread_create failed check: access denied
***** Hardware exception *****
Current thread ID = 0x20407214
Faulting instruction address = 0x0
Caught system error -- reason 0
PASS - test_create_new_essential_thread_from_user
===================================================================
starting test - test_create_new_higher_prio_thread_from_user
thread 0x20406ecc (7) does not have permission on k_thread 0x20406f58 [00000200]
syscall _handler_k_thread_create failed check: access denied
***** Hardware exception *****
Current thread ID = 0x20406ecc
Faulting instruction address = 0x0
Caught system error -- reason 0
PASS - test_create_new_higher_prio_thread_from_user
===================================================================
starting test - test_create_new_invalid_prio_thread_from_user
thread 0x20406fe4 (9) does not have permission on k_thread 0x20407070 [00000800]
syscall _handler_k_thread_create failed check: access denied
***** Hardware exception *****
Current thread ID = 0x20406fe4
Faulting instruction address = 0x0
Caught system error -- reason 0
PASS - test_create_new_invalid_prio_thread_from_user
===================================================================
===================================================================

PROJECT EXECUTION FAILED

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: ARMARM (32-bit) ArchitecturebugThe issue is a bug, or the PR is fixing a bugpriority: highHigh impact/importance bug

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions