subsys/net: Increase management stack size for thread local storage

The management thread *barely* fits in 768 bytes of stack; when thread
local storage is in use and TLS variables are also allocated from the same
region, this stack can overflow.

Increase to 800 bytes to leave plenty of room for TLS variables.

Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Keith Packard 2023-07-05 17:40:54 -07:00 committed by Carles Cufí
commit 40bc3ec346

View file

@ -22,6 +22,7 @@ if NET_MGMT_EVENT
config NET_MGMT_EVENT_STACK_SIZE config NET_MGMT_EVENT_STACK_SIZE
int "Stack size for the inner thread handling event callbacks" int "Stack size for the inner thread handling event callbacks"
default 2048 if COVERAGE_GCOV default 2048 if COVERAGE_GCOV
default 800 if THREAD_LOCAL_STORAGE
default 768 default 768
help help
Set the internal stack size for NM to run registered callbacks Set the internal stack size for NM to run registered callbacks