public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/12684] New: Multi-request DNS lookups do not properly fall back to secondary nameserver
@ 2011-04-19 15:28 pasky at suse dot cz
  2011-05-31  2:53 ` [Bug libc/12684] " drepper.fsp at gmail dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: pasky at suse dot cz @ 2011-04-19 15:28 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=12684

           Summary: Multi-request DNS lookups do not properly fall back to
                    secondary nameserver
           Product: glibc
           Version: 2.13
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper.fsp@gmail.com
        ReportedBy: pasky@suse.cz


Created attachment 5678
  --> http://sourceware.org/bugzilla/attachment.cgi?id=5678
proposed patch

The resolver does not properly handle a case where AF_UNSPEC query is started,
two requests are therefore dispatched, and something like NOTIMP or SERVFAIL is
returned to one of them (e.g. AF_INET6). In this case, the second nameserver in
queue is not queried even though it should be. It is caused by an omission of
resplen = 0 in the appropriate branch of send_dg() - therefore, when checking
whether next nameserver should be queried, it is assumed that a proper reply
was received from the first one.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug libc/12684] Multi-request DNS lookups do not properly fall back to secondary nameserver
  2011-04-19 15:28 [Bug libc/12684] New: Multi-request DNS lookups do not properly fall back to secondary nameserver pasky at suse dot cz
@ 2011-05-31  2:53 ` drepper.fsp at gmail dot com
  2011-06-03 10:58 ` schwab@linux-m68k.org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: drepper.fsp at gmail dot com @ 2011-05-31  2:53 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=12684

Ulrich Drepper <drepper.fsp at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #1 from Ulrich Drepper <drepper.fsp at gmail dot com> 2011-05-31 02:52:25 UTC ---
I agree, something is wrong.  But it's a bad idea to try the next server in
case of NOTIMP replies etc for just one of the requests.  Imagine all the
servers return these errors.  In this case it is better to live with the one
successful answer.  I added an appropriate patch.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug libc/12684] Multi-request DNS lookups do not properly fall back to secondary nameserver
  2011-04-19 15:28 [Bug libc/12684] New: Multi-request DNS lookups do not properly fall back to secondary nameserver pasky at suse dot cz
  2011-05-31  2:53 ` [Bug libc/12684] " drepper.fsp at gmail dot com
@ 2011-06-03 10:58 ` schwab@linux-m68k.org
  2011-06-07 14:48 ` vapier at gentoo dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: schwab@linux-m68k.org @ 2011-06-03 10:58 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=12684

Andreas Schwab <schwab@linux-m68k.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |

--- Comment #2 from Andreas Schwab <schwab@linux-m68k.org> 2011-06-03 10:57:49 UTC ---
$ nss/getent ahosts example.com
;; res_setoptions(" debug
", "conf")..
;;      debug
dots=1, statp->ndots=1, trailing_dot=0, name=example.com
;; res_nquerydomain(example.com, <Nil>, 1, 62321)
;; res_query(example.com, 1, 62321)
;; res_nmkquery(QUERY, example.com, IN, A)
;; res_nmkquery(QUERY, example.com, IN, AAAA)
;; res_send()
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 24983
;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;;      example.com, type = A, class = IN
;; Querying server (# 1) address = 127.0.0.1
res_send: send: Connection refused
;; got answer:
;; ns_initparse: Message too long
;; ns_initparse: Message too long
Segmentation fault

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug libc/12684] Multi-request DNS lookups do not properly fall back to secondary nameserver
  2011-04-19 15:28 [Bug libc/12684] New: Multi-request DNS lookups do not properly fall back to secondary nameserver pasky at suse dot cz
  2011-05-31  2:53 ` [Bug libc/12684] " drepper.fsp at gmail dot com
  2011-06-03 10:58 ` schwab@linux-m68k.org
@ 2011-06-07 14:48 ` vapier at gentoo dot org
  2011-06-16  2:45 ` drepper.fsp at gmail dot com
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: vapier at gentoo dot org @ 2011-06-07 14:48 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=12684

Mike Frysinger <vapier at gentoo dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |toolchain at gentoo dot org

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug libc/12684] Multi-request DNS lookups do not properly fall back to secondary nameserver
  2011-04-19 15:28 [Bug libc/12684] New: Multi-request DNS lookups do not properly fall back to secondary nameserver pasky at suse dot cz
                   ` (2 preceding siblings ...)
  2011-06-07 14:48 ` vapier at gentoo dot org
@ 2011-06-16  2:45 ` drepper.fsp at gmail dot com
  2014-02-16 18:23 ` jackie.rosen at hushmail dot com
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: drepper.fsp at gmail dot com @ 2011-06-16  2:45 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=12684

Ulrich Drepper <drepper.fsp at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #3 from Ulrich Drepper <drepper.fsp at gmail dot com> 2011-06-16 02:45:38 UTC ---
Don't reopen bugs for reasons like this.  The problem was caused by the patch
but has nothing to do with the original problem.  This is very much misleading.
 I've added a patch to fix two typos which caused crashes.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug libc/12684] Multi-request DNS lookups do not properly fall back to secondary nameserver
  2011-04-19 15:28 [Bug libc/12684] New: Multi-request DNS lookups do not properly fall back to secondary nameserver pasky at suse dot cz
                   ` (3 preceding siblings ...)
  2011-06-16  2:45 ` drepper.fsp at gmail dot com
@ 2014-02-16 18:23 ` jackie.rosen at hushmail dot com
  2014-05-28 19:42 ` schwab at sourceware dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jackie.rosen at hushmail dot com @ 2014-02-16 18:23 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=12684

Jackie Rosen <jackie.rosen at hushmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jackie.rosen at hushmail dot com

--- Comment #4 from Jackie Rosen <jackie.rosen at hushmail dot com> ---
*** Bug 260998 has been marked as a duplicate of this bug. ***
Seen from the domain http://volichat.com
Page where seen: http://volichat.com/adult-chat-rooms
Marked for reference. Resolved as fixed @bugzilla.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug libc/12684] Multi-request DNS lookups do not properly fall back to secondary nameserver
  2011-04-19 15:28 [Bug libc/12684] New: Multi-request DNS lookups do not properly fall back to secondary nameserver pasky at suse dot cz
                   ` (4 preceding siblings ...)
  2014-02-16 18:23 ` jackie.rosen at hushmail dot com
@ 2014-05-28 19:42 ` schwab at sourceware dot org
  2014-06-27 13:31 ` fweimer at redhat dot com
  2014-06-27 13:35 ` fweimer at redhat dot com
  7 siblings, 0 replies; 9+ messages in thread
From: schwab at sourceware dot org @ 2014-05-28 19:42 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=12684

Andreas Schwab <schwab at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|jackie.rosen at hushmail dot com   |

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug libc/12684] Multi-request DNS lookups do not properly fall back to secondary nameserver
  2011-04-19 15:28 [Bug libc/12684] New: Multi-request DNS lookups do not properly fall back to secondary nameserver pasky at suse dot cz
                   ` (5 preceding siblings ...)
  2014-05-28 19:42 ` schwab at sourceware dot org
@ 2014-06-27 13:31 ` fweimer at redhat dot com
  2014-06-27 13:35 ` fweimer at redhat dot com
  7 siblings, 0 replies; 9+ messages in thread
From: fweimer at redhat dot com @ 2014-06-27 13:31 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=12684

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug libc/12684] Multi-request DNS lookups do not properly fall back to secondary nameserver
  2011-04-19 15:28 [Bug libc/12684] New: Multi-request DNS lookups do not properly fall back to secondary nameserver pasky at suse dot cz
                   ` (6 preceding siblings ...)
  2014-06-27 13:31 ` fweimer at redhat dot com
@ 2014-06-27 13:35 ` fweimer at redhat dot com
  7 siblings, 0 replies; 9+ messages in thread
From: fweimer at redhat dot com @ 2014-06-27 13:35 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=12684

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fweimer at redhat dot com
           See Also|                            |https://sourceware.org/bugz
                   |                            |illa/show_bug.cgi?id=13013

--- Comment #5 from Florian Weimer <fweimer at redhat dot com> ---
I believe the crash mentioned in comment #2 was also filed as bug 13013.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-06-27 13:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-19 15:28 [Bug libc/12684] New: Multi-request DNS lookups do not properly fall back to secondary nameserver pasky at suse dot cz
2011-05-31  2:53 ` [Bug libc/12684] " drepper.fsp at gmail dot com
2011-06-03 10:58 ` schwab@linux-m68k.org
2011-06-07 14:48 ` vapier at gentoo dot org
2011-06-16  2:45 ` drepper.fsp at gmail dot com
2014-02-16 18:23 ` jackie.rosen at hushmail dot com
2014-05-28 19:42 ` schwab at sourceware dot org
2014-06-27 13:31 ` fweimer at redhat dot com
2014-06-27 13:35 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).