This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug network/21668] resolv: res_init cross-thread broadcast introduces race conditions
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Mon, 03 Jul 2017 18:57:35 +0000
- Subject: [Bug network/21668] resolv: res_init cross-thread broadcast introduces race conditions
- Auto-submitted: auto-generated
- References: <bug-21668-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=21668
--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via 352f4ff9a268b81ef5d4b2413f582565806e4790 (commit)
from 4e45d83c92dbb5b8dc20654f32395108d18cf739 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=352f4ff9a268b81ef5d4b2413f582565806e4790
commit 352f4ff9a268b81ef5d4b2413f582565806e4790
Author: Florian Weimer <fweimer@redhat.com>
Date: Fri Jun 30 21:10:23 2017 +0200
resolv: Introduce struct resolv_context [BZ #21668]
struct resolv_context objects provide a temporary resolver context
which does not change during a name lookup operation. Only when the
outmost context is created, the stub resolver configuration is
verified to be current (at present, only against previous res_init
calls). Subsequent attempts to obtain the context will reuse the
result of the initial verification operation.
struct resolv_context can also be extended in the future to store
data which needs to be deallocated during thread cancellation.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 85 ++++++++++++
include/resolv.h | 23 ----
nscd/aicache.c | 21 ++--
nss/digits_dots.c | 21 +++-
nss/getXXbyYY.c | 28 ++++-
nss/getXXbyYY_r.c | 34 +++--
nss/getnssent_r.c | 42 +++++--
nss/nsswitch.h | 10 ++
resolv/Makefile | 3 +-
resolv/Versions | 10 +-
resolv/compat-gethnamaddr.c | 95 +++++++++-----
resolv/nss_dns/dns-canon.c | 19 ++-
resolv/nss_dns/dns-host.c | 104 +++++++++------
resolv/nss_dns/dns-network.c | 21 ++-
resolv/res-close.c | 3 +
resolv/res_libc.c | 31 -----
resolv/res_mkquery.c | 92 ++++++++-----
resolv/res_query.c | 298 ++++++++++++++++++++++++------------------
resolv/res_send.c | 44 +++++--
resolv/res_use_inet6.h | 49 +++++++
resolv/resolv-internal.h | 36 +++++-
resolv/resolv_context.c | 201 ++++++++++++++++++++++++++++
resolv/resolv_context.h | 95 +++++++++++++
sysdeps/posix/getaddrinfo.c | 39 +++---
24 files changed, 1033 insertions(+), 371 deletions(-)
create mode 100644 resolv/res_use_inet6.h
create mode 100644 resolv/resolv_context.c
create mode 100644 resolv/resolv_context.h
--
You are receiving this mail because:
You are on the CC list for the bug.