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 the read ahead buffer unselectable 2020-01-11 08:24:49 -06:00
Make.defs net/inet: add support of FIONREAD 2021-07-05 06:20:52 -05: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 net/can,icmp,icmpv6,tcp,tcp_timer,udp: device should poll only those connections that are bound to the device. 2021-10-11 23:09:00 -07:00
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 net: Author Gregory Nutt: update licenses to Apache 2021-02-20 00:38:18 -08:00
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 net/: Add missing packet filtering checks 2021-04-29 12:47:02 +08:00
udp_txdrain.c sched: Don't include nuttx/sched.h inside sched.h 2021-05-24 12:11:53 +09:00
udp_wrbuffer_dump.c net: Author Gregory Nutt: update licenses to Apache 2021-02-20 00:38:18 -08:00
udp_wrbuffer.c net: tcp/udp/icmp/icmpv6 add FIONSPACE support 2022-04-02 13:39:38 +08:00
udp.h sched/wqueue: Change the return type of work_notifier_teardown to void 2022-05-14 00:35:29 +03:00