Skip to content
Permalink
Browse files

tests: force stack canaries off for two user tests

Stack canaries require that the z_libc_partition be added to
the memory domain, otherwise user thread access to the
stack canary value will result in an MPU/MMU fault.

These tests define their own domains to test specific userspace
features. Adding another partition to them would be invasive,
would potentially break some platforms with a limited number
of MPU regions, and these tests are not designed to validate
stack canaries anyway, we have other tests for that.

Fixes: #17595

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
  • Loading branch information...
andrewboie committed Jul 17, 2019
1 parent cbc4d41 commit 15b1196e58488a8feaee700a8b2bfe29368e0af3
Showing with 2 additions and 0 deletions.
  1. +1 −0 tests/kernel/mem_protect/mem_protect/prj.conf
  2. +1 −0 tests/kernel/mem_protect/userspace/prj.conf
@@ -1,3 +1,4 @@
CONFIG_STACK_CANARIES=n
CONFIG_ZTEST=y
CONFIG_ZTEST_STACKSIZE=2048
CONFIG_MAX_THREAD_BYTES=4
@@ -1,3 +1,4 @@
CONFIG_STACK_CANARIES=n
CONFIG_ZTEST=y
CONFIG_INIT_STACKS=y
CONFIG_APPLICATION_DEFINED_SYSCALL=y

0 comments on commit 15b1196

Please sign in to comment.
You can’t perform that action at this time.