nuttx/net/tcp
Zhe Weng 7d1b733202 net/tcp: Add flag for tcp_close to avoid double free
Problem:
When tcp_close_work starts to run in LPWORK, if another event comes and
calls tcp_free before tcp_close_work takes net_lock, the tcp_free will
be called twice and cause double free.

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2023-05-29 13:00:06 +02:00
..
Kconfig net/tcp:Add NewReno congestion control. 2023-05-16 12:35:01 -03:00
Make.defs net/tcp:Add NewReno congestion control. 2023-05-16 12:35:01 -03:00
tcp_accept.c net: remove conn-related casts 2023-05-10 19:32:09 -03:00
tcp_appsend.c net/tcp: reuse common api to replace some ip select code 2023-01-30 11:25:10 +08:00
tcp_backlog.c tcp_input: drop SYN when no free node in the backlog 2023-04-24 01:52:33 +08:00
tcp_callback.c
tcp_cc.c net/tcp:Add NewReno congestion control. 2023-05-16 12:35:01 -03:00
tcp_close.c net/tcp: Add flag for tcp_close to avoid double free 2023-05-29 13:00:06 +02:00
tcp_conn.c net/tcp: Add flag for tcp_close to avoid double free 2023-05-29 13:00:06 +02:00
tcp_connect.c net/tcp: remove conn check since which can not be NULL 2023-02-02 13:31:06 +08:00
tcp_devpoll.c net/tcp: reuse common api to replace some ip select code 2023-01-30 11:25:10 +08:00
tcp_dump.c
tcp_finddev.c net: modify find device logic 2023-02-12 01:25:34 +08:00
tcp_getsockopt.c net: remove conn-related casts 2023-05-10 19:32:09 -03:00
tcp_input.c net/tcp:Add NewReno congestion control. 2023-05-16 12:35:01 -03:00
tcp_ioctl.c
tcp_ipselect.c net/tcp: reuse common api to replace some ip select code 2023-01-30 11:25:10 +08:00
tcp_listen.c
tcp_monitor.c net: remove conn-related casts 2023-05-10 19:32:09 -03:00
tcp_netpoll.c tcp_input: drop SYN when no free node in the backlog 2023-04-24 01:52:33 +08:00
tcp_notifier.c Typo fixes. 2023-02-17 11:17:11 -03:00
tcp_recvfrom.c net: remove conn-related casts 2023-05-10 19:32:09 -03:00
tcp_recvwindow.c
tcp_send_buffered.c net/tcp:Add NewReno congestion control. 2023-05-16 12:35:01 -03:00
tcp_send_unbuffered.c net: remove conn-related casts 2023-05-10 19:32:09 -03:00
tcp_send.c net: move ttl field into socket_conn_s struct 2023-05-13 12:39:53 +08:00
tcp_sendfile.c net/sendfile: adapt sendfile() to support new driver model 2023-02-14 11:21:09 +08:00
tcp_seqno.c
tcp_setsockopt.c net: remove conn-related casts 2023-05-10 19:32:09 -03:00
tcp_shutdown.c net: remove conn-related casts 2023-05-10 19:32:09 -03:00
tcp_timer.c net/tcp:Add NewReno congestion control. 2023-05-16 12:35:01 -03:00
tcp_txdrain.c net: remove conn-related casts 2023-05-10 19:32:09 -03:00
tcp_wrbuffer.c net/tcp:Add NewReno congestion control. 2023-05-16 12:35:01 -03:00
tcp.h net/tcp: Add flag for tcp_close to avoid double free 2023-05-29 13:00:06 +02:00