From c635a7e4e02ab27ec0704bd50cef2a9f3aee39ab Mon Sep 17 00:00:00 2001 From: Ricard Rosson Date: Sat, 11 Jul 2026 06:17:53 +0100 Subject: [PATCH] netutils/mdns: raise responder stack size default to 8KiB CONFIG_NETUTILS_MDNS_STACKSIZE defaulted to DEFAULT_TASK_STACKSIZE, which resolves to as little as 2KiB on some targets. The bundled mjansson responder uses a deeper stack than that (DNS record parsing with name decompression, plus the send/receive buffers) and overflows on startup, taking the board down with a hardfault before it answers a single query. Default to 8KiB, the value that reliably runs the responder, and correct the help text, which previously claimed a 4KiB default that did not match DEFAULT_TASK_STACKSIZE. Assisted-by: Claude (Anthropic Claude Code) Signed-off-by: Ricard Rosson --- netutils/mdns/Kconfig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/netutils/mdns/Kconfig b/netutils/mdns/Kconfig index bd2003bdb..58f25acd2 100644 --- a/netutils/mdns/Kconfig +++ b/netutils/mdns/Kconfig @@ -51,11 +51,11 @@ config NETUTILS_MDNS_PRIORITY config NETUTILS_MDNS_STACKSIZE int "mDNS stack size" - default DEFAULT_TASK_STACKSIZE + default 8192 ---help--- - The default (4KiB) is adequate for simple networks but this will - most likely need to be increased if there are many network devices - attached that could send queries. + Stack size for the mDNS responder task. 8KiB is adequate for + typical networks; increase it if many network devices send + queries. config NETUTILS_MDNS_VERBOSE bool "Enable verbose printf output from built-in mdns demo"