nuttx/net/tcp
chao.an 8ae8c10954 net/poll: fix race condition if connect free before poll teardown
Net poll teardown is not protected by net lock, if the conn is released
before teardown, the assertion failure will be triggered during free dev
callback, this patch will add the net lock around net poll teardown to
fix race condition

nuttx/libs/libc/assert/lib_assert.c:36
nuttx/net/devif/devif_callback.c:85
nuttx/net/tcp/tcp_netpoll.c:405
nuttx/fs/vfs/fs_poll.c:244
nuttx/fs/vfs/fs_poll.c:500

Signed-off-by: chao.an <anchao@xiaomi.com>
2022-07-09 19:11:42 +08:00
..
Kconfig Change dpends on SCHED_[L|H]PWORK to SCHED_WORKQUEUE 2022-05-28 18:41:51 +03:00
Make.defs net: fix the build when CONFIG_NET_TCP_WRITE_BUFFERS is not enabled 2022-05-18 07:54:17 +09:00
tcp_accept.c
tcp_appsend.c net/tcp(buffered): retransmit only one the earliest not acknowledged segment 2022-06-16 18:14:29 +08:00
tcp_backlog.c
tcp_callback.c
tcp_close.c net/tcp: fix assertion of fallback connection alloc 2022-07-09 09:37:49 +09:00
tcp_conn.c net/tcp: fix assertion of fallback connection alloc 2022-07-09 09:37:49 +09:00
tcp_connect.c
tcp_devpoll.c tcp: move wd_timer from wifi driver to tcp stack 2022-05-28 16:29:51 +08:00
tcp_dump.c net: fix the build when CONFIG_NET_TCP_WRITE_BUFFERS is not enabled 2022-05-18 07:54:17 +09:00
tcp_finddev.c
tcp_getsockopt.c net/tcp: Use the relative value for keep alive timer 2022-05-18 18:40:41 +03:00
tcp_input.c net/tcp: d_appdata should remove the tcp specific option field 2022-06-15 20:28:10 +08:00
tcp_ioctl.c
tcp_ipselect.c
tcp_listen.c
tcp_monitor.c
tcp_netpoll.c net/poll: fix race condition if connect free before poll teardown 2022-07-09 19:11:42 +08:00
tcp_notifier.c
tcp_recvfrom.c
tcp_recvwindow.c
tcp_send_buffered.c net/tcp(buffered): retransmit only one the earliest not acknowledged segment 2022-06-16 18:14:29 +08:00
tcp_send_unbuffered.c net: Ensure sendmsg and sendfile return -EAGAIN in case of timeout 2022-06-28 06:19:13 +03:00
tcp_send.c
tcp_sendfile.c net: Ensure sendmsg and sendfile return -EAGAIN in case of timeout 2022-06-28 06:19:13 +03:00
tcp_seqno.c
tcp_setsockopt.c tcp: move wd_timer from wifi driver to tcp stack 2022-05-28 16:29:51 +08:00
tcp_timer.c net/tcp: Search conn list again to aovid the race condition in tcp_timer_expiry 2022-06-07 20:15:41 +03:00
tcp_txdrain.c
tcp_wrbuffer.c
tcp.h net/tcp(buffered): retransmit only one the earliest not acknowledged segment 2022-06-16 18:14:29 +08:00