This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug network/22479] check_pf caches "ipv6 seen, ipv4 not seen" and any DNS lookup fails until restarting the process (race condition)


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]