]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - ChangeLog
Fix math/test-fenvinline for no-exceptions configurations.
[thirdparty/glibc.git] / ChangeLog
index 9685fde488eb0ec582e749ca6090161d3900f44f..70b643542b433770a250a77dfd832c9a856909a7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,404 @@
+2017-01-03  Joseph Myers  <joseph@codesourcery.com>
+
+       * math/test-fenvinline.c (do_test): Disable tests of raised
+       exceptions if !EXCEPTION_TESTS (FLOAT).
+
+2017-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
+
+       [BZ #19390]
+       * string/test-strncat.c (test_main): Add tests with SIZE_MAX as
+       maximum string size.
+       * sysdeps/i386/i686/multiarch/strcat-sse2.S (STRCAT): Avoid overflow
+       in pointer addition.
+       * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S (STRCPY):
+       Likewise.
+
+2017-01-03  Joseph Myers  <joseph@codesourcery.com>
+
+       * elf/Makefile ($(objpfx)tst-ldconfig-X.out): Correct arguments
+       passed to tst-ldconfig-X.sh.
+
+2017-01-03  Martin Galvan  <martingalvan@sourceware.org>
+
+       * nptl/nptl-printers.py: Fix tabs/spaces mismatches.
+
+2017-01-02  Joseph Myers  <joseph@codesourcery.com>
+
+       [BZ #21019]
+       * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (lseek64):
+       New syscall entry.
+       * sysdeps/unix/sysv/linux/mips/mips64/n32/lseek.c: New file.
+       * io/test-lfs.c (do_test): Test offset returned from lseek64 and
+       lseek.
+
+       * scripts/build-many-glibcs.py (Context.add_all_configs): Add
+       power4 glibc for powerpc-linux-gnu.
+
+2017-01-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
+
+       * sysvipc/test-sysvsem.c (do_test): Define and use union semun on
+       semctl.
+
+2017-01-02  Joseph Myers  <joseph@codesourcery.com>
+
+       * math/test-nearbyint-except.c: Include <stdbool.h>.
+       (any_supported): New variable.
+       (TEST_FUNC): Return early if !EXCEPTION_TESTS (FLOAT).  Otherwise
+       set any_supported.
+       (do_test): Return 77 if no floating-point type supported
+       exceptions.
+
+       * sysdeps/mips/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD): Do not
+       condition on [__mips_hard_float].
+
+2017-01-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
+
+       [BZ #21014]
+       * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S (MEMCHR): Avoid overflow
+       in pointer addition.
+       * sysdeps/i386/i686/multiarch/memchr-sse2.S (MEMCHR): Likewise.
+
+2017-01-02  Torvald Riegel  <triegel@redhat.com>
+
+       * sysdeps/sparc/nptl/bits/pthreadtypes.h (pthread_cond_t): Adapt to
+       new condvar.
+
+2017-01-02  Joseph Myers  <joseph@codesourcery.com>
+
+       * scripts/build-many-glibcs.py (Context.checkout): Default
+       binutils version to 2.28 branch.
+
+2017-01-01  Florian Weimer  <fweimer@redhat.com>
+
+       * support/support_format_netent.c (support_format_netent): Work
+       around alpha struct netent definition difference.
+
+2017-01-01  Florian Weimer  <fweimer@redhat.com>
+
+       * support/xwrite.c (xwrite): Use %td for pointer difference.
+
+2017-01-01  Florian Weimer  <fweimer@redhat.com>
+
+       * malloc/Makefile (tests): Add tst-malloc-usable-tunables for
+       have-tunables only.
+       (tests-static): Add tst-malloc-usable-static-tunables for
+       have-tunables only.
+
+2017-01-01  Joseph Myers  <joseph@codesourcery.com>
+
+       * scripts/config.guess: Update to version 2017-01-01.
+       * scripts/config.sub: Update to version 2017-01-01.
+
+       * NEWS: Update copyright dates.
+       * catgets/gencat.c (print_version): Likewise.
+       * csu/version.c (banner): Likewise.
+       * debug/catchsegv.sh: Likewise.
+       * debug/pcprofiledump.c (print_version): Likewise.
+       * debug/xtrace.sh (do_version): Likewise.
+       * elf/ldconfig.c (print_version): Likewise.
+       * elf/ldd.bash.in: Likewise.
+       * elf/pldd.c (print_version): Likewise.
+       * elf/sotruss.sh: Likewise.
+       * elf/sprof.c (print_version): Likewise.
+       * iconv/iconv_prog.c (print_version): Likewise.
+       * iconv/iconvconfig.c (print_version): Likewise.
+       * locale/programs/locale.c (print_version): Likewise.
+       * locale/programs/localedef.c (print_version): Likewise.
+       * login/programs/pt_chown.c (print_version): Likewise.
+       * malloc/memusage.sh (do_version): Likewise.
+       * malloc/memusagestat.c (print_version): Likewise.
+       * malloc/mtrace.pl: Likewise.
+       * manual/libc.texinfo: Likewise.
+       * nptl/version.c (banner): Likewise.
+       * nscd/nscd.c (print_version): Likewise.
+       * nss/getent.c (print_version): Likewise.
+       * nss/makedb.c (print_version): Likewise.
+       * posix/getconf.c (main): Likewise.
+       * scripts/test-installation.pl: Likewise.
+       * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
+
+       * All files with FSF copyright notices: Update copyright dates
+       using scripts/update-copyrights.
+       * intl/plural.c: Regenerated.
+       * locale/programs/charmap-kw.h: Likewise.
+       * locale/programs/locfile-kw.h: Likewise.
+
+2016-12-31  Florian Weimer  <fweimer@redhat.com>
+
+       [BZ #20593]
+       Update DNS RR type definitions.
+       * scripts/gen-rrtypes.py: New file.
+       * resolv/arpa/nameser.h (ns_type): Remove ns_t_zxfr, a
+       BIND-internal RR type not used on the Internet.  Add ns_t_ds,
+       ns_t_sshfp, ns_t_ipseckey, ns_t_rrsig, ns_t_nsec, ns_t_dnskey,
+       ns_t_dhcid, ns_t_nsec3, ns_t_nsec3param, ns_t_tlsa, ns_t_smimea,
+       ns_t_hip, ns_t_ninfo, ns_t_rkey, ns_t_talink, ns_t_cds,
+       ns_t_cdnskey, ns_t_openpgpkey, ns_t_csync, ns_t_spf, ns_t_uinfo,
+       ns_t_uid, ns_t_gid, ns_t_unspec, ns_t_nid, ns_t_l32, ns_t_l64,
+       ns_t_lp, ns_t_eui48, ns_t_eui64, ns_t_uri, ns_t_caa, ns_t_avc,
+       ns_t_ta, ns_t_dlv.
+       * resolv/arpa/nameser_compat.h (T_KX, T_CERT, T_SINK, T_OPT)
+       (T_APL, T_DS, T_SSHFP, T_IPSECKEY, T_RRSIG, T_NSEC, T_DNSKEY)
+       (T_DHCID, T_NSEC3, T_NSEC3PARAM, T_TLSA, T_SMIMEA, T_HIP, T_NINFO)
+       (T_RKEY, T_TALINK, T_CDS, T_CDNSKEY, T_OPENPGPKEY, T_CSYNC, T_SPF)
+       (T_UINFO, T_UID, T_GID, T_UNSPEC, T_NID, T_L32, T_L64, T_LP)
+       (T_EUI48, T_EUI64, T_TKEY, T_URI, T_CAA, T_AVC, T_TA, T_DLV):
+       Define.
+       * resolv/res_debug.c (__p_type_syms): Update comment.  Remove
+       entry for ns_t_zxfr.
+
+2016-12-31  Florian Weimer  <fweimer@redhat.com>
+
+       [BZ #18784]
+       CVE-2015-5180
+       * include/arpa/nameser_compat.h (T_QUERY_A_AND_AAAA): Rename from
+       T_UNSPEC.  Adjust value.
+       * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Use it.
+       * resolv/res_query.c (__libc_res_nquery): Likewise.
+       * resolv/res_mkquery.c (res_nmkquery): Check for out-of-range
+       QTYPEs.
+       * resolv/tst-resolv-qtypes.c: New file.
+       * resolv/Makefile (xtests): Add tst-resolv-qtypes.
+       (tst-resolv-qtypes): Link against libresolv and libpthread.
+
+2016-12-31  Florian Weimer  <fweimer@redhat.com>
+
+       * elf/dl-tunables.h (__tunables_init): Fix unused attribute.
+
+2016-12-31  Siddhesh Poyarekar  <siddhesh@sourceware.org>
+
+       * manual/tunables.texi: New chapter.
+       * manual/Makefile (chapters): Add it.
+       * manual/probes.texi (@node): Point to the Tunables chapter.
+
+       * Makeconfig (have-tunables): Check for non-negative instead
+       of positive.
+       * configure.ac: Add 'valstring' as a valid value for
+       --enable-tunables.
+       * configure: Regenerate.
+       * elf/Makefile (have-tunables): Check for non-negative instead
+       of positive.
+       (CPPFLAGS-dl-tunables.c): Define TUNABLES_FRONTEND for
+       dl-tunables.c.
+       * elf/dl-tunables.c (GLIBC_TUNABLES): Define only when
+       TUNABLES_FRONTEND == TUNABLES_FRONTEND_valstring.
+       (tunables_strdup): Likewise.
+       (disable_tunables): Likewise.
+       (parse_tunables): Likewise.
+       (__tunables_init): Process GLIBC_TUNABLES envvar only when.
+       TUNABLES_FRONTEND == TUNABLES_FRONTEND_valstring.
+       * elf/dl-tunables.h (TUNABLES_FRONTEND_valstring): New macro.
+       (TUNABLES_FRONTEND_yes): New macro, define as
+       TUNABLES_FRONTEND_valstring by default.
+       * manual/install.texi: Document new acceptable values for
+       --enable-tunables.
+       * INSTALL: Regenerate.
+
+       * config.make.in (have-loop-to-function): Define.
+       * elf/Makefile (CFLAGS-dl-tunables.c): Add
+       -fno-tree-loop-distribute-patterns.
+       * elf/dl-tunables.c: Include libc-internals.h.
+       (GLIBC_TUNABLES): New macro.
+       (tunables_strdup): New function.
+       (parse_tunables): New function.
+       (min_strlen): New function.
+       (__tunables_init): Use the new functions and macro.
+       (disable_tunable): Disable tunable from GLIBC_TUNABLES.
+       * malloc/tst-malloc-usable-tunables.c: New test case.
+       * malloc/tst-malloc-usable-static-tunables.c: New test case.
+       * malloc/Makefile (tests, tests-static): Add tests.
+
+       * manual/install.texi: Add --enable-tunables option.
+       * INSTALL: Regenerate.
+       * README.tunables: New file.
+       * Makeconfig (CPPFLAGS): Define TOP_NAMESPACE.
+       (before-compile): Generate dl-tunable-list.h early.
+       * config.h.in: Add HAVE_TUNABLES.
+       * config.make.in: Add have-tunables.
+       * configure.ac: Add --enable-tunables option.
+       * configure: Regenerate.
+       * csu/init-first.c (__libc_init_first): Move
+       __libc_init_secure earlier...
+       * csu/init-first.c (LIBC_START_MAIN):... to here.
+       Include dl-tunables.h, libc-internal.h.
+       (LIBC_START_MAIN) [!SHARED]: Initialize tunables for static
+       binaries.
+       * elf/Makefile (dl-routines): Add dl-tunables.
+       * elf/Versions (ld): Add __tunable_set_val to GLIBC_PRIVATE
+       namespace.
+       * elf/dl-support (_dl_nondynamic_init): Unset MALLOC_CHECK_
+       only when !HAVE_TUNABLES.
+       * elf/rtld.c (process_envvars): Likewise.
+       * elf/dl-sysdep.c [HAVE_TUNABLES]: Include dl-tunables.h
+       (_dl_sysdep_start): Call __tunables_init.
+       * elf/dl-tunable-types.h: New file.
+       * elf/dl-tunables.c: New file.
+       * elf/dl-tunables.h: New file.
+       * elf/dl-tunables.list: New file.
+       * malloc/tst-malloc-usable-static.c: New test case.
+       * malloc/Makefile (tests-static): Add it.
+       * malloc/arena.c [HAVE_TUNABLES]: Include dl-tunables.h.
+       Define TUNABLE_NAMESPACE.
+       (DL_TUNABLE_CALLBACK (set_mallopt_check)): New function.
+       (DL_TUNABLE_CALLBACK_FNDECL): New macro.  Use it to define
+       callback functions.
+       (ptmalloc_init): Set tunable values.
+       * scripts/gen-tunables.awk: New file.
+       * sysdeps/mach/hurd/dl-sysdep.c: Include dl-tunables.h.
+       (_dl_sysdep_start): Call __tunables_init.
+
+2016-12-31  Florian Weimer  <fweimer@redhat.com>
+
+       * resolv/resolv.h (RES_BLAST): Deprecate.
+       * resolv/res_debug.c (p_option): Remove RES_BLAST.
+       * resolv/res_send.c (__libc_res_nsend): Remove vestigial reference
+       to RES_BLAST.
+
+2016-12-27  Florian Weimer  <fweimer@redhat.com>
+
+       [BZ #19582]
+       Deprecate RES_USE_INET6.
+       * nis/nss_nis/nis-hosts.c (_nss_nis_gethostent_r)
+       (_nss_nis_gethostbyname2_r, _nss_nis_gethostbyname_r)
+       (_nss_nis_gethostbyaddr_r): Use res_use_inet6 instead of
+       RES_USE_INET6.
+       * nis/nss_nisplus/nisplus-hosts.c (internal_nisplus_gethostent_r)
+       (_nss_nisplus_gethostbyname2_r, _nss_nisplus_gethostbyname_r)
+       (_nss_nisplus_gethostbyaddr_r): Likewise.
+       * nscd/aicache.c (addhstaiX): Use DEPRECATED_RES_USE_INET6 instead
+       of res_use_inet6.
+       * nscd/nscd_gethst_r.c (__nscd_gethostbyname_r): Use res_use_inet6
+       instead of RES_USE_INET6.
+       * nss/digits_dots.c (__nss_hostname_digits_dots): Likewise.
+       * nss/nss_files/files-hosts.c (EXTRA_ARGS_VALUE)
+       (_nss_files_gethostbyname3_r, _nss_files_gethostbyname_r):
+       Likewise.
+       * resolv/compat-gethnamaddr.c (getanswer, res_gethostbyname)
+       (res_gethostbyname2, res_gethostbyaddr, _gethtent, _gethtbyname):
+       Likewise.
+       * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r)
+       (_nss_dns_gethostbyname_r): Likewise.
+       (_nss_dns_gethostbyaddr2_r): Remove commented-out code for
+       alternate RES_USE_INET6 handling.
+       * resolv/res_debug.c (p_option): Use DEPRECATED_RES_USE_INET6
+       instead of RES_USE_INET6.
+       * resolv/res_init.c (res_setoptions): Likewise.
+       * resolv/resolv.h (RES_USE_INET6): Mark as deprecated.
+       * resolv/resolv-internal.h: New file.
+       * resolv/Makefile (CFLAGS-tst-res_use_inet6.c): Use -Wno-error to
+       make the deprecation warning non-fatal.
+       * resolv/README (Using the resolver in multi-threaded code): Drop
+       reference to RES_USE_INET6.
+       * sysdeps/posix/getaddrinfo.c (gethosts, gaih_inet): Use
+       DEPRECATED_RES_USE_INET6 instead of res_use_inet6.
+
+2016-12-31  Florian Weimer  <fweimer@redhat.com>
+
+       * resolv/Makefile (tests): Add tst-bug18665, tst-bug18665-tcp,
+       tst-res_use_inet6, tst-resolv-basic, tst-resolv-network,
+       tst-resolv-search.
+       (tst-bug18665, tst-bug18665-tcp, tst-res_use_inet6)
+       (tst-resolv-basic, tst-resolv-network, tst-resolv-search): Link
+       with libresolv and libpthread.
+       * resolv/tst-bug18665.c: New file.
+       * resolv/tst-bug18665-tcp: Likewise.
+       * resolv/tst-res_use_inet6: Likewise.
+       * resolv/tst-resolv-basic: Likewise.
+       * resolv/tst-resolv-network: Likewise.
+       * resolv/tst-resolv-search: Likewise.
+       * support/Makefile (libsupport-routines): Add check_addrinfo,
+       check_dns_packet, check_hostent, check_netent, resolv_test,
+       support_format_address_family, support_format_addrinfo,
+       support_format_dns_packet, support_format_herrno,
+       support_format_hostent, support_format_netent, support_run_diff,
+       xaccept, xbind, xconnect, xfclose, xfopen, xgetsockname, xlisten,
+       xmemstream, xpoll, xpthread_once, xrecvfrom, xsendto, xsetsockopt,
+       xstrdup, xwrite.
+       * support/check_addrinfo.c: New file.
+       * support/check_dns_packet.c: Likewise.
+       * support/check_hostent.c: Likewise.
+       * support/check_netent.c: Likewise.
+       * support/check_nss.h: Likewise.
+       * support/format_nss.h: Likewise.
+       * support/resolv_test.c: Likewise.
+       * support/resolv_test.h: Likewise.
+       * support/run_diff.h: Likewise.
+       * support/support_format_address_family.c: Likewise.
+       * support/support_format_addrinfo.c: Likewise.
+       * support/support_format_dns_packet.c: Likewise.
+       * support/support_format_herrno.c: Likewise.
+       * support/support_format_hostent.c: Likewise.
+       * support/support_format_netent.c: Likewise.
+       * support/support_run_diff.c: Likewise.
+       * support/xaccept.c: Likewise.
+       * support/xbind.c: Likewise.
+       * support/xconnect.c: Likewise.
+       * support/xfclose.c: Likewise.
+       * support/xfopen.c: Likewise.
+       * support/xgetsockname.c: Likewise.
+       * support/xlisten.c: Likewise.
+       * support/xmemstream.c: Likewise.
+       * support/xmemstream.h: Likewise.
+       * support/xpoll.c: Likewise.
+       * support/xpthread_once.c: Likewise.
+       * support/xrecvfrom.c: Likewise.
+       * support/xsendto.c: Likewise.
+       * support/xsetsockopt.c: Likewise.
+       * support/xstdio.h: Likewise.
+       * support/xstrdup.c: Likewise.
+       * support/support.h (xstrdup): Declare.
+       * support/xsocket.h (xsetsockopt, xgetsockname, xconnect, xbind)
+       (xlisten, xaccept, xsendto, xrecvfrom, xpoll): Likewise.
+       * support/xthread.h (xpthread_once): Likwise.
+       * support/xunistd.h (xwrite): Declare.
+
+2016-12-31  Florian Weimer  <fweimer@redhat.com>
+
+       * support/test-driver.h (TEST_DEFAULT_OPTIONS): Add --verbose.
+       (test_verbose): Declare.
+       * support/test-driver.c (main): Use TEST_DEFAULT_OPTIONS.
+       * support/support_test_main.c (default_options): Likewise.
+       (usage, support_test_main): Handle 'v'.
+       (test_verbose): Define.
+       * support/tst-support_record_failure.c (do_test): Use
+       test_verbose.
+       * support/tst-support_record_failure-2.sh (different_status): Add
+       --verbose test.
+
+2016-12-31  Florian Weimer  <fweimer@redhat.com>
+
+       * support/check.h (FAIL_RET, FAIL_EXIT, FAIL_EXIT1): Document that
+       test failures are recorded.
+       * support/check.c (support_print_failure_impl): Call
+       support_record_failure.
+       (support_exit_failure_impl): Call support_record_failure if status
+       indicates failure.
+       * support/delayed_exit.c (delayed_exit_thread): Use FAIL_EXIT1.
+       * support/xasprintf.c (xasprintf): Likewise.
+       * support/xfork.c (xfork): Likewise.
+       * support/xpthread_check_return.c (xpthread_check_return):
+       Likewise.
+       * support/xsocket.c (xsocket): Likeweise.
+       * support/xwaitpid.c (xwaitpid): Likewise.
+       * support/support_record_failure.c (struct test_failures): Adjust
+       to coding style.
+       * support/support_test_verify_impl.c (support_test_verify_impl):
+       Adjust error messages.
+       * support/tst-support_record_failure-2.sh (different_status):
+       Adjust error messages.
+
+2016-12-31  Florian Weimer  <fweimer@redhat.com>
+
+       * support/namespace.h: New file.
+       * support/support_become_root.c: Likewise.
+       * support/support_enter_network_namespace.c: Likewise.
+       * support/tst-support-namespace.c: Likewise.
+       * support/xsocket.c: Likewise.
+       * support/xsocket.h: Likewise.
+       * support/Makefile (libsupport-routines): Add support_become_root,
+       support_enter_network_namespace, xsocket.
+       (tests): Add tst-support-namespace.
+
 2016-12-31  Florian Weimer  <fweimer@redhat.com>
 
        [BZ #17252]