incubator-nuttx/net/udp
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
Make.defs
udp.h sched/wqueue: Change the return type of work_notifier_teardown to void 2022-05-14 00:35:29 +03:00
udp_callback.c net/udp: replace the common connect prologue 2022-02-10 15:04:33 -03:00
udp_close.c net/inet: move socket linger into socket_conn_s 2022-02-10 15:04:33 -03:00
udp_conn.c net/udp: clear the connection structure after free 2022-03-16 13:46:02 +08:00
udp_devpoll.c
udp_finddev.c net/udp: fix the invaild udp destination address 2021-12-17 11:25:06 -06:00
udp_input.c net/udp/icmp: correct the unreadchable handling 2021-11-26 08:47:54 -06:00
udp_ioctl.c net: tcp/udp/icmp/icmpv6 add FIONSPACE support 2022-04-02 13:39:38 +08:00
udp_ipselect.c
udp_netpoll.c net/poll: fix race condition if connect free before poll teardown 2022-07-09 19:11:42 +08:00
udp_notifier.c sched/wqueue: Change the return type of work_notifier_teardown to void 2022-05-14 00:35:29 +03:00
udp_recvfrom.c Fix udp recvfrom to correctly return addrlen 2022-04-28 20:25:38 +08:00
udp_send.c net: unify FAR keyword usage for all net buffer memory mapped buffers 2022-01-20 01:42:56 +08:00
udp_sendto_buffered.c net: tcp/udp/icmp/icmpv6 add FIONSPACE support 2022-04-02 13:39:38 +08:00
udp_sendto_unbuffered.c net/udp: remove psock hook to avoid invalid reference 2022-02-10 15:04:33 -03:00
udp_setsockopt.c
udp_txdrain.c
udp_wrbuffer.c net: tcp/udp/icmp/icmpv6 add FIONSPACE support 2022-04-02 13:39:38 +08:00
udp_wrbuffer_dump.c