zephyr/subsys/net/lib
Florian Grandel 378f0dd29d net: lib: zperf: fix kernel panic due to invalid thread prio
Compiling an application with CONFIG_NET_ZPERF=y leaving
CONFIG_ZPERF_WORK_Q_THREAD_PRIORITY at its default value would
systematically cause a kernel panic during thread initialization.

The Kconfig variable is NUM_PREEMPT_PRIORITIES by default. Application
threads may not define a priority lower than NUM_PREEMPT_PRIORITIES - 1,
though.

This change limits zperf's thread priority to a valid range. It does not
change the default value as it makes sense to default the thread
priority to the lowest possible value (which is NUM_PREEMPT_PRIORITIES)
but Kconfig does not allow for arithmentic. So the combination of
CLAMP() plus the Kconfig default will ensure min priority plus limit the
range to valid values no matter what has been defined as priority in
Kconfig.

Fixes: #59141

Signed-off-by: Florian Grandel <fgrandel@code-for-humans.de>
2023-06-13 06:58:15 -04:00
..
capture
coap net: lib: coap: Fixed unchecked send return value in CoAP client 2023-06-07 10:06:29 -04:00
config net: if: Add possibility to disable ND per interface 2023-04-29 12:24:49 +02:00
dns net: dns_sd: Prevent dead code in query parsing 2023-06-03 04:13:46 -04:00
http
lwm2m net: lwm2m: Fix pointless variable assignment 2023-06-07 10:07:09 -04:00
mqtt net: mqtt: Debug logging of pointers 2023-03-15 15:02:47 +01:00
mqtt_sn net: mqtt-sn: fix port in mqtt-sn debug message 2023-06-06 09:40:52 -04:00
sntp net: sntp: support building without NET_SOCKETS_POSIX_NAMES 2023-04-24 09:23:17 -04:00
sockets net: sockets: tls: Allow to interrupt blocking accept() call 2023-05-29 14:34:03 -04:00
socks
tftp
tls_credentials init: remove the need for a dummy device pointer in SYS_INIT functions 2023-04-12 14:28:07 +00:00
utils net: sntp: support building without NET_SOCKETS_POSIX_NAMES 2023-04-24 09:23:17 -04:00
websocket net: websockets: Fix implicit type conversion Coverity warning 2023-06-07 10:11:46 -04:00
zperf net: lib: zperf: fix kernel panic due to invalid thread prio 2023-06-13 06:58:15 -04:00
CMakeLists.txt net: conn_mgr: Reorganize files 2023-05-11 12:15:44 +02:00
Kconfig net: conn_mgr: Reorganize files 2023-05-11 12:15:44 +02:00