This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug network/22479] check_pf caches "ipv6 seen, ipv4 not seen" and any DNS lookup fails until restarting the process (race condition)
- From: "faure at kde dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 05 Dec 2017 12:16:49 +0000
- Subject: [Bug network/22479] check_pf caches "ipv6 seen, ipv4 not seen" and any DNS lookup fails until restarting the process (race condition)
- Auto-submitted: auto-generated
- References: <bug-22479-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=22479
--- Comment #1 from David Faure <faure at kde dot org> ---
This patch for sysdeps/unix/sysv/linux/check_pf.c "fixes" the bug for me, but I
suppose it's not good enough for the general purpose, in case people only have
a v6-only network interface? (does that even exist?)
@@ -261,8 +261,8 @@ make_request (int fd, pid_t pid)
}
while (! done);
- if (seen_ipv6 && result != NULL)
+ if (seen_ipv6 && seen_ipv4 && result != NULL)
{
result->timestamp = get_nl_timestamp ();
result->usecnt = 2;
result->seen_ipv4 = seen_ipv4;
(But maybe all this is a red herring, and the issue is in the kernel netlink
stuff, not notifying of changes, so __nscd_get_nl_timestamp always returns 1 ?)
--
You are receiving this mail because:
You are on the CC list for the bug.