From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25402 invoked by alias); 21 Nov 2014 05:42:53 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Received: (qmail 25315 invoked by uid 55); 21 Nov 2014 05:42:48 -0000 From: "cvs-commit at gcc dot gnu.org" To: glibc-bugs@sourceware.org Subject: [Bug network/14498] default /var/db/services.db triggers infinite CPU loop with getaddrinfo() Date: Fri, 21 Nov 2014 05:42:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: network X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: aoliva at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-11/txt/msg00161.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=14498 --- Comment #8 from 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 b59d114bd1e0571fba85b3cbcc61d4f4b42f5d1b (commit) via f3d945d5f2b9d7d44032c461af588c6d54f5664b (commit) via 4969890247d7d6a548f17641ed5a18f4b713d211 (commit) from 81959214868c9ac9e425fbf0fa3fd9135e207f7e (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=b59d114bd1e0571fba85b3cbcc61d4f4b42f5d1b commit b59d114bd1e0571fba85b3cbcc61d4f4b42f5d1b Author: Alexandre Oliva Date: Sat Sep 27 07:23:39 2014 -0300 BZ#16469: resolv: skip leading dot in domain to search This should only happen if the domain to search is the root, represented as "." rather than by an empty string. Skipping it here prevents libc_res_nquerydomain from duplicating the trailing dot, which would cause the domain name compression to fail. for ChangeLog [BZ #16469] * resolv/res_query.c (__libc_res_nsearch): Skip leading dot in search domain names. https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=f3d945d5f2b9d7d44032c461af588c6d54f5664b commit f3d945d5f2b9d7d44032c461af588c6d54f5664b Author: Alexandre Oliva Date: Sun Nov 9 13:51:09 2014 -0200 BZ#16469: don't drop trailing dot in res_nquerydomain(..., name, NULL, ...) If we drop it here, we will fail to detect a duplicate trailing dot later on. Retaining, OTOH, has no ill effects whatsoever, and it even saves us the trouble of copying the domain name minus the trailing dot, like we used to do. for ChangeLog [BZ #16469] * NEWS: Update. * resolv/res_query.c (__libc_res_nquerydomain): Retain trailing dot. * posix/tst-getaddrinfo5.c: New. * posix/Makefile (tests): Add it. https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=4969890247d7d6a548f17641ed5a18f4b713d211 commit 4969890247d7d6a548f17641ed5a18f4b713d211 Author: Alexandre Oliva Date: Fri Nov 21 03:29:56 2014 -0200 BZ#14498: fix infinite loop in nss_db_getservbyname nss_db uses nss_files code for services, but a continue on protocol mismatch that doesn't affect nss_files skipped the code that advanced to the next db entry. Any one of these changes would suffice to fix it, but fixing both makes them both safer to reuse elsewhere. for ChangeLog [BZ #14498] * NEWS: Fixed. * nss/nss_db/db-XXX.c (_nss_db_get##name##_r): Update hidx after parsing line but before break_if_match. * nss/nss_files/files-service (DB_LOOKUP): Don't "continue;" if there is a protocol mismatch. ----------------------------------------------------------------------- Summary of changes: ChangeLog | 24 ++++++++++++++ NEWS | 8 ++-- nss/nss_db/db-XXX.c | 9 +++-- nss/nss_files/files-service.c | 7 +++- posix/Makefile | 2 +- posix/tst-getaddrinfo5.c | 69 +++++++++++++++++++++++++++++++++++++++++ resolv/res_query.c | 30 +++++++++-------- 7 files changed, 125 insertions(+), 24 deletions(-) create mode 100644 posix/tst-getaddrinfo5.c -- You are receiving this mail because: You are on the CC list for the bug.