nuttx/libs/libc/netdb
zhanghongyu db4840564d dns: Reduce the dns_lock granularity
When a7 curl calls dns_query via usrsock, it will wait a usrsock
response with the dns lock held. If a7 rptun recv a dns_addnameserver
event from another core at this time, rptun waits the lock held by
curl in callback. Then curl will never get its usrsock response with
rptun blocked, so the deadlock occurs.

This change will break lock when do usrsock request.

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2022-11-11 20:07:05 +08:00
..
Kconfig libs/libc/netdb/Kconfig: allow to enable LIBC_NETDB directly from menuconfig 2022-10-02 22:29:41 +08:00
lib_dn.c
lib_dns.h dns: Reduce the dns_lock granularity 2022-11-11 20:07:05 +08:00
lib_dnsaddserver.c lib/netdb: Rename dns_sem[take|give] with dns_[lock|unlock] 2022-11-09 21:38:10 +01:00
lib_dnsbind.c dns_client: directly initialize g_dns_servers and remove dns_initialize directly 2022-08-15 16:39:37 +03:00
lib_dnscache.c lib/netdb: Rename dns_sem[take|give] with dns_[lock|unlock] 2022-11-09 21:38:10 +01:00
lib_dnsdefaultserver.c lib/netdb: Rename dns_sem[take|give] with dns_[lock|unlock] 2022-11-09 21:38:10 +01:00
lib_dnsforeach.c dns: Reduce the dns_lock granularity 2022-11-11 20:07:05 +08:00
lib_dnsinit.c dns: Reduce the dns_lock granularity 2022-11-11 20:07:05 +08:00
lib_dnsnotify.c lib/netdb: Rename dns_sem[take|give] with dns_[lock|unlock] 2022-11-09 21:38:10 +01:00
lib_dnsquery.c Remove executable permission from source and build files. 2022-08-04 12:48:18 -03:00
lib_freeaddrinfo.c
lib_gaistrerror.c
lib_getaddrinfo.c netdb/getaddrinfo: fix NULL pointer reference 2022-03-18 20:11:54 +02:00
lib_gethostbyaddr.c
lib_gethostbyaddrr.c Replace all strncpy with strlcpy for safety 2022-08-25 13:38:36 +08:00
lib_gethostbyname2.c
lib_gethostbyname2r.c
lib_gethostbyname.c
lib_gethostbynamer.c
lib_gethostentbynamer.c Replace all strncpy with strlcpy for safety 2022-08-25 13:38:36 +08:00
lib_getnameinfo.c libs: Convert DEBUGASSERT(false) into more intuitive DEBUGPANIC() 2022-07-14 12:08:45 +08:00
lib_getservbyname.c
lib_getservbynamer.c Return -EINVAL for the internal API 2022-09-30 17:54:56 +02:00
lib_getservbyport.c
lib_getservbyportr.c
lib_netdb.c nuttx: unify FAR attribute usage across the code 2022-04-04 21:32:58 +08:00
lib_netdb.h nuttx: unify FAR attribute usage across the code 2022-04-04 21:32:58 +08:00
lib_parsehostfile.c
lib_rexec.c Fix various typos 2022-07-08 02:15:54 +08:00
Make.defs