Skip to content

Commit 0638dae

Browse files
tomi-fontrlubos
authored andcommitted
[nrf fromlist] secure_storage: increase stack sizes of tests
Certain implementations require more stack to operate. Increase the stack size to avoid overflows. Signed-off-by: Tomi Fontanilles <[email protected]> Upstream PR #: 93147 Signed-off-by: Tomi Fontanilles <[email protected]>
1 parent ddfd826 commit 0638dae

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

samples/psa/its/overlay-secure_storage.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
CONFIG_MBEDTLS=y
44
CONFIG_MBEDTLS_PSA_CRYPTO_C=y
55

6-
# The default stack size (1024) is not enough for the PSA Crypto core.
6+
# The default stack size is not enough for the PSA Crypto core.
77
# On top of that, the ITS implementation uses the stack for buffers.
8-
CONFIG_MAIN_STACK_SIZE=3072
8+
CONFIG_MAIN_STACK_SIZE=4096
99

1010
CONFIG_SECURE_STORAGE=y
1111
CONFIG_SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_SETTINGS=y

samples/psa/persistent_key/overlay-secure_storage.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ CONFIG_MBEDTLS_PSA_CRYPTO_C=y
55
CONFIG_MBEDTLS_ENABLE_HEAP=y
66
CONFIG_MBEDTLS_HEAP_SIZE=1024
77

8-
# The default stack size (1024) is not enough for the PSA Crypto core.
8+
# The default stack size is not enough for the PSA Crypto core.
99
# On top of that, the ITS implementation uses the stack for buffers.
10-
CONFIG_MAIN_STACK_SIZE=3072
10+
CONFIG_MAIN_STACK_SIZE=4096
1111

1212
CONFIG_SECURE_STORAGE=y
1313
CONFIG_SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_SETTINGS=y

tests/subsys/secure_storage/psa/crypto/overlay-secure_storage.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
CONFIG_ZTEST_STACK_SIZE=3072
2-
CONFIG_MAIN_STACK_SIZE=2048
1+
CONFIG_ZTEST_STACK_SIZE=4096
2+
CONFIG_MAIN_STACK_SIZE=3072
33

44
CONFIG_MBEDTLS=y
55
CONFIG_ENTROPY_GENERATOR=y

0 commit comments

Comments
 (0)