zephyr/subsys/net/lib
Peter Bigot 7e77370acb net: dns: review use of k_work APIs
It is documented that using transient information like whether a work
item is pending or a delayed work item has time left to determine the
state of the work item before subsequent reconfiguration is prone to
race conditions, and known to produce unexpected behavior in the
presence of preemptive threads, SMP, or use of the work item from
interrupts.  As a best practice such pre-validation steps should be
avoided unless algorithmically necessary.

All comparisons of remaining delayed time before canceling a delayed
work item in this module appear to be optimizations subject to the
above race conditions.  Remove the checks so that only the inherent
race conditions in the implementation of canceling a work item remain.

Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
2021-01-04 10:01:47 +02:00
..
coap net: coap: Use MQTT style wildcard in path description: 2020-08-26 12:31:00 +02:00
config net: config: Fix improper condition in net_config_init 2020-10-22 12:33:12 +03:00
conn_mgr net: Adjust the thread priorities 2020-11-20 12:57:29 +02:00
dns net: dns: review use of k_work APIs 2021-01-04 10:01:47 +02:00
http net: lib: http: chunked encoding body support 2020-10-12 13:58:19 +03:00
lwm2m net: lwm2m: Added execute arguments support 2020-12-13 15:39:08 -05:00
mqtt net: mqtt: Return -1 if keepalive messages are disabled. 2020-12-08 14:08:36 -05:00
openthread net: openthread: Fix missed logging macro usage 2020-12-17 20:58:00 +02:00
sntp net: sntp: Remove deprecated API function 2020-10-01 07:14:08 -05:00
sockets net: resolve literal IP addresses even when DNS is disabled 2020-12-22 15:44:00 +02:00
socks cmake: remove _if_kconfig() functions 2020-08-01 12:35:20 +02:00
tftp zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
tls_credentials device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
utils include: net: socketutils: Allow to build for CONFIG_POSIX_API 2019-09-12 17:30:29 +03:00
websocket net: websocket: Fix websocket loop close call 2020-10-12 13:57:07 +03:00
CMakeLists.txt net: openthread: Align Kconfig with cmake symbols 2020-08-18 15:57:14 +03:00
Kconfig net: tftp: Adding support for TFTP Client. 2020-04-30 14:19:46 +03:00