zephyr/subsys/net
Robert Lubos 7deabaa77b net: tcp: Fix possible double TCP context dereferencing
In case TCP connection is being closed from the TCP stack, due to for
instance retransmission timeout, the stack should also switch the TCP
state to CLOSED. Otherwise, there was a risk of dereferencing the TCP
context twice, for example if the application was in active socket
send(), and tried to reschedule data transmission.

Additionally, make sure that the TCP_CLOSED state handling is a no-op
state - otherwise, there is a risk that if packets keep incoming before
the application dereferences the TCP context on its side, TCP stack
will incorrectly dereference the context for the second time from
within due to current TCP_CLOSED state logic.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2023-06-06 11:11:22 -04:00
..
conn_mgr iterable_sections: move to specific header 2023-05-22 10:42:30 +02:00
ip net: tcp: Fix possible double TCP context dereferencing 2023-06-06 11:11:22 -04:00
l2 net: l2: ieee802154: document non-standard ACK feature selection 2023-06-02 18:47:59 -04:00
lib net: mqtt-sn: fix port in mqtt-sn debug message 2023-06-06 09:40:52 -04:00
pkt_filter
buf_simple.c net: buf: Factor out net_buf_simple to separate source file 2023-03-15 10:50:16 +01:00
buf.c net: buf: fix data ref_count offset in generic_data_ref() 2023-05-31 10:01:40 -04:00
CMakeLists.txt net: conn_mgr: Reorganize files 2023-05-11 12:15:44 +02:00
hostname.c includes: prefer <zephyr/kernel.h> over <zephyr/zephyr.h> 2022-09-05 16:31:47 +02:00
Kconfig net: conn_mgr: Reorganize files 2023-05-11 12:15:44 +02:00
Kconfig.hostname
Kconfig.template.log_config.default.net
Kconfig.template.log_config.net