commit 2c692a24b0d41bcfd469b6a55890264662b511d5 (HEAD -> gentoo/2.28, gentoo/gentoo/2.28)
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: Thu Jan 10 02:19:55 2019 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Thu Jan 10 02:21:08 2019 +0100

    Gentoo: Disable test nptl/tst-tss-basic; fails due to sandbox
    
    error: tst-tss-basic.c:53: tss_set succeed where it should have failed
    error: 1 test failures
    
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 nptl/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 5cf53b26727a57d1f2a03a09de38148b582dc717
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: Thu Jan 10 00:53:23 2019 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Thu Jan 10 01:23:08 2019 +0100

    resolv: AAAA (28) is valid, no fallthrough to default
    
    The test resolv/tst-resolv-ai_idn-nolibidn2 kept failing, with the puzzling
    output "invalid qtype: 28". Puzzling since 28 is an AAAA record.
    Turns out the switch statement is missing a break, so the "T_AAAA" case
    continues with "default".
    
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 resolv/tst-resolv-ai_idn-common.c | 1 +
 1 file changed, 1 insertion(+)

commit 031816f9f59f500bec995b89f23e48b9c2497410 (tag: gentoo/glibc-2.28-7)
Author:     Aurelien Jarno <aurelien@aurel32.net>
AuthorDate: Thu Jan 3 15:51:37 2019 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Wed Jan 9 00:27:35 2019 +0100

    Only build libm with -fno-math-errno (bug 24024)
    
    Commit 1294b1892e ("Add support for sqrt asm redirects") added the
    -fno-math-errno flag to build most of the glibc in order to enable GCC
    to inline math functions. Due to GCC bug #88576, saving and restoring
    errno around calls to malloc are optimized-out. In turn this causes
    strerror to set errno to ENOMEM if it get passed an invalid error number
    and if malloc sets errno to ENOMEM (which might happen even if it
    succeeds). This is not allowed by POSIX.
    
    This patch changes the build flags, building only libm with
    -fno-math-errno and all the remaining code with -fno-math-errno. This
    should be safe as libm doesn't contain any code saving and restoring
    errno around malloc. This patch can probably be reverted once the GCC
    bug is fixed and available in stable releases.
    
    Tested on x86-64, no regression in the testsuite.
    
    Changelog:
            [BZ #24024]
            * Makeconfig: Build libm with -fno-math-errno but build the remaining
            code with -fmath-errno.
            * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
            [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
            * string/test-strerror-errno.c: New file.
    
    (cherry picked from commit 2ef427168818ce04b03cecb7b739f9db0156e3e4)
    (cherry picked from commit 198bfee8085fcc63d6401fec0c542b62aea711a5)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ChangeLog                    |  9 +++++++
 Makeconfig                   |  6 +++--
 NEWS                         |  1 +
 string/Makefile              |  6 +++++
 string/test-strerror-errno.c | 61 ++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 81 insertions(+), 2 deletions(-)

commit ac52ea9790631b3abfbcd25ef03d13361a9e8ca5
Author:     Martin Jansa <Martin.Jansa@gmail.com>
AuthorDate: Tue Oct 2 15:38:43 2018 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Wed Jan 9 00:27:05 2019 +0100

    sysdeps/ieee754/soft-fp: ignore maybe-uninitialized with -O [BZ #19444]
    
    * with -O, -O1, -Os it fails with:
    
    In file included from ../soft-fp/soft-fp.h:318,
                     from ../sysdeps/ieee754/soft-fp/s_fdiv.c:28:
    ../sysdeps/ieee754/soft-fp/s_fdiv.c: In function '__fdiv':
    ../soft-fp/op-2.h:98:25: error: 'R_f1' may be used uninitialized in this function [-Werror=maybe-uninitialized]
            X##_f0 = (X##_f1 << (_FP_W_TYPE_SIZE - (N)) | X##_f0 >> (N) \
                             ^~
    ../sysdeps/ieee754/soft-fp/s_fdiv.c:38:14: note: 'R_f1' was declared here
       FP_DECL_D (R);
                  ^
    ../soft-fp/op-2.h:37:36: note: in definition of macro '_FP_FRAC_DECL_2'
       _FP_W_TYPE X##_f0 _FP_ZERO_INIT, X##_f1 _FP_ZERO_INIT
                                        ^
    ../soft-fp/double.h:95:24: note: in expansion of macro '_FP_DECL'
     # define FP_DECL_D(X)  _FP_DECL (2, X)
                            ^~~~~~~~
    ../sysdeps/ieee754/soft-fp/s_fdiv.c:38:3: note: in expansion of macro 'FP_DECL_D'
       FP_DECL_D (R);
       ^~~~~~~~~
    ../soft-fp/op-2.h:101:17: error: 'R_f0' may be used uninitialized in this function [-Werror=maybe-uninitialized]
           : (X##_f0 << (_FP_W_TYPE_SIZE - (N))) != 0)); \
                     ^~
    ../sysdeps/ieee754/soft-fp/s_fdiv.c:38:14: note: 'R_f0' was declared here
       FP_DECL_D (R);
                  ^
    ../soft-fp/op-2.h:37:14: note: in definition of macro '_FP_FRAC_DECL_2'
       _FP_W_TYPE X##_f0 _FP_ZERO_INIT, X##_f1 _FP_ZERO_INIT
                  ^
    ../soft-fp/double.h:95:24: note: in expansion of macro '_FP_DECL'
     # define FP_DECL_D(X)  _FP_DECL (2, X)
                            ^~~~~~~~
    ../sysdeps/ieee754/soft-fp/s_fdiv.c:38:3: note: in expansion of macro 'FP_DECL_D'
       FP_DECL_D (R);
       ^~~~~~~~~
    
    Build tested with Yocto for ARM, AARCH64, X86, X86_64, PPC, MIPS, MIPS64
    with -O, -O1, -Os.
    For AARCH64 it needs one more fix in locale for -Os.
    
            [BZ #19444]
            * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
            DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
            DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
    
    (cherry picked from commit 4a06ceea33ecc220bbfe264d8f1e74de2f04e90d)
    (cherry picked from commit 1e5c5303a522764d7e9d2302a60e4a32cdb902f1)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ChangeLog                        |  7 +++++++
 NEWS                             |  1 +
 sysdeps/ieee754/soft-fp/s_fdiv.c | 12 ++++++++++++
 3 files changed, 20 insertions(+)

commit 3031b05510b6227d3ed8102d69c0225e8796ce31
Author:     Aurelien Jarno <aurelien@aurel32.net>
AuthorDate: Wed Jan 2 18:21:18 2019 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Wed Jan 9 00:26:40 2019 +0100

    ARM: fix kernel assisted atomics with GCC 8 (bug 24034)
    
    The pre-ARMv7 CPUs are missing atomic compare and exchange and/or
    barrier instructions. Therefore those are implemented using kernel
    assistance, calling a kernel function at a specific address, and passing
    the arguments in the r0 to r4 registers. This is done by specifying
    registers for local variables. The a_ptr variable is placed in the r2
    register and declared with __typeof (mem). According to the GCC
    documentation on local register variables, if mem is a constant pointer,
    the compiler may substitute the variable with its initializer in asm
    statements, which may cause the corresponding operand to appear in a
    different register.
    
    This happens in __libc_start_main with the pointer to the thread counter
    for static binaries (but not the shared ones):
    
      # ifdef SHARED
            unsigned int *ptr = __libc_pthread_functions.ptr_nthreads;
      #  ifdef PTR_DEMANGLE
            PTR_DEMANGLE (ptr);
      #  endif
      # else
            extern unsigned int __nptl_nthreads __attribute ((weak));
            unsigned int *const ptr = &__nptl_nthreads;
      # endif
    
    This causes static binaries using threads to crash when the GNU libc is
    built with GCC 8 and most notably tst-cancel21-static.
    
    To fix that, use the same trick than for the volatile qualifier,
    defining a_ptr as a union.
    
    Changelog:
            [BZ #24034]
            * sysdeps/unix/sysv/linux/arm/atomic-machine.h
            (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
            than __typeof (...) for the a_ptr variable.
    (cherry picked from commit fe20bb1d6084bbf38fef587b0fb33eb6257cc1ed)
    (cherry picked from commit 2a8612b278bdb059e2d069b6d72570d7e0dc7aeb)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ChangeLog                                    |  7 +++++++
 NEWS                                         |  1 +
 sysdeps/unix/sysv/linux/arm/atomic-machine.h | 18 +++++++++++++-----
 3 files changed, 21 insertions(+), 5 deletions(-)

commit dc6b993f5d259c4b63417d4406a7cd93eccefad5
Author:     H.J. Lu <hjl.tools@gmail.com>
AuthorDate: Thu Jan 3 14:13:32 2019 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Wed Jan 9 00:25:43 2019 +0100

    riscv: Use __has_include__ to include <asm/syscalls.h> [BZ #24022]
    
    <asm/syscalls.h> has been removed by
    
    commit 27f8899d6002e11a6e2d995e29b8deab5aa9cc25
    Author: David Abdurachmanov <david.abdurachmanov@gmail.com>
    Date:   Thu Nov 8 20:02:39 2018 +0100
    
        riscv: add asm/unistd.h UAPI header
    
        Marcin Juszkiewicz reported issues while generating syscall table for riscv
        using 4.20-rc1. The patch refactors our unistd.h files to match some other
        architectures.
    
        - Add asm/unistd.h UAPI header, which has __ARCH_WANT_NEW_STAT only for 64-bit
        - Remove asm/syscalls.h UAPI header and merge to asm/unistd.h
        - Adjust kernel asm/unistd.h
    
        So now asm/unistd.h UAPI header should show all syscalls for riscv.
    
    <asm/syscalls.h> may be restored by
    
    Subject: [PATCH] riscv: restore asm/syscalls.h UAPI header
    Date: Tue, 11 Dec 2018 09:09:35 +0100
    
    UAPI header asm/syscalls.h was merged into UAPI asm/unistd.h header,
    which did resolve issue with missing syscalls macros resulting in
    glibc (2.28) build failure. It also broke glibc in a different way:
    asm/syscalls.h is being used by glibc. I noticed this while doing
    Fedora 30/Rawhide mass rebuild.
    
    The patch returns asm/syscalls.h header and incl. it into asm/unistd.h.
    I plan to send a patch to glibc to use asm/unistd.h instead of
    asm/syscalls.h
    
    In the meantime, we use __has_include__, which was added to GCC 5, to
    check if <asm/syscalls.h> exists before including it.  Tested with
    build-many-glibcs.py for riscv against kernel 4.19.12 and 4.20-rc7.
    
            [BZ #24022]
            * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
            <asm/syscalls.h> exists with __has_include__ before including it.
    
    (cherry picked from commit 0b9c84906f653978fb8768c7ebd0ee14a47e662e)
    (cherry picked from commit be62bbb621fae189f449f522512093b034cd2640)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ChangeLog | 6 ++++++
 NEWS      | 1 +
 2 files changed, 7 insertions(+)

commit d8c55c6edb951476c9100d002346d2281a7ee2ff
Author:     Florian Weimer <fweimer@redhat.com>
AuthorDate: Wed Jan 2 16:46:12 2019 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Wed Jan 9 00:24:58 2019 +0100

    intl: Do not return NULL on asprintf failure in gettext [BZ #24018]
    
    Fixes commit 9695dd0c9309712ed8e9c17a7040fe7af347f2dc ("DCIGETTEXT:
    Use getcwd, asprintf to construct absolute pathname").
    
    (cherry picked from commit 8c1aafc1f34d090a5b41dc527c33e8687f6a1287)
    (cherry picked from commit bee4baf6d7a1055f7e2819209e722c6effc9c1bf)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ChangeLog         | 6 ++++++
 NEWS              | 1 +
 intl/dcigettext.c | 2 +-
 3 files changed, 8 insertions(+), 1 deletion(-)

commit ee1d633f22a8b2a6aa419c3c2e3746f9dde49b03
Author:     Florian Weimer <fw@deneb.enyo.de>
AuthorDate: Mon Dec 31 22:04:36 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Wed Jan 9 00:24:35 2019 +0100

    malloc: Always call memcpy in _int_realloc [BZ #24027]
    
    This commit removes the custom memcpy implementation from _int_realloc
    for small chunk sizes.  The ncopies variable has the wrong type, and
    an integer wraparound could cause the existing code to copy too few
    elements (leaving the new memory region mostly uninitialized).
    Therefore, removing this code fixes bug 24027.
    
    (cherry picked from commit b50dd3bc8cbb1efe85399b03d7e6c0310c2ead84)
    (cherry picked from commit 8f83d095fabf9e3e9e23023a010e50a21810d918)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ChangeLog       |  7 +++++++
 NEWS            |  1 +
 malloc/malloc.c | 43 +------------------------------------------
 3 files changed, 9 insertions(+), 42 deletions(-)

commit 4df37d0de55f97ae476d9775adfa1499e5b22568
Author:     Aurelien Jarno <aurelien@aurel32.net>
AuthorDate: Fri Dec 28 11:24:48 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Wed Jan 9 00:24:04 2019 +0100

    Update Alpha libm-test-ulps
    
    Changelog:
            * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
    (cherry picked from commit 69b914a99e24da875f9f4f2449ec9a6126ac3bc2)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ChangeLog                        | 4 ++++
 sysdeps/alpha/fpu/libm-test-ulps | 8 ++++++++
 2 files changed, 12 insertions(+)

commit b462a389ad5ffdf99d87ba3ef832dd41d55cb90b
Author:     H.J. Lu <hjl.tools@gmail.com>
AuthorDate: Mon Dec 31 09:26:42 2018 -0800
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Jan 8 13:07:07 2019 +0100

    riscv: Use __has_include__ to include <asm/syscalls.h> [BZ #24022]
    
    <asm/syscalls.h> has been removed by
    
    commit 27f8899d6002e11a6e2d995e29b8deab5aa9cc25
    Author: David Abdurachmanov <david.abdurachmanov@gmail.com>
    Date:   Thu Nov 8 20:02:39 2018 +0100
    
        riscv: add asm/unistd.h UAPI header
    
        Marcin Juszkiewicz reported issues while generating syscall table for riscv
        using 4.20-rc1. The patch refactors our unistd.h files to match some other
        architectures.
    
        - Add asm/unistd.h UAPI header, which has __ARCH_WANT_NEW_STAT only for 64-bit
        - Remove asm/syscalls.h UAPI header and merge to asm/unistd.h
        - Adjust kernel asm/unistd.h
    
        So now asm/unistd.h UAPI header should show all syscalls for riscv.
    
    <asm/syscalls.h> may be restored by
    
    Subject: [PATCH] riscv: restore asm/syscalls.h UAPI header
    Date: Tue, 11 Dec 2018 09:09:35 +0100
    
    UAPI header asm/syscalls.h was merged into UAPI asm/unistd.h header,
    which did resolve issue with missing syscalls macros resulting in
    glibc (2.28) build failure. It also broke glibc in a different way:
    asm/syscalls.h is being used by glibc. I noticed this while doing
    Fedora 30/Rawhide mass rebuild.
    
    The patch returns asm/syscalls.h header and incl. it into asm/unistd.h.
    I plan to send a patch to glibc to use asm/unistd.h instead of
    asm/syscalls.h
    
    In the meantime, we use __has_include__, which was added to GCC 5, to
    check if <asm/syscalls.h> exists before including it.  Tested with
    build-many-glibcs.py for riscv against kernel 4.19.12 and 4.20-rc7.
    
            [BZ #24022]
            * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
            <asm/syscalls.h> exists with __has_include__ before including it.
    
    (cherry picked from commit 0b9c84906f653978fb8768c7ebd0ee14a47e662e)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 sysdeps/unix/sysv/linux/riscv/flush-icache.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

commit 092c65f85171fc28633084b7af0d9fb67df0d093
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: Fri Dec 21 21:55:35 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sat Dec 29 23:16:18 2018 +0100

    [no-patch] Gentoo: Add --inplace-glibc switch to locale-gen
    
    See also https://bugs.gentoo.org/146882
    
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
    (cherry picked from commit 84315fdfee2a2c7099b59383cba24f03792491a6)

 scripts/gentoo/extra/locale/locale-gen | 55 +++++++++++++++++++++++++++-------
 1 file changed, 44 insertions(+), 11 deletions(-)

commit 28a3d5f25227223aefe41fdaa74020fafa31397d (tag: gentoo/glibc-2.28-6)
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: Fri Dec 21 16:30:13 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Dec 21 16:30:13 2018 +0100

    [no-patch] Gentoo: do not touch locale-archive when no locales requested in config
    
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 scripts/gentoo/extra/locale/locale-gen | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

commit 5d283f479c60b1b0d569cb6c5be7345773ec25b0
Author:     Adhemerval Zanella <adhemerval.zanella@linaro.org>
AuthorDate: Tue Dec 11 16:52:47 2018 -0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Dec 21 15:22:33 2018 +0100

    m68k: Fix sigaction kernel definition (BZ #23967)
    
    Commit b4a5d26d883 (linux: Consolidate sigaction implementation) added
    a wrong kernel_sigaction definition for m68k, meant for __NR_sigaction
    instead of __NR_rt_sigaction as used on generic Linux sigaction
    implementation.  This patch fixes it by using the Linux generic
    definition meant for the RT kernel ABI.
    
    Checked the signal tests on emulated m68-linux-gnu (Aranym).  It fixes
    the faulty signal/tst-sigaction and man works as expected.
    
            Adhemerval Zanella  <adhemerval.zanella@linaro.org>
            James Clarke  <jrtc27@jrtc27.com>
    
            [BZ #23967]
            * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
            Define if SA_RESTORER is defined.
            (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
            (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
            already defined.
            * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
            kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
            definitions.
            (HAS_SA_RESTORER): Define.
            * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
            SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
            (HAS_SA_RESTORER): Define.
            * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
            kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
            * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
            * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
    
    (cherry picked from commit 43a45c2d829f164c1fb94d5f44afe326fae946e1)
    (cherry picked from commit 27e039455d5ef0d30b835fb422fffafd42600fa4)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ChangeLog                                          | 22 ++++++++++++++++++
 sysdeps/unix/sysv/linux/kernel_sigaction.h         | 12 ++++++++--
 sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h    | 26 ++++------------------
 sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h   |  3 ++-
 sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h |  3 ++-
 sysdeps/unix/sysv/linux/sh/kernel_sigaction.h      |  3 ++-
 sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h   |  7 +-----
 sysdeps/unix/sysv/linux/x86_64/sigaction.c         |  3 ++-
 8 files changed, 45 insertions(+), 34 deletions(-)

commit 5a0f321f903c94153bdca89404ecc8bf06017afd
Author:     Andreas Schwab <schwab@suse.de>
AuthorDate: Tue Sep 25 11:11:27 2018 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Dec 21 15:22:05 2018 +0100

    RISC-V: properly terminate call chain (bug 23125)
    
    Mark the ra register as undefined in _start, so that unwinding through
    main works correctly.  Also, don't use a tail call so that ra points after
    the call to __libc_start_main, not after the previous call.
    
    (cherry picked from commit 2dd12baa045f25c52b30a34b10f72d51f2605413)
    (cherry picked from commit b4ce4476fc5d14fff413abe130b2ea7a7554f8d3)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ChangeLog             |  9 +++++++++
 elf/Makefile          |  5 ++++-
 elf/tst-unwind-main.c | 38 ++++++++++++++++++++++++++++++++++++++
 sysdeps/riscv/start.S |  7 ++++++-
 4 files changed, 57 insertions(+), 2 deletions(-)

commit 4716801cc114d80d5b5ffa32af4684cac5ea27ac
Author:     Florian Weimer <fweimer@redhat.com>
AuthorDate: Sat Dec 15 18:58:09 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Dec 21 15:21:47 2018 +0100

    support: Do not require overflow builtin in support/blob_repeat.c
    
    It is only available in GCC 5 and later.
    
    Tested-by: Romain Naour <romain.naour@gmail.com>
    (cherry picked from commit 0c1719e65b2a5a80331d4f635612799f853b0479)
    (cherry picked from commit 1a8db070fa42276f290e20c294a51b4fc9c51f83)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ChangeLog             |  6 ++++++
 support/blob_repeat.c | 26 +++++++++++++++++++++++---
 2 files changed, 29 insertions(+), 3 deletions(-)

commit d7d18a1c083dff3d1edaf0574759a7b391301308
Author:     Andreas Schwab <schwab@suse.de>
AuthorDate: Thu Nov 8 14:28:22 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Dec 21 15:21:27 2018 +0100

    Fix rwlock stall with PREFER_WRITER_NONRECURSIVE_NP (bug 23861)
    
    In the read lock function (__pthread_rwlock_rdlock_full) there was a
    code path which would fail to reload __readers while waiting for
    PTHREAD_RWLOCK_RWAITING to change. This failure to reload __readers
    into a local value meant that various conditionals used the old value
    of __readers and with only two threads left it could result in an
    indefinite stall of one of the readers (waiting for PTHREAD_RWLOCK_RWAITING
    to go to zero, but it never would).
    
    (cherry picked from commit f21e8f8ca466320fed38bdb71526c574dae98026)
    (cherry picked from commit 4d7af7815af5217db6e8fde6032ddf4f6b2a4420)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ChangeLog                    |  9 +++++
 nptl/Makefile                |  3 +-
 nptl/pthread_rwlock_common.c |  4 +-
 nptl/tst-rwlock-pwn.c        | 87 ++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 100 insertions(+), 3 deletions(-)

commit 33d5c6b1ef1dc47303c9be4fa30d27c7c69fe416
Author:     Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
AuthorDate: Thu Dec 13 09:42:22 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Dec 21 15:21:08 2018 +0100

    powerpc: Add missing CFI register information (bug #23614)
    
    Add CFI information about the offset of registers stored in the stack
    frame.
    
            [BZ #23614]
            * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
            registers saved in the stack frame.
            * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
            * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
    
    Signed-off-by: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
    Reviewed-by: Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
    (cherry picked from commit 1d880d4a9bf7608c2cd33bbe954ce6995f79121a)
    (cherry picked from commit 852620258deea8afda5674f397113fa87ce1007c)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ChangeLog                            |  8 ++++++++
 NEWS                                 |  1 +
 sysdeps/powerpc/powerpc64/addmul_1.S | 31 +++++++++++++++++++++----------
 sysdeps/powerpc/powerpc64/lshift.S   | 12 ++++++++----
 sysdeps/powerpc/powerpc64/mul_1.S    | 13 +++++++++----
 5 files changed, 47 insertions(+), 18 deletions(-)

commit 015986168f5deab08c28632751a3d2222a517380
Author:     DJ Delorie <dj@redhat.com>
AuthorDate: Fri Nov 30 22:13:09 2018 -0500
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Dec 21 15:20:34 2018 +0100

    malloc: Add another test for tcache double free check.
    
    This one tests for BZ#23907 where the double free
    test didn't check the tcache bin bounds before dereferencing
    the bin.
    
    [BZ #23907]
    * malloc/tst-tcfree3.c: New.
    * malloc/Makefile: Add it.
    
    (cherry picked from commit 7c9a7c68363051cfc5fa1ebb96b3b2c1f82dcb76)
    (cherry picked from commit ea16a6938d7ca5f4c2b67c11251c70b30796602a)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ChangeLog            |  6 ++++++
 malloc/Makefile      |  2 +-
 malloc/tst-tcfree3.c | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 63 insertions(+), 1 deletion(-)

commit bfbce2473a3fae3eb1fa3221aa7bc13064a86a35
Author:     Florian Weimer <fweimer@redhat.com>
AuthorDate: Thu Dec 6 15:39:50 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Dec 21 15:20:10 2018 +0100

    inet/tst-if_index-long: New test case for CVE-2018-19591 [BZ #23927]
    
    (cherry picked from commit 899478c2bfa00c5df8d8bedb52effbb065700278)
    (cherry picked from commit b5a9a19b82bb00b5419162f49331a7580ac06b4e)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ChangeLog                |  7 ++++++
 inet/Makefile            |  2 +-
 inet/tst-if_index-long.c | 61 ++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 69 insertions(+), 1 deletion(-)

commit d2835e1faa254fbe30dcaba104a3a3bfb6298bb1
Author:     Florian Weimer <fweimer@redhat.com>
AuthorDate: Thu Dec 6 15:39:42 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Dec 21 15:19:53 2018 +0100

    support: Implement <support/descriptors.h> to track file descriptors
    
    (cherry picked from commit f255336a9301619519045548acb2e1027065a837)
    (cherry picked from commit 4c2dada5070c9adc93e548826333c8be34f0c50a)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ChangeLog                         |  11 ++
 support/Makefile                  |   2 +
 support/check.h                   |   4 +
 support/descriptors.h             |  47 +++++++
 support/support_descriptors.c     | 274 ++++++++++++++++++++++++++++++++++++++
 support/support_record_failure.c  |   8 ++
 support/tst-support_descriptors.c | 198 +++++++++++++++++++++++++++
 7 files changed, 544 insertions(+)

commit f3b2114089deca09d22d2c61996715572e10100b
Author:     Florian Weimer <fweimer@redhat.com>
AuthorDate: Sat Dec 1 21:43:36 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Dec 21 15:19:31 2018 +0100

    support: Close original descriptors in support_capture_subprocess
    
    (cherry picked from commit 02cd5c1a8d033d7f91fea12a66bb44d1bbf85f76)
    (cherry picked from commit 874c28c9f5d14586ab71cd4af6899b11753caf25)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ChangeLog                            | 6 ++++++
 support/support_capture_subprocess.c | 6 ++++++
 2 files changed, 12 insertions(+)

commit 1c4501d95593462a8c13931ab512ec1a13a06972
Author:     Florian Weimer <fweimer@redhat.com>
AuthorDate: Wed Nov 28 07:00:48 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Dec 21 15:19:15 2018 +0100

    support_quote_string: Do not use str parameter name
    
    This avoids a build failure if this identifier is used as a macro
    in a test.
    
    (cherry picked from commit 47d8d9a2172f827a8dde7695f415aa6f78a82d0e)
    (cherry picked from commit 9dd07a91dba984c223730af30741565cb9bd88d5)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ChangeLog         | 5 +++++
 support/support.h | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

commit e4fb2ff644a04dcbc099a12b53a4deb8d181f7f5
Author:     Florian Weimer <fweimer@redhat.com>
AuthorDate: Tue Nov 27 21:35:56 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Dec 21 15:18:58 2018 +0100

    support: Implement support_quote_string
    
    Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
    (cherry picked from commit c74a91deaa5de416237c02bbb3e41bda76ca4c7b)
    (cherry picked from commit 4718b053dfef495a4d5189e4210bc66106873522)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ChangeLog                          |  9 ++++++
 support/Makefile                   |  2 ++
 support/support.h                  |  5 ++++
 support/support_quote_string.c     | 26 +++++++++++++++++
 support/tst-support_quote_string.c | 60 ++++++++++++++++++++++++++++++++++++++
 5 files changed, 102 insertions(+)

commit 17f92140524ef53eb341a12851aa64a6a049289e (tag: gentoo/glibc-2.28-5)
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: Fri Dec 14 19:58:36 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Dec 14 19:58:36 2018 +0100

    [no-patch] Gentoo: do not touch locale-archive or remove locales when listing

 scripts/gentoo/extra/locale/locale-gen | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

commit 3ddb05ebafeae49e8c01baf5d790d83303ecf424 (tag: gentoo/glibc-2.28-4)
Author:     Florian Weimer <fweimer@redhat.com>
AuthorDate: Mon Dec 10 16:50:37 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Dec 11 23:38:24 2018 +0100

    compat getdents64: Use correct offset for retry [BZ #23972]
    
    d_off is the offset of the *next* entry, not the offset of the current
    entry.
    
    (cherry picked from commit 8d20a2f414fa52aceef8a0e3675415df54a840db)
    (cherry picked from commit 5f1ae50a78d3f66b195668f1b863832d85d27f2f)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ChangeLog                                      | 10 ++++++++++
 NEWS                                           |  1 +
 sysdeps/unix/sysv/linux/getdents64.c           | 16 +++++++++++++---
 sysdeps/unix/sysv/linux/tst-readdir64-compat.c |  4 ++++
 4 files changed, 28 insertions(+), 3 deletions(-)

commit ef155cad9cc4dfe434d3f19b3fea90813a989558
Author:     Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
AuthorDate: Fri Nov 30 18:05:32 2018 -0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Dec 11 23:38:06 2018 +0100

    Fix _dl_profile_fixup data-dependency issue (Bug 23690)
    
    There is a data-dependency between the fields of struct l_reloc_result
    and the field used as the initialization guard. Users of the guard
    expect writes to the structure to be observable when they also observe
    the guard initialized. The solution for this problem is to use an acquire
    and release load and store to ensure previous writes to the structure are
    observable if the guard is initialized.
    
    The previous implementation used DL_FIXUP_VALUE_ADDR (l_reloc_result->addr)
    as the initialization guard, making it impossible for some architectures
    to load and store it atomically, i.e. hppa and ia64, due to its larger size.
    
    This commit adds an unsigned int to l_reloc_result to be used as the new
    initialization guard of the struct, making it possible to load and store
    it atomically in all architectures. The fix ensures that the values
    observed in l_reloc_result are consistent and do not lead to crashes.
    The algorithm is documented in the code in elf/dl-runtime.c
    (_dl_profile_fixup). Not all data races have been eliminated.
    
    Tested with build-many-glibcs and on powerpc, powerpc64, and powerpc64le.
    
            [BZ #23690]
            * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
            modification order when accessing reloc_result->addr.
            * include/link.h (reloc_result): Add field init.
            * nptl/Makefile (tests): Add tst-audit-threads.
            (modules-names): Add tst-audit-threads-mod1 and
            tst-audit-threads-mod2.
            Add rules to build tst-audit-threads.
            * nptl/tst-audit-threads-mod1.c: New file.
            * nptl/tst-audit-threads-mod2.c: Likewise.
            * nptl/tst-audit-threads.c: Likewise.
            * nptl/tst-audit-threads.h: Likewise.
    
    Signed-off-by: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
    Reviewed-by: Carlos O'Donell <carlos@redhat.com>
    (cherry picked from commit e5d262effe3a87164308a3f37e61b32d0348692a)
    (cherry picked from commit 8c89e6b02d95cb4c0155eb3efc18fbd9c0f4582f)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ChangeLog                     | 15 +++++++
 elf/dl-runtime.c              | 48 ++++++++++++++++++---
 include/link.h                |  4 ++
 nptl/Makefile                 | 14 ++++++-
 nptl/tst-audit-threads-mod1.c | 74 +++++++++++++++++++++++++++++++++
 nptl/tst-audit-threads-mod2.c | 22 ++++++++++
 nptl/tst-audit-threads.c      | 97 +++++++++++++++++++++++++++++++++++++++++++
 nptl/tst-audit-threads.h      | 92 ++++++++++++++++++++++++++++++++++++++++
 8 files changed, 359 insertions(+), 7 deletions(-)

commit 0242ed589f567a39c97109f990d2eedac3247dca
Author:     DJ Delorie <dj@delorie.com>
AuthorDate: Tue Nov 20 13:24:09 2018 -0500
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Dec 11 23:37:17 2018 +0100

    malloc: tcache double free check
    
    * malloc/malloc.c (tcache_entry): Add key field.
    (tcache_put): Set it.
    (tcache_get): Likewise.
    (_int_free): Check for double free in tcache.
    * malloc/tst-tcfree1.c: New.
    * malloc/tst-tcfree2.c: New.
    * malloc/Makefile: Run the new tests.
    * manual/probes.texi: Document memory_tcache_double_free probe.
    
    * dlfcn/dlerror.c (check_free): Prevent double frees.
    
    (cherry picked from commit bcdaad21d4635931d1bd3b54a7894276925d081d)
    
    malloc: tcache: Validate tc_idx before checking for double-frees [BZ #23907]
    
    The previous check could read beyond the end of the tcache entry
    array.  If the e->key == tcache cookie check happened to pass, this
    would result in crashes.
    
    (cherry picked from commit affec03b713c82c43a5b025dddc21bde3334f41e)
    (cherry picked from commit b8dd0f42780a3133c02f064a2c0c5c4e7ab61aaa)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ChangeLog            | 20 ++++++++++++++++++++
 dlfcn/dlerror.c      |  5 ++++-
 malloc/Makefile      |  1 +
 malloc/malloc.c      | 40 ++++++++++++++++++++++++++++++++++------
 malloc/tst-tcfree1.c | 42 ++++++++++++++++++++++++++++++++++++++++++
 malloc/tst-tcfree2.c | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
 manual/probes.texi   | 12 ++++++++++++
 7 files changed, 161 insertions(+), 7 deletions(-)

commit ec42a75befc2860022200a537df021b38757c995
Author:     Florian Weimer <fweimer@redhat.com>
AuthorDate: Tue Nov 27 16:12:43 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Dec 11 23:36:53 2018 +0100

    CVE-2018-19591: if_nametoindex: Fix descriptor for overlong name [BZ #23927]
    
    (cherry picked from commit d527c860f5a3f0ed687bd03f0cb464612dc23408)
    (cherry picked from commit ce6ba630dbc96f49eb1f30366aa62261df4792f9)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ChangeLog                          |  7 +++++++
 NEWS                               |  6 ++++++
 sysdeps/unix/sysv/linux/if_index.c | 11 ++++++-----
 3 files changed, 19 insertions(+), 5 deletions(-)

commit d4f15df5a870381e2b6cdfd3d30b85e2c9b14cc5
Author:     Florian Weimer <fweimer@redhat.com>
AuthorDate: Thu Nov 22 22:05:57 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Dec 11 23:36:30 2018 +0100

    Revert "malloc: tcache double free check" [BZ #23907]
    
    This reverts commit 481a6cf0c24f02f251d7cd0b776c12d00e6b144f, the
    backport of commit bcdaad21d4635931d1bd3b54a7894276925d081d on the
    master branch.
    
    (cherry picked from commit f5cc21eaeea6afbdfd543c63d2a552f141a91781)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ChangeLog            | 12 ------------
 dlfcn/dlerror.c      |  5 +----
 malloc/Makefile      |  1 -
 malloc/malloc.c      | 28 ----------------------------
 malloc/tst-tcfree1.c | 42 ------------------------------------------
 malloc/tst-tcfree2.c | 48 ------------------------------------------------
 manual/probes.texi   | 12 ------------
 7 files changed, 1 insertion(+), 147 deletions(-)

commit e00e8c82c0f956ff05720fbb17eba6940a3a510c
Author:     DJ Delorie <dj@delorie.com>
AuthorDate: Tue Nov 20 13:24:09 2018 -0500
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Dec 11 23:36:10 2018 +0100

    malloc: tcache double free check
    
    * malloc/malloc.c (tcache_entry): Add key field.
    (tcache_put): Set it.
    (tcache_get): Likewise.
    (_int_free): Check for double free in tcache.
    * malloc/tst-tcfree1.c: New.
    * malloc/tst-tcfree2.c: New.
    * malloc/Makefile: Run the new tests.
    * manual/probes.texi: Document memory_tcache_double_free probe.
    
    * dlfcn/dlerror.c (check_free): Prevent double frees.
    
    (cherry picked from commit 481a6cf0c24f02f251d7cd0b776c12d00e6b144f)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ChangeLog            | 12 ++++++++++++
 dlfcn/dlerror.c      |  5 ++++-
 malloc/Makefile      |  1 +
 malloc/malloc.c      | 28 ++++++++++++++++++++++++++++
 malloc/tst-tcfree1.c | 42 ++++++++++++++++++++++++++++++++++++++++++
 malloc/tst-tcfree2.c | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
 manual/probes.texi   | 12 ++++++++++++
 7 files changed, 147 insertions(+), 1 deletion(-)

commit ca1ccdd7aaeb07b9ca79b7d466d9be3315645fd3
Author:     Florian Weimer <fweimer@redhat.com>
AuthorDate: Mon Nov 19 15:35:03 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Dec 11 23:35:51 2018 +0100

    support: Print timestamps in timeout handler
    
    This is sometimes useful to determine if a test truly got stuck, or if
    it was making progress (logging information to standard output) and
    was merely slow to finish.
    
    (cherry picked from commit 35e3fbc4512c880fccb35b8e3abd132d4be18480)
    (cherry picked from commit 2c7078bfb9cc426433ac08d951e24c29c01b5f7d)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ChangeLog                   |  7 +++++++
 support/support_test_main.c | 28 ++++++++++++++++++++++++++++
 2 files changed, 35 insertions(+)

commit 951fd52fc8b75a6c7294a1701cb6abefbd0c3b93
Author:     Szabolcs Nagy <szabolcs.nagy@arm.com>
AuthorDate: Tue Oct 9 14:31:28 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Dec 11 23:35:31 2018 +0100

    Increase timeout of libio/tst-readline
    
    Increase timeout from the default 20s to 100s. This test makes close to
    20 million syscalls with distribution:
    
    12327675 read
     4143204 lseek
      929475 close
      929471 openat
       92817 fstat
        1431 write
    ...
    
    The default timeout assumes each can finish in 1us on average which
    is not true on slow machines.
    
    Reviewed-by: Carlos O'Donell <carlos@redhat.com>
    
            * libio/tst-readline.c (TIMEOUT): Define.
    
    (cherry picked from commit ed643089cd3251038863d32e67ec47b94cd557f3)
    (cherry picked from commit 10f1519f6a0acdc1fc45e962fa5c13312cc7b624)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ChangeLog            | 4 ++++
 libio/tst-readline.c | 1 +
 2 files changed, 5 insertions(+)

commit 59258c19cf9f07976889d5eb5a0589b395a1e745
Author:     Joseph Myers <joseph@codesourcery.com>
AuthorDate: Mon Oct 22 23:26:37 2018 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Dec 11 23:35:09 2018 +0100

    Update kernel version in syscall-names.list to 4.19.
    
    Linux 4.19 does not add any new syscalls (some existing ones are added
    to more architectures); this patch updates the version number in
    syscall-names.list to reflect that it's still current for 4.19.
    
    Tested with build-many-glibcs.py.
    
            * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
            version to 4.19.
    
    (cherry picked from commit 029ad711b8ad4cf0e5d98e0c138a35a23a376a74)
    (cherry picked from commit f44c2ca5eacd2df76fc38be75f9ebb8f0ff555eb)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ChangeLog                                  | 5 +++++
 sysdeps/unix/sysv/linux/syscall-names.list | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

commit 68bdb99cb95e1099b892c90e3195415c93a3f2b3
Author:     Paul Eggert <eggert@cs.ucla.edu>
AuthorDate: Tue Sep 18 15:02:10 2018 -0700
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Dec 11 23:34:47 2018 +0100

    Fix tzfile low-memory assertion failure
    
    [BZ #21716]
    * time/tzfile.c (__tzfile_read): Check for memory exhaustion
    when registering time zone abbreviations.
    
    (cherry picked from commit e4e4fde51a309801af5eed72d3494cbf4b7737aa)
    (cherry picked from commit e7388e5134471ef965bd48bafc71ba71eb8bf017)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ChangeLog     | 7 +++++++
 time/tzfile.c | 3 ++-
 2 files changed, 9 insertions(+), 1 deletion(-)

commit da90d37133f08c063d855b36b30f14f022db952a
Author:     Paul Pluzhnikov <ppluzhnikov@google.com>
AuthorDate: Fri Aug 31 18:04:32 2018 -0700
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Dec 11 23:34:31 2018 +0100

    [BZ #20271] Add newlines in __libc_fatal calls.
    
    (cherry picked from commit a6e8926f8d49a213a9abb1a61f6af964f612ab7f)
    (cherry picked from commit 9071be6b3f78da905ab2b6403933fe14d4482e47)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ChangeLog                                         | 22 ++++++++++++++++++++++
 grp/initgroups.c                                  |  2 +-
 include/stdio.h                                   |  3 ++-
 nptl/pthread_cond_wait.c                          |  2 +-
 nscd/initgrcache.c                                |  2 +-
 nss/nsswitch.c                                    |  2 +-
 sysdeps/aarch64/dl-irel.h                         |  2 +-
 sysdeps/arm/dl-irel.h                             |  2 +-
 sysdeps/generic/unwind-dw2.c                      |  2 +-
 sysdeps/i386/dl-irel.h                            |  2 +-
 sysdeps/nptl/futex-internal.h                     |  2 +-
 sysdeps/powerpc/powerpc32/dl-irel.h               |  2 +-
 sysdeps/powerpc/powerpc64/dl-irel.h               |  2 +-
 sysdeps/s390/dl-irel.h                            |  2 +-
 sysdeps/sparc/sparc32/dl-irel.h                   |  2 +-
 sysdeps/sparc/sparc64/dl-irel.h                   |  2 +-
 sysdeps/unix/sysv/linux/netlink_assert_response.c |  4 ++--
 sysdeps/x86_64/dl-irel.h                          |  2 +-
 18 files changed, 41 insertions(+), 18 deletions(-)

commit b143106049bb1b557a9dddbbceb08c123d7e69bd
Author:     Florian Weimer <fweimer@redhat.com>
AuthorDate: Tue Aug 28 13:19:27 2018 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Dec 11 23:34:11 2018 +0100

    nscd: Fix use-after-free in addgetnetgrentX [BZ #23520]
    
    addinnetgrX may use the heap-allocated buffer, so free the buffer
    in this function.
    
    (cherry picked from commit 745664bd798ec8fd50438605948eea594179fba1)
    (cherry picked from commit 7d174f53539bfbfa9cdfa41ead605573d3f219eb)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ChangeLog            | 12 ++++++++++++
 nscd/netgroupcache.c | 42 +++++++++++++++++++++++++++++-------------
 2 files changed, 41 insertions(+), 13 deletions(-)

commit 250ad92cc361322fadbbc07b907baae3b9d5cd87
Author:     Istvan Kurucsai <pistukem@gmail.com>
AuthorDate: Tue Jan 16 14:54:32 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Dec 11 23:33:53 2018 +0100

    malloc: Additional checks for unsorted bin integrity I.
    
    On Thu, Jan 11, 2018 at 3:50 PM, Florian Weimer <fweimer@redhat.com> wrote:
    > On 11/07/2017 04:27 PM, Istvan Kurucsai wrote:
    >>
    >> +          next = chunk_at_offset (victim, size);
    >
    >
    > For new code, we prefer declarations with initializers.
    
    Noted.
    
    >> +          if (__glibc_unlikely (chunksize_nomask (victim) <= 2 * SIZE_SZ)
    >> +              || __glibc_unlikely (chunksize_nomask (victim) >
    >> av->system_mem))
    >> +            malloc_printerr("malloc(): invalid size (unsorted)");
    >> +          if (__glibc_unlikely (chunksize_nomask (next) < 2 * SIZE_SZ)
    >> +              || __glibc_unlikely (chunksize_nomask (next) >
    >> av->system_mem))
    >> +            malloc_printerr("malloc(): invalid next size (unsorted)");
    >> +          if (__glibc_unlikely ((prev_size (next) & ~(SIZE_BITS)) !=
    >> size))
    >> +            malloc_printerr("malloc(): mismatching next->prev_size
    >> (unsorted)");
    >
    >
    > I think this check is redundant because prev_size (next) and chunksize
    > (victim) are loaded from the same memory location.
    
    I'm fairly certain that it compares mchunk_size of victim against
    mchunk_prev_size of the next chunk, i.e. the size of victim in its
    header and footer.
    
    >> +          if (__glibc_unlikely (bck->fd != victim)
    >> +              || __glibc_unlikely (victim->fd != unsorted_chunks (av)))
    >> +            malloc_printerr("malloc(): unsorted double linked list
    >> corrupted");
    >> +          if (__glibc_unlikely (prev_inuse(next)))
    >> +            malloc_printerr("malloc(): invalid next->prev_inuse
    >> (unsorted)");
    >
    >
    > There's a missing space after malloc_printerr.
    
    Noted.
    
    > Why do you keep using chunksize_nomask?  We never investigated why the
    > original code uses it.  It may have been an accident.
    
    You are right, I don't think it makes a difference in these checks. So
    the size local can be reused for the checks against victim. For next,
    leaving it as such avoids the masking operation.
    
    > Again, for non-main arenas, the checks against av->system_mem could be made
    > tighter (against the heap size).  Maybe you could put the condition into a
    > separate inline function?
    
    We could also do a chunk boundary check similar to what I proposed in
    the thread for the first patch in the series to be even more strict.
    I'll gladly try to implement either but believe that refining these
    checks would bring less benefits than in the case of the top chunk.
    Intra-arena or intra-heap overlaps would still be doable here with
    unsorted chunks and I don't see any way to counter that besides more
    generic measures like randomizing allocations and your metadata
    encoding patches.
    
    I've attached a revised version with the above comments incorporated
    but without the refined checks.
    
    Thanks,
    Istvan
    
    From a12d5d40fd7aed5fa10fc444dcb819947b72b315 Mon Sep 17 00:00:00 2001
    From: Istvan Kurucsai <pistukem@gmail.com>
    Date: Tue, 16 Jan 2018 14:48:16 +0100
    Subject: [PATCH v2 1/1] malloc: Additional checks for unsorted bin integrity
     I.
    
    Ensure the following properties of chunks encountered during binning:
    - victim chunk has reasonable size
    - next chunk has reasonable size
    - next->prev_size == victim->size
    - valid double linked list
    - PREV_INUSE of next chunk is unset
    
        * malloc/malloc.c (_int_malloc): Additional binning code checks.
    
    (cherry picked from commit b90ddd08f6dd688e651df9ee89ca3a69ff88cd0c)
    (cherry picked from commit 53a7e59405cbbbd24c1cf64b0298a9e6212a82e2)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 malloc/malloc.c | 19 +++++++++++++++----
 1 file changed, 15 insertions(+), 4 deletions(-)

commit 79631a67f965c875e31e00e1c72ede77a88f4796
Author:     Moritz Eckert <m.eckert@cs.ucsb.edu>
AuthorDate: Thu Aug 16 21:08:36 2018 -0400
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Dec 11 23:33:22 2018 +0100

    malloc: Mitigate null-byte overflow attacks
    
    * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
    (malloc_consolidate): Likewise.
    
    (cherry picked from commit d6db68e66dff25d12c3bc5641b60cbd7fb6ab44f)
    (cherry picked from commit 7e40c3f804b5d5dbbc0519565b16101ab22fb899)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ChangeLog       | 5 +++++
 malloc/malloc.c | 4 ++++
 2 files changed, 9 insertions(+)

commit 1b91bfec99824b33ab6990a5a881a72643ff051f
Author:     Pochang Chen <johnchen902@gmail.com>
AuthorDate: Thu Aug 16 15:24:24 2018 -0400
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Dec 11 23:33:03 2018 +0100

    malloc: Verify size of top chunk.
    
    The House of Force is a well-known technique to exploit heap
    overflow. In essence, this exploit takes three steps:
    1. Overwrite the size of top chunk with very large value (e.g. -1).
    2. Request x bytes from top chunk. As the size of top chunk
       is corrupted, x can be arbitrarily large and top chunk will
       still be offset by x.
    3. The next allocation from top chunk will thus be controllable.
    
    If we verify the size of top chunk at step 2, we can stop such attack.
    
    (cherry picked from commit 30a17d8c95fbfb15c52d1115803b63aaa73a285c)
    (cherry picked from commit 510a25f2d208e3b0c86f54b053f61c5b647e4b9b)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ChangeLog       | 4 ++++
 malloc/malloc.c | 3 +++
 2 files changed, 7 insertions(+)

commit a11516596b9240d8af212ca4bbc11523121e4ea7
Author:     Joseph Myers <joseph@codesourcery.com>
AuthorDate: Mon Aug 13 21:35:27 2018 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Dec 11 23:32:40 2018 +0100

    Update syscall-names.list for Linux 4.18.
    
    This patch updates sysdeps/unix/sysv/linux/syscall-names.list for
    Linux 4.18.  The io_pgetevents and rseq syscalls are added to the
    kernel on various architectures, so need to be mentioned in this file.
    
    Tested with build-many-glibcs.py.
    
            * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
            version to 4.18.
            (io_pgetevents): New syscall.
            (rseq): Likewise.
    
    (cherry picked from commit 17b26500f9bb926d85e86821d014f7c1bb88043c)
    (cherry picked from commit 168035056eab9db4ee0e5d7f62060e111b86a0a4)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ChangeLog                                  | 7 +++++++
 sysdeps/unix/sysv/linux/syscall-names.list | 6 ++++--
 2 files changed, 11 insertions(+), 2 deletions(-)

commit 505890552078b7c3ae688f0edcb24c75c08dcada
Author:     Alexandra Hájková <ahajkova@redhat.com>
AuthorDate: Fri Oct 19 13:30:44 2018 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Dec 11 23:32:17 2018 +0100

    Add an additional test to resolv/tst-resolv-network.c
    
    Test for the infinite loop in getnetbyname, bug #17630.
    
    (cherry picked from commit ac8060265bcaca61568ef3a20b9a0140a270af54)
    (cherry picked from commit b21abc069f58da3f8e556ec730f0a387cfc91f5f)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ChangeLog                   | 5 +++++
 resolv/tst-resolv-network.c | 6 ++++++
 2 files changed, 11 insertions(+)

commit f522b38594f1bacd1cf2566751c5107fceba9dad
Author:     H.J. Lu <hjl.tools@gmail.com>
AuthorDate: Thu Nov 8 10:06:58 2018 -0800
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Dec 11 23:31:45 2018 +0100

    Check multiple NT_GNU_PROPERTY_TYPE_0 notes [BZ #23509]
    
    Linkers group input note sections with the same name into one output
    note section with the same name.  One output note section is placed in
    one PT_NOTE segment.  Since new linkers merge input .note.gnu.property
    sections into one output .note.gnu.property section, there is only
    one NT_GNU_PROPERTY_TYPE_0 note in one PT_NOTE segment with new linkers.
    Since older linkers treat input .note.gnu.property section as a generic
    note section and just concatenate all input .note.gnu.property sections
    into one output .note.gnu.property section without merging them, we may
    see multiple NT_GNU_PROPERTY_TYPE_0 notes in one PT_NOTE segment with
    older linkers.
    
    When an older linker is used to created the program on CET-enabled OS,
    the linker output has a single .note.gnu.property section with multiple
    NT_GNU_PROPERTY_TYPE_0 notes, some of which have IBT and SHSTK enable
    bits set even if the program isn't CET enabled.  Such programs will
    crash on CET-enabled machines.  This patch updates the note parser:
    
    1. Skip note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
    2. Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
    
            [BZ #23509]
            * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
            note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
            Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
            Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
            * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits,  Add
            lc_unknown.
    
    (cherry picked from commit d524fa6c35e675eedbd8fe6cdf4db0b49c658026)
    (cherry picked from commit 3e8d8dd5afba18a847ff7a80f473336f777cc329)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ChangeLog              | 10 ++++++++++
 NEWS                   |  1 +
 sysdeps/x86/dl-prop.h  | 51 ++++++++++++++++++++++++++++++++++++++++----------
 sysdeps/x86/link_map.h |  9 +++++----
 4 files changed, 57 insertions(+), 14 deletions(-)

commit 7e8ee6c7f7275bd5fe70ea58a416c9ebcdd9d958
Author:     Andreas Schwab <schwab@suse.de>
AuthorDate: Tue Nov 6 16:12:07 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Dec 11 23:31:22 2018 +0100

    libanl: properly cleanup if first helper thread creation failed (bug 22927)
    
    (cherry picked from commit bd3b0fbae33a9a4cc5e2daf049443d5cf03d4251)
    (cherry picked from commit fc0e3393ff775aa795b523083bb0db7f18d3b91e)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ChangeLog         | 6 ++++++
 NEWS              | 1 +
 resolv/gai_misc.c | 7 +++++--
 3 files changed, 12 insertions(+), 2 deletions(-)

commit 89759cff76a98b44978eeb9714867a8e19d5e877
Author:     Adhemerval Zanella <adhemerval.zanella@linaro.org>
AuthorDate: Fri Nov 2 10:56:00 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Dec 11 23:31:03 2018 +0100

    x86: Fix Haswell CPU string flags (BZ#23709)
    
    Th commit 'Disable TSX on some Haswell processors.' (2702856bf4) changed the
    default flags for Haswell models.  Previously, new models were handled by the
    default switch path, which assumed a Core i3/i5/i7 if AVX is available. After
    the patch, Haswell models (0x3f, 0x3c, 0x45, 0x46) do not set the flags
    Fast_Rep_String, Fast_Unaligned_Load, Fast_Unaligned_Copy, and
    Prefer_PMINUB_for_stringop (only the TSX one).
    
    This patch fixes it by disentangle the TSX flag handling from the memory
    optimization ones.  The strstr case cited on patch now selects the
    __strstr_sse2_unaligned as expected for the Haswell cpu.
    
    Checked on x86_64-linux-gnu.
    
            [BZ #23709]
            * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
            independently of other flags.
    
    (cherry picked from commit c3d8dc45c9df199b8334599a6cbd98c9950dba62)
    (cherry picked from commit 65010329f2c596bdd1204c1c9c9baac0193637af)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ChangeLog                  | 6 ++++++
 NEWS                       | 1 +
 sysdeps/x86/cpu-features.c | 6 ++++++
 3 files changed, 13 insertions(+)

commit 64d7c76199943badea6777151424bf342274fbc4
Author:     Florian Weimer <fweimer@redhat.com>
AuthorDate: Tue Oct 30 13:55:01 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Dec 11 23:30:39 2018 +0100

    stdlib/tst-strtod-overflow: Switch to support_blob_repeat
    
    This is another test with an avoidable large memory allocation.
    
    (cherry picked from commit 07da99aad93c9364acb7efdab47c27ba698f6313)
    (cherry picked from commit e1af1df694603c0dcd5118c30eea2cdeb01a1a0b)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ChangeLog                    |  5 +++++
 stdlib/tst-strtod-overflow.c | 16 ++++++++++------
 2 files changed, 15 insertions(+), 6 deletions(-)

commit 2381e84bcd406a6f2ed71a3c2e9d06e24b6b3222
Author:     Florian Weimer <fweimer@redhat.com>
AuthorDate: Tue Oct 30 13:55:50 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Dec 11 23:30:18 2018 +0100

    support_blob_repeat: Call mkstemp directory for the backing file
    
    This avoids a warning during post-test cleanup.
    
    (cherry picked from commit a91e9301c47bb688f4e496a19cfc68261ff18293)
    (cherry picked from commit 6c2b6e9e2758b7491ce89920a8711c1b41100269)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ChangeLog             |  4 ++++
 support/blob_repeat.c | 14 +++++++++-----
 2 files changed, 13 insertions(+), 5 deletions(-)

commit 5699c4e822ea5d353230d8446017eda54fbdc2c8
Author:     Florian Weimer <fweimer@redhat.com>
AuthorDate: Tue Oct 30 13:56:40 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Dec 11 23:29:59 2018 +0100

    stdlib/test-bz22786: Avoid memory leaks in the test itself
    
    (cherry picked from commit 60708030536df82616c16aa2f14f533c4362b969)
    (cherry picked from commit 69dcd992a0efdb53bc2ea4948cfc6b13416b9636)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ChangeLog             | 5 +++++
 stdlib/test-bz22786.c | 6 ++++--
 2 files changed, 9 insertions(+), 2 deletions(-)

commit 289b2f5419f34bc5aea981e44772826c374321a0
Author:     Florian Weimer <fweimer@redhat.com>
AuthorDate: Tue Oct 30 13:11:47 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Dec 11 23:29:37 2018 +0100

    stdlib/test-bz22786: Avoid spurious test failures using alias mappings
    
    On systems without enough random-access memory, stdlib/test-bz22786
    will go deeply into swap and time out, even with a substantial
    TIMEOUTFACTOR.  This commit adds a facility to construct repeating
    strings with alias mappings, so that the requirement for physical
    memory, and uses it in stdlib/test-bz22786.
    
    (cherry picked from commit f5e7e95921847bd83186bfe621fc2b48c4de5477)
    (cherry picked from commit dcd52b94bf50f337dc4cfffa24ed86d7dfe03dc0)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ChangeLog                         |  11 ++
 stdlib/test-bz22786.c             |  16 +--
 support/Makefile                  |   2 +
 support/blob_repeat.c             | 278 ++++++++++++++++++++++++++++++++++++++
 support/blob_repeat.h             |  44 ++++++
 support/tst-support_blob_repeat.c |  85 ++++++++++++
 6 files changed, 426 insertions(+), 10 deletions(-)

commit 62ebb606fd676b17f4db85a481855ad748f6a542
Author:     Stefan Liebler <stli@linux.ibm.com>
AuthorDate: Thu Aug 30 08:44:32 2018 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Dec 11 23:28:59 2018 +0100

    Test stdlib/test-bz22786 exits now with unsupported if malloc fails.
    
    The test tries to allocate more than 2^31 bytes which will always fail on s390
    as it has maximum 2^31bit of memory.
    Before commit 6c3a8a9d868a8deddf0d6dcc785b6d120de90523, this test returned
    unsupported if malloc fails.  This patch re enables this behaviour.
    
    Furthermore support_delete_temp_files() failed to remove the temp directory
    in this case as it is not empty due to the created symlink.
    Thus the creation of the symlink is moved behind malloc.
    
    Reviewed-by: Carlos O'Donell <carlos@redhat.com>
    
    ChangeLog:
    
            * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
            if malloc fails.
    
    (cherry picked from commit 3bad2358d67d371497079bba4f8eca9c0096f4e2)
    (cherry picked from commit d0b6db4acfba1f48b24da2c9b2a1530f6dd71503)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ChangeLog             |  5 +++++
 stdlib/test-bz22786.c | 15 ++++++++++++---
 2 files changed, 17 insertions(+), 3 deletions(-)

commit 1dfbc07f6e284a54f6a685c5abf4b989ef1665ed
Author:     Paul Pluzhnikov <ppluzhnikov@kazbek.mtv.corp.google.com>
AuthorDate: Fri Nov 2 10:47:07 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Dec 11 23:28:23 2018 +0100

    Fix BZ#23400 (creating temporary files in source tree), and undefined behavior in test.
    
    (cherry picked from commit 6c3a8a9d868a8deddf0d6dcc785b6d120de90523)
    (cherry picked from commit df11de91931597ab4adccb74d9d55c9ddd029a22)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ChangeLog             |  6 ++++++
 NEWS                  |  1 +
 stdlib/test-bz22786.c | 39 ++++++++++++---------------------------
 3 files changed, 19 insertions(+), 27 deletions(-)

commit 7796f960d4a3dcef7b9e57f2ca13e9c11f71989a
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: Tue Dec 11 23:10:50 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Tue Dec 11 23:10:50 2018 +0100

    [no-patch] Gentoo: Always generate C.UTF-8 locale
    
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 scripts/gentoo/extra/locale/locale-gen | 4 ++++
 1 file changed, 4 insertions(+)

commit c87fcc3ef241eabf36a1115e252b00ee87864349
Author:     Mike FABIAN <mfabian@redhat.com>
AuthorDate: Mon Aug 10 15:58:12 2015 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Thu Nov 15 01:27:36 2018 +0100

    Add a C.UTF-8 locale
    
    Source:
    https://src.fedoraproject.org/rpms/glibc/raw/master/f/glibc-c-utf8-locale.patch
    
    Notes from there:
    This patch needs to upstream as part of Carlos O'Donell
    <carlos@redhat.com>'s work on enabling upstream C.UTF-8 support. This
    work is currently blocked on cleaning up the test results to prove that
    full code-point sorting is working as intended.
    Note that this patch does not provide full code-point sorting as
    expected.
    This patch needs to upstream as soon as possible since it would be nice
    to have this in F29 and fixed.
    
    Further information:
    https://bugzilla.redhat.com/show_bug.cgi?id=902094
    https://sourceware.org/bugzilla/show_bug.cgi?id=17318
    https://bugs.gentoo.org/671024

 localedata/SUPPORTED |   1 +
 localedata/locales/C | 238 +++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 239 insertions(+)

commit b66066758e9d7aea2f74b8bebd28433ed5d41958 (tag: gentoo/glibc-2.28-3)
Author:     Szabolcs Nagy <szabolcs.nagy@arm.com>
AuthorDate: Fri Oct 26 14:39:42 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Oct 26 23:14:12 2018 +0200

    i64: fix missing exp2f, log2f and powf symbols in libm.a [BZ #23822]
    
    When new symbol versions were introduced without SVID compatible
    error handling the exp2f, log2f and powf symbols were accidentally
    removed from the ia64 lim.a.  The regression was introduced by
    the commits
    
    f5f0f5265162fe6f4f238abcd3086985f7c38d6d
    New expf and exp2f version without SVID compat wrapper
    
    72d3d281080be9f674982067d72874fd6cdb4b64
    New symbol version for logf, log2f and powf without SVID compat
    
    With WEAK_LIBM_ENTRY(foo), there is a hidden __foo and weak foo
    symbol definition in both SHARED and !SHARED build.
    
            [BZ #23822]
            * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
            * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
            * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
    
    (cherry picked from commit ba5b14c7613980dfefcad6b6e88f913e5f596c59)
    (cherry picked from commit 5256ffc51e4188a70fa0173cb6b6c94adde03fcb)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ChangeLog                  | 7 +++++++
 NEWS                       | 1 +
 sysdeps/ia64/fpu/e_exp2f.S | 6 +++---
 sysdeps/ia64/fpu/e_log2f.S | 6 +++---
 sysdeps/ia64/fpu/e_powf.S  | 6 +++---
 5 files changed, 17 insertions(+), 9 deletions(-)

commit 29ce9e226168d4a531caa17a83e10aaa606c6ad3
Author:     Florian Weimer <fweimer@redhat.com>
AuthorDate: Fri Oct 26 09:19:40 2018 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Oct 26 23:13:52 2018 +0200

    conform: XFAIL siginfo_t si_band test on sparc64
    
    We can use long int on sparcv9, but on sparc64, we must match the int
    type used by the kernel (and not long int, as in POSIX).
    
    (cherry picked from commit 7c5e34d7f1b8f8f5acd94c2b885ae13b85414dcd)
    (cherry picked from commit aff9b377121f9cfabe5d45f3226acf99c73928a7)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ChangeLog                                         | 13 +++++++++++++
 NEWS                                              |  1 +
 conform/data/signal.h-data                        |  3 ++-
 conform/data/sys/wait.h-data                      |  3 ++-
 sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h |  7 ++++++-
 sysdeps/unix/sysv/linux/sparc/sparc64/Makefile    |  5 +++++
 6 files changed, 29 insertions(+), 3 deletions(-)

commit e0e2521e0e55d9d755dc22f71155c321be3cd4f4
Author:     Ilya Yu. Malakhov <malakhov@mcst.ru>
AuthorDate: Mon Oct 22 13:03:57 2018 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Oct 26 23:13:29 2018 +0200

    signal: Use correct type for si_band in siginfo_t [BZ #23562]
    
    (cherry picked from commit f997b4be18f7e57d757d39e42f7715db26528aa0)
    (cherry picked from commit 69d1e73d99c6ad3f65fc16b6325d6ae289950d03)
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 ChangeLog                                      | 6 ++++++
 NEWS                                           | 1 +
 sysdeps/unix/sysv/linux/bits/types/siginfo_t.h | 2 +-
 3 files changed, 8 insertions(+), 1 deletion(-)

commit 4e616cda056f471b799beba2b1cedc787ad4ecc0
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: Mon Oct 22 22:34:13 2018 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Mon Oct 22 22:34:13 2018 +0200

    Gentoo: Adapt to Gentoo-specific /etc/mail/aliases
    
    Patch by pacho2
    
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 nss/nss_files/files-alias.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit cd633e1d19990d75c2c33238d2cf2799e40fb4a0 (tag: gentoo/glibc-2.28-2)
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: Sun Oct 21 18:53:15 2018 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Oct 21 19:02:25 2018 +0200

    [no-patch] Gentoo: Use xz instead of bz2 for the patch tarball
    
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 scripts/gentoo/make-tarball.sh | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

commit 29a002dfbea9a8f6d646649e2128409f09e9ef79
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: Sun Oct 21 18:46:43 2018 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Oct 21 18:46:43 2018 +0200

    [no-patch] Gentoo: Drop our copy of nscd.conf, and keep the default
    
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 scripts/gentoo/extra/etc/nscd.conf | 45 --------------------------------------
 1 file changed, 45 deletions(-)

commit 897fed3a207e7c4f1441c9270fc1846404ad9476
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: Sun Oct 21 17:59:50 2018 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Oct 21 18:18:28 2018 +0200

    [no-patch] Gentoo: Drop our copy of nsswitch.conf, and keep the default
    
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 scripts/gentoo/extra/etc/nsswitch.conf | 20 --------------------
 1 file changed, 20 deletions(-)

commit 135e2eacc57ae2c91dbd2f86cd388a14b205a69b
Author:     Stefan Liebler <stli@linux.ibm.com>
AuthorDate: Wed Oct 17 12:23:04 2018 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Oct 21 17:46:07 2018 +0200

    Fix race in pthread_mutex_lock while promoting to PTHREAD_MUTEX_ELISION_NP [BZ #23275]
    
    The race leads either to pthread_mutex_destroy returning EBUSY
    or triggering an assertion (See description in bugzilla).
    
    This patch is fixing the race by ensuring that the elision path is
    used in all cases if elision is enabled by the GLIBC_TUNABLES framework.
    
    The __kind variable in struct __pthread_mutex_s is accessed concurrently.
    Therefore we are now using the atomic macros.
    
    The new testcase tst-mutex10 is triggering the race on s390x and intel.
    Presumably also on power, but I don't have access to a power machine
    with lock-elision. At least the code for power is the same as on the other
    two architectures.
    
    ChangeLog:
    
            [BZ #23275]
            * nptl/tst-mutex10.c: New File.
            * nptl/Makefile (tests): Add tst-mutex10.
            (tst-mutex10-ENV): New variable.
            * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
            Ensure that elision path is used if elision is available.
            * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
            Likewise.
            * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
            Likewise.
            * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
            (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
            * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
            * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
            Likewise.
            * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
            (__pthread_mutex_cond_lock_adjust): Likewise.
            * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
            Likewise.
            * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
            * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
            * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
            * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
            Add comments.
            * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
            Use atomic_load_relaxed and atomic_store_relaxed.
            * nptl/pthread_mutex_init.c (__pthread_mutex_init):
            Use atomic_store_relaxed.
    
    (cherry picked from commit 403b4feb22dcbc85ace72a361d2a951380372471)
    (cherry picked from commit 314e181dc90cb290942d8b2b57823306ae956696)

 ChangeLog                                       |  31 +++++++
 nptl/Makefile                                   |   8 +-
 nptl/pthreadP.h                                 |  12 ++-
 nptl/pthread_mutex_consistent.c                 |   7 +-
 nptl/pthread_mutex_destroy.c                    |  11 ++-
 nptl/pthread_mutex_getprioceiling.c             |   4 +-
 nptl/pthread_mutex_init.c                       |  14 +--
 nptl/pthread_mutex_lock.c                       |  28 ++++--
 nptl/pthread_mutex_setprioceiling.c             |   7 +-
 nptl/pthread_mutex_timedlock.c                  |  17 +++-
 nptl/pthread_mutex_trylock.c                    |  17 +++-
 nptl/pthread_mutex_unlock.c                     |  17 +++-
 nptl/tst-mutex10.c                              | 109 ++++++++++++++++++++++++
 sysdeps/nptl/bits/thread-shared-types.h         |  22 ++++-
 sysdeps/unix/sysv/linux/powerpc/force-elision.h |  44 +++++++++-
 sysdeps/unix/sysv/linux/s390/force-elision.h    |  44 +++++++++-
 sysdeps/unix/sysv/linux/x86/force-elision.h     |  44 +++++++++-
 17 files changed, 386 insertions(+), 50 deletions(-)

commit 8ac9fedc55c6dcdf5ad6644aca28cf0dc3112bff
Author:     H.J. Lu <hjl.tools@gmail.com>
AuthorDate: Fri Sep 28 13:31:19 2018 -0700
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Oct 21 17:45:42 2018 +0200

    i386: Use _dl_runtime_[resolve|profile]_shstk for SHSTK [BZ #23716]
    
    When elf_machine_runtime_setup is called to set up resolver, it should
    use _dl_runtime_resolve_shstk or _dl_runtime_profile_shstk if SHSTK is
    enabled by kernel.
    
    Tested on i686 with and without --enable-cet as well as on CET emulator
    with --enable-cet.
    
            [BZ #23716]
            * sysdeps/i386/dl-cet.c: Removed.
            * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
            prototype.
            (_dl_runtime_profile_shstk): Likewise.
            (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
            _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
    
    Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
    
    (cherry picked from commit 7b1f9406761331cf35fe521fbdb592beecf68a2c)
    (cherry picked from commit 5a74abda201907cafbdabd1debf98890313ff71e)

 ChangeLog                 | 10 +++++++
 sysdeps/i386/dl-cet.c     | 67 -----------------------------------------------
 sysdeps/i386/dl-machine.h | 13 +++++++--
 3 files changed, 21 insertions(+), 69 deletions(-)

commit 047414c67130b67b9f82f26c686af608a8f6c405
Author:     Rafal Luzynski <digitalfreak@lingonborough.com>
AuthorDate: Tue Oct 2 23:34:18 2018 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Oct 21 17:45:17 2018 +0200

    kl_GL: Fix spelling of Sunday, should be "sapaat" (bug 20209).
    
    Although CLDR says otherwise, it is confirmed by Oqaasileriffik, the
    official Greenlandic language regulator, that this change is correct.
    
            [BZ #20209]
            * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
            should be "sap" rather than "sab".
            (day): Fix spelling of Sunday, should be "sapaat" rather than
            "sabaat".
    
    (cherry picked from commit dae3ed958c3d0090838e49ff4f78c201262b1cf0)
    (cherry picked from commit 5473739a7b44f27965b70d1acf480f5f72603e78)

 ChangeLog                | 8 ++++++++
 NEWS                     | 1 +
 localedata/locales/kl_GL | 4 ++--
 3 files changed, 11 insertions(+), 2 deletions(-)

commit 5f24f9c66b19cca5ad0de0f748b41ef74d91f6c6
Author:     Adhemerval Zanella <adhemerval.zanella@linaro.org>
AuthorDate: Wed Aug 29 16:36:44 2018 -0300
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Oct 21 17:44:48 2018 +0200

    Fix misreported errno on preadv2/pwritev2 (BZ#23579)
    
    The fallback code of Linux wrapper for preadv2/pwritev2 executes
    regardless of the errno code for preadv2, instead of the case where
    the syscall is not supported.
    
    This fixes it by calling the fallback code iff errno is ENOSYS. The
    patch also adds tests for both invalid file descriptor and invalid
    iov_len and vector count.
    
    The only discrepancy between preadv2 and fallback code regarding
    error reporting is when an invalid flags are used.  The fallback code
    bails out earlier with ENOTSUP instead of EINVAL/EBADF when the syscall
    is used.
    
    Checked on x86_64-linux-gnu on a 4.4.0 and 4.15.0 kernel.
    
            [BZ #23579]
            * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd): New
            test.
            * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
            Call do_test_with_invalid_fd.
            * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
            errno is ENOSYS.
            * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
            * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
            * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
    
    (cherry picked from commit 7a16bdbb9ff4122af0a28dc20996c95352011fdd)
    (cherry picked from commit 044c96f0d5595aeb0bb4e79355081c5a7f4faca5)

 ChangeLog                             | 14 ++++++++
 NEWS                                  |  1 +
 misc/tst-preadvwritev2-common.c       | 65 +++++++++++++++++++++++++++++++++--
 misc/tst-preadvwritev2.c              |  2 ++
 misc/tst-preadvwritev64v2.c           |  2 ++
 sysdeps/unix/sysv/linux/preadv2.c     |  2 +-
 sysdeps/unix/sysv/linux/preadv64v2.c  |  2 +-
 sysdeps/unix/sysv/linux/pwritev2.c    |  2 +-
 sysdeps/unix/sysv/linux/pwritev64v2.c |  2 +-
 9 files changed, 85 insertions(+), 7 deletions(-)

commit 812afeab880d73ac23c729c011be9332f702892f
Author:     Andreas Schwab <schwab@suse.de>
AuthorDate: Thu Sep 27 12:37:06 2018 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Oct 21 17:44:29 2018 +0200

    Fix stack overflow in tst-setcontext9 (bug 23717)
    
    The function f1a, executed on a stack of size 32k, allocates an object of
    size 32k on the stack.  Make the stack variables static to reduce
    excessive stack usage.
    
    (cherry picked from commit f841c97e515a1673485a2b12b3c280073d737890)
    (cherry picked from commit 3a67c72c1512f778304a5644dea2fcf5bdece274)

 ChangeLog                | 6 ++++++
 NEWS                     | 1 +
 stdlib/tst-setcontext9.c | 4 ++--
 3 files changed, 9 insertions(+), 2 deletions(-)

commit ad9060b1f09beab030783d4ff6366b9f6f8918fa
Author:     H.J. Lu <hjl.tools@gmail.com>
AuthorDate: Wed Sep 12 08:40:59 2018 -0700
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Oct 21 17:44:08 2018 +0200

    i386: Use ENTRY and END in start.S [BZ #23606]
    
    Wrapping the _start function with ENTRY and END to insert ENDBR32 at
    function entry when CET is enabled.  Since _start now includes CFI,
    without "cfi_undefined (eip)", unwinder may not terminate at _start
    and we will get
    
    Program received signal SIGSEGV, Segmentation fault.
    0xf7dc661e in ?? () from /lib/libgcc_s.so.1
    Missing separate debuginfos, use: dnf debuginfo-install libgcc-8.2.1-3.0.fc28.i686
    (gdb) bt
     #0  0xf7dc661e in ?? () from /lib/libgcc_s.so.1
     #1  0xf7dc7c18 in _Unwind_Backtrace () from /lib/libgcc_s.so.1
     #2  0xf7f0d809 in __GI___backtrace (array=array@entry=0xffffc7d0,
        size=size@entry=20) at ../sysdeps/i386/backtrace.c:127
     #3  0x08049254 in compare (p1=p1@entry=0xffffcad0, p2=p2@entry=0xffffcad4)
        at backtrace-tst.c:12
     #4  0xf7e2a28c in msort_with_tmp (p=p@entry=0xffffca5c, b=b@entry=0xffffcad0,
        n=n@entry=2) at msort.c:65
     #5  0xf7e29f64 in msort_with_tmp (n=2, b=0xffffcad0, p=0xffffca5c)
        at msort.c:53
     #6  msort_with_tmp (p=p@entry=0xffffca5c, b=b@entry=0xffffcad0, n=n@entry=5)
        at msort.c:53
     #7  0xf7e29f64 in msort_with_tmp (n=5, b=0xffffcad0, p=0xffffca5c)
        at msort.c:53
     #8  msort_with_tmp (p=p@entry=0xffffca5c, b=b@entry=0xffffcad0, n=n@entry=10)
        at msort.c:53
     #9  0xf7e29f64 in msort_with_tmp (n=10, b=0xffffcad0, p=0xffffca5c)
        at msort.c:53
     #10 msort_with_tmp (p=p@entry=0xffffca5c, b=b@entry=0xffffcad0, n=n@entry=20)
        at msort.c:53
     #11 0xf7e2a5b6 in msort_with_tmp (n=20, b=0xffffcad0, p=0xffffca5c)
        at msort.c:297
     #12 __GI___qsort_r (b=b@entry=0xffffcad0, n=n@entry=20, s=s@entry=4,
        cmp=cmp@entry=0x8049230 <compare>, arg=arg@entry=0x0) at msort.c:297
     #13 0xf7e2a84d in __GI_qsort (b=b@entry=0xffffcad0, n=n@entry=20, s=s@entry=4,
        cmp=cmp@entry=0x8049230 <compare>) at msort.c:308
     #14 0x080490f6 in main (argc=2, argv=0xffffcbd4) at backtrace-tst.c:39
    
    FAIL: debug/backtrace-tst
    
            [BZ #23606]
            * sysdeps/i386/start.S: Include <sysdep.h>
            (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
            enabled.  Add cfi_undefined (eip).
    
    Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
    
    (cherry picked from commit 5a274db4ea363d6b0b92933f085a92daaf1be2f2)
    (cherry picked from commit 2339d6a55eb7a7e040ae888e906adc49eeb59eab)

 ChangeLog            |  8 ++++++++
 NEWS                 |  1 +
 sysdeps/i386/start.S | 10 ++++++----
 3 files changed, 15 insertions(+), 4 deletions(-)

commit 53ade4feb1ba8059287d8806958a8c3eb1f1b9b5
Author:     Wilco Dijkstra <wdijkstr@arm.com>
AuthorDate: Wed Sep 19 16:50:18 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Oct 21 17:43:38 2018 +0200

    Fix strstr bug with huge needles (bug 23637)
    
    The generic strstr in GLIBC 2.28 fails to match huge needles.  The optimized
    AVAILABLE macro reads ahead a large fixed amount to reduce the overhead of
    repeatedly checking for the end of the string.  However if the needle length
    is larger than this, two_way_long_needle may confuse this as meaning the end
    of the string and return NULL.  This is fixed by adding the needle length to
    the amount to read ahead.
    
            [BZ #23637]
            * string/test-strstr.c (pr23637): New function.
            (test_main): Add tests with longer needles.
            * string/strcasestr.c (AVAILABLE): Fix readahead distance.
            * string/strstr.c (AVAILABLE): Likewise.
    
        (cherry picked from commit 83a552b0bb9fc2a5e80a0ab3723c0a80ce1db9f2)
    
    (cherry picked from commit 0ef2f4400c06927af34c515555f68840a70ba409)

 ChangeLog            |  8 ++++++++
 string/strcasestr.c  |  5 +++--
 string/strstr.c      |  5 +++--
 string/test-strstr.c | 30 ++++++++++++++++++++++++++++++
 4 files changed, 44 insertions(+), 4 deletions(-)

commit 5b3899bfc5a822b6f9d7c0c4a1681cc139277d45
Author:     Carlos O'Donell <carlos@redhat.com>
AuthorDate: Wed Sep 5 01:16:42 2018 -0400
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Oct 21 17:43:13 2018 +0200

    Fix tst-setcontext9 for optimized small stacks.
    
    If the compiler reduces the stack usage in function f1 before calling
    into function f2, then when we swapcontext back to f1 and continue
    execution we may overwrite registers that were spilled to the stack
    while f2 was executing.  Later when we return to f2 the corrupt
    registers will be reloaded from the stack and the test will crash.  This
    was most commonly observed on i686 with __x86.get_pc_thunk.dx and
    needing to save and restore $edx.  Overall i686 has few registers and
    the spilling to the stack is bound to happen, therefore the solution to
    making this test robust is to split function f1 into two parts f1a and
    f1b, and allocate f1b it's own stack such that subsequent execution does
    not overwrite the stack in use by function f2.
    
    Tested on i686 and x86_64.
    
    Signed-off-by: Carlos O'Donell <carlos@redhat.com>
    (cherry picked from commit 791b350dc725545e3f9b5db0f97ebdbc60c9735f)
    (cherry picked from commit a55e109709af55e6ed67d3f9536cac5d929c982e)

 ChangeLog                |  6 ++++++
 stdlib/tst-setcontext9.c | 47 ++++++++++++++++++++++++++++++++++++++---------
 2 files changed, 44 insertions(+), 9 deletions(-)

commit 83ce48fab6d00c07b0a03514b14650708e3f8e85
Author:     Florian Weimer <fweimer@redhat.com>
AuthorDate: Thu Sep 20 12:03:01 2018 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Oct 21 17:42:46 2018 +0200

    misc: New test misc/tst-gethostid
    
    The empty /etc/hosts file used to trigger bug 23679.
    
    (cherry picked from commit db9a8ad4ff3fc58e3773a9a4d0cabe3c1bc9c94c)
    (cherry picked from commit 307d04334d516bb180f484a2b283f97310bfee66)

 ChangeLog            |   6 +++
 misc/Makefile        |   7 ++++
 misc/tst-gethostid.c | 108 +++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 121 insertions(+)

commit 1df8307e5b188ae5697d111cbfd7b8ad59020ccf
Author:     Mingli Yu <Mingli.Yu@windriver.com>
AuthorDate: Thu Sep 20 12:41:13 2018 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Oct 21 17:42:25 2018 +0200

    Linux gethostid: Check for NULL value from gethostbyname_r [BZ #23679]
    
    A NULL value can happen with certain gethostbyname_r failures.
    
    (cherry picked from commit 1214ba06e6771acb953a190091b0f6055c64fd25)
    (cherry picked from commit e7d22db29cfdd2f1fb97a70a76fa53d151569945)

 ChangeLog                           | 5 +++++
 NEWS                                | 1 +
 sysdeps/unix/sysv/linux/gethostid.c | 4 ++--
 3 files changed, 8 insertions(+), 2 deletions(-)

commit a53fd520dc46e69f42d011fcd5e2f7314928f7a7
Author:     Stefan Liebler <stli@linux.ibm.com>
AuthorDate: Thu Sep 6 14:27:03 2018 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Oct 21 17:42:08 2018 +0200

    Fix segfault in maybe_script_execute.
    
    If glibc is built with gcc 8 and -march=z900,
    the testcase posix/tst-spawn4-compat crashes with a segfault.
    
    In function maybe_script_execute, the new_argv array is dynamically
    initialized on stack with (argc + 1) elements.
    The function wants to add _PATH_BSHELL as the first argument
    and writes out of bounds of new_argv.
    There is an off-by-one because maybe_script_execute fails to count
    the terminating NULL when sizing new_argv.
    
    ChangeLog:
    
            * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
            Increment size of new_argv by one.
    
    (cherry picked from commit 28669f86f6780a18daca264f32d66b1428c9c6f1)
    (cherry picked from commit 1fe2b9ca8a50aaa789d72944b5a91f1d35337adc)

 ChangeLog                        | 5 +++++
 sysdeps/unix/sysv/linux/spawni.c | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

commit 8b889edc62605a198588ee7e1b28a9fba7452808
Author:     Florian Weimer <fweimer@redhat.com>
AuthorDate: Tue Aug 28 12:57:46 2018 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Oct 21 17:41:49 2018 +0200

    regex: Add test tst-regcomp-truncated [BZ #23578]
    
    (cherry picked from commit 761404b74d9853ce1608195e24f25b78a910591a)
    (cherry picked from commit 0b79004569e5ce1669136b8c41564c3809730f15)

 ChangeLog                     |   7 ++
 posix/Makefile                |   3 +-
 posix/tst-regcomp-truncated.c | 191 ++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 200 insertions(+), 1 deletion(-)

commit 20c8d01b6ed9f9a7d76838f905e6f3002fe22809
Author:     Paul Eggert <eggert@cs.ucla.edu>
AuthorDate: Tue Aug 28 21:54:28 2018 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Oct 21 17:41:34 2018 +0200

    regex: fix uninitialized memory access
    
    I introduced this bug into gnulib in commit
    8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
    eventually it was merged into glibc.  The bug was found by
    project-repo <bugs@feusi.co> and reported here:
    https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
    Diagnosis and draft fix reported by Assaf Gordon here:
    https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
    https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
    * posix/regex_internal.c (build_wcs_upper_buffer):
    Fix bug when mbrtowc returns 0.
    
    (cherry picked from commit bc680b336971305cb39896b30d72dc7101b62242)
    (cherry picked from commit 58559f14437d2aa71753a29fed435efa06aa4576)

 ChangeLog              | 15 +++++++++++++++
 NEWS                   |  1 +
 posix/regex_internal.c |  4 ++--
 3 files changed, 18 insertions(+), 2 deletions(-)

commit db9966ce096b68e81efd82d461a8ffa9e89e1bda
Author:     Martin Kuchta <martin.kuchta@netapp.com>
AuthorDate: Mon Aug 27 18:54:46 2018 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Oct 21 17:41:05 2018 +0200

    pthread_cond_broadcast: Fix waiters-after-spinning case [BZ #23538]
    
    (cherry picked from commit 99ea93ca31795469d2a1f1570f17a5c39c2eb7e2)
    (cherry picked from commit aa8a3e4cdef20c50cb20f008864fff05cbfbdf29)

 ChangeLog                  | 8 ++++++++
 NEWS                       | 1 +
 nptl/pthread_cond_common.c | 8 ++++++--
 3 files changed, 15 insertions(+), 2 deletions(-)

commit c1b49cd204f6b7a5ce78490cf63414e79923f9da
Author:     DJ Delorie <dj@delorie.com>
AuthorDate: Wed Aug 22 18:54:51 2018 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Oct 21 17:40:48 2018 +0200

    Improve ChangeLog message.
    
    (cherry picked from commit e5721f45f6377c27ccb2572001dc98f7a2e6a146)
    (cherry picked from commit c87b5bab241c8d1e7709061c6b63f1b435ee3ac9)

 ChangeLog | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 54a1921bb33532f1faaed6f6493ee67c5e0a1327
Author:     DJ Delorie <dj@redhat.com>
AuthorDate: Fri Aug 3 13:52:01 2018 -0400
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Oct 21 17:40:33 2018 +0200

    Regen RISC-V rvd ULPs
    
    * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
    
    Note: I regen'd these from scratch, but I'm only committing the
    increases, as I only tested on hardware.  There were a few 2->1
    decreases that I omitted, possibly "for now".
    
    (cherry picked from commit bb17621ab89b2135c4d8d0d250b2aab5aa3e36c4)
    (cherry picked from commit 66fdfd57fe20616dc3333b0eb4f5a411e85fd8aa)

 ChangeLog                             |  2 ++
 sysdeps/riscv/rv64/rvd/libm-test-ulps | 16 ++++++++++++----
 2 files changed, 14 insertions(+), 4 deletions(-)

commit 02c2854d71e431753983be26e5f3ee847e0dc6c8
Author:     DJ Delorie <dj@redhat.com>
AuthorDate: Fri Aug 3 13:43:31 2018 -0400
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Oct 21 17:40:08 2018 +0200

    RISC-V: Fix rounding save/restore bug.
    
    * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
    Fix rounding save-restore bug.
    
    Fixes about a hundred off-by-ULP failures in the math testsuite.
    
    (cherry picked from commit bf4181878780be9b53e37a3b0fbabc40cdd07649)
    (cherry picked from commit b0aa03dfffc20ec7a00db73a3dedecb2130ca6ab)

 ChangeLog                        | 5 +++++
 sysdeps/riscv/rvf/math_private.h | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

commit 7437d005126aa9590b85cc06558e820cde35f13f
Author:     Florian Weimer <fweimer@redhat.com>
AuthorDate: Tue Aug 14 10:57:48 2018 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Oct 21 17:39:46 2018 +0200

    nss_files: Fix file stream leak in aliases lookup [BZ #23521]
    
    In order to get a clean test case, it was necessary to fix partially
    fixed bug 23522 as well.
    
    (cherry picked from commit e95c6f61920a0f9237cfb292fa44ad500e1df09b)
    (cherry picked from commit 2f498f3d140ab5152bd784df2be7af7d9c5e63ed)

 ChangeLog                      |  13 +++
 NEWS                           |   1 +
 nss/Makefile                   |   3 +
 nss/nss_files/files-alias.c    |   9 ++
 nss/tst-nss-files-alias-leak.c | 237 +++++++++++++++++++++++++++++++++++++++++
 5 files changed, 263 insertions(+)

commit 11abc94bd0bae5e40555362630367bf0f27c8c13
Author:     Florian Weimer <fweimer@redhat.com>
AuthorDate: Tue Aug 14 10:51:07 2018 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Oct 21 17:39:24 2018 +0200

    nscd: Deallocate existing user names in file parser
    
    This avoids a theoretical memory leak (theoretical because it depends on
    multiple server-user/stat-user directives in the configuration file).
    
    (cherry picked from commit 2d7acfac3ebf266dcbc82d0d6cc576f626953a03)
    (cherry picked from commit bfcfa22589f2b4277a65e60c6b736b6bbfbd87d0)

 ChangeLog        | 5 +++++
 nscd/nscd_conf.c | 6 +++++-
 2 files changed, 10 insertions(+), 1 deletion(-)

commit f737a2cfc28c2be52959ec12b3668b5e08d89d30
Author:     Florian Weimer <fweimer@redhat.com>
AuthorDate: Mon Aug 13 14:28:07 2018 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Oct 21 17:38:59 2018 +0200

    error, error_at_line: Add missing va_end calls
    
    (cherry picked from commit b7b52b9dec337a08a89bc67638773be652eba332)
    (cherry picked from commit d05b05d1570ba3ae354a2f5a3cfeefb373b09979)

 ChangeLog    | 5 +++++
 misc/error.c | 2 ++
 2 files changed, 7 insertions(+)

commit 710138a9ce8405333d6e09190ece243f39678d8e
Author:     Florian Weimer <fweimer@redhat.com>
AuthorDate: Fri Aug 10 11:19:26 2018 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Oct 21 17:38:42 2018 +0200

    Linux: Rewrite __old_getdents64 [BZ #23497]
    
    Commit 298d0e3129c0b5137f4989275b13fe30d0733c4d ("Consolidate Linux
    getdents{64} implementation") broke the implementation because it does
    not take into account struct offset differences.
    
    The new implementation is close to the old one, before the
    consolidation, but has been cleaned up slightly.
    
    (cherry picked from commit 690652882b499defb3d950dfeff8fe421d13cab5)
    (cherry picked from commit 4b25485f03158959cff45379eecc1d73c7dcdd11)

 ChangeLog                                      |  11 +++
 NEWS                                           |   7 ++
 sysdeps/unix/sysv/linux/Makefile               |   1 +
 sysdeps/unix/sysv/linux/getdents64.c           |  89 ++++++++++++++------
 sysdeps/unix/sysv/linux/tst-readdir64-compat.c | 111 +++++++++++++++++++++++++
 5 files changed, 194 insertions(+), 25 deletions(-)

commit 2db7b5e9316275d22110a8d7841cd5862d354510
Author:     Samuel Thibault <samuel.thibault@ens-lyon.org>
AuthorDate: Thu Aug 9 01:26:19 2018 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Oct 21 17:38:19 2018 +0200

    hurd: Avoid PLTs for __pthread_get/setspecific
    
    * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
    __pthread_setspecific): Add hidden proto.
    * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
    * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
    
    (cherry picked from commit 726e1554ce4db5e35af41cb0110c54c5e1232054)

 ChangeLog                    | 4 ++++
 sysdeps/htl/pt-getspecific.c | 1 +
 sysdeps/htl/pt-setspecific.c | 1 +
 sysdeps/htl/pthreadP.h       | 2 ++
 4 files changed, 8 insertions(+)

commit 278f1c8e5403ca3616bf4eedefb9d1b04c5ab17d
Author:     Samuel Thibault <samuel.thibault@ens-lyon.org>
AuthorDate: Wed Aug 8 01:55:04 2018 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sun Oct 21 17:38:03 2018 +0200

    hurd: Add missing symbols for proper libc_get/setspecific
    
            * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
            symbols.
    
    (cherry picked from commit 7f11842e7483da7aa9fa3031be122021978ef600)

 ChangeLog    | 5 +++++
 htl/Versions | 2 ++
 2 files changed, 7 insertions(+)

commit ee2fe1b35879308968b95c4ae86e93087a5cb4eb
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: Wed Jul 4 22:37:23 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Sat Aug 4 13:53:14 2018 +0200

    Gentoo: force -O0 in conform tests to survive $CC changes
    
    In bug #659030 Gentoo started passing user's CFLAGS via $CC variable.
    conform tests should but are not ready to handle -O1/-O2 yet.
    Tests fail to validate headers due to inlining of weak symbol aliases
    and other problems. Let's force it back to -O0 until it's fixed upstream.
    
    Bug: https://bugs.gentoo.org/659030
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 conform/conformtest.pl   | 6 ++++--
 conform/linknamespace.pl | 3 ++-
 2 files changed, 6 insertions(+), 3 deletions(-)

commit c37e1d1c35eadddf5201e58407f0e5022f0a0741 (tag: gentoo/glibc-2.28-1)
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: Sat Feb 10 16:27:30 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Aug 3 23:10:09 2018 +0200

    [no-patch] locale-gen: suppress ignored error when emptying already empty directory
    
    Closes: https://bugs.gentoo.org/647188

 scripts/gentoo/extra/locale/locale-gen | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 2ea5d5136fdeaa49ffba7ec8ccb20fb92df4ff20
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: Wed Jan 17 01:02:19 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Aug 3 23:10:09 2018 +0200

    Gentoo: Disable test that fails because of the gethostbyname4_r revert

 nss/Makefile | 1 -
 1 file changed, 1 deletion(-)

commit 9423e59620ad973eb3f2f266dca6d8c5994794c6
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: Wed Jan 17 01:00:59 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Aug 3 23:10:09 2018 +0200

    Gentoo: disable tests that fail only in sandbox

 io/Makefile                      | 2 +-
 sysdeps/unix/sysv/linux/Makefile | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

commit f3275e9b0d0c08dfe254c10810d02dd19caa45d6
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: Sun Jan 14 18:17:40 2018 +0100
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Aug 3 23:10:09 2018 +0200

    [no-patch] Make patchset generation script also work with master

 scripts/gentoo/README.Gentoo.patches | 13 ++-----------
 scripts/gentoo/make-tarball.sh       | 21 +++++++++++++++------
 2 files changed, 17 insertions(+), 17 deletions(-)

commit 0605322d7e9e228fcb6e5a168a73853fd7f24555
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: Mon Sep 11 13:14:46 2017 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Aug 3 23:10:09 2018 +0200

    Gentoo: disable tests that fail only in sandbox

 elf/Makefile    | 16 +---------------
 nptl/Makefile   |  6 +++---
 posix/Makefile  |  4 ++--
 resolv/Makefile |  5 -----
 4 files changed, 6 insertions(+), 25 deletions(-)

commit 4a6cd6b06806d04311495c7b764d89c0f6fa417d
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: Tue Aug 29 22:58:50 2017 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Aug 3 23:10:09 2018 +0200

    Revert "        * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r"
    
    This reverts commit 8479f23aa1d5e5477a37f46823856bdafaedfa46.
    
    See for the background
      https://sourceware.org/bugzilla/show_bug.cgi?id=16826
      https://bugs.gentoo.org/show_bug.cgi?id=600632
    
    This makes test resolv/tst-res_use_inet6 fail. Disable it.
    (cherry picked from commit 06a2a073a2c6fb3e1489af96e125daca248d0a03)

 resolv/Makefile             | 1 -
 sysdeps/posix/getaddrinfo.c | 9 ++-------
 2 files changed, 2 insertions(+), 8 deletions(-)

commit 48f920d5c48c992f256ba64997295af22758e2a6
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: Wed Aug 23 13:26:49 2017 +0200
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Aug 3 23:10:09 2018 +0200

    [no-patch] Gentoo: Add support files
    
    * Source: https://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo/src/patchsets/glibc/extra/
    * The make-tarball script has been completely rewritten to work with git.
    * The c-stubs addon has been dropped since the addon mechanism is gone.
    * Updates to the nscd init script, see Gentoo bug 492814

 scripts/gentoo/README.Gentoo.patches     |  35 +++
 scripts/gentoo/extra/README              |   5 +
 scripts/gentoo/extra/etc/host.conf       |  24 ++
 scripts/gentoo/extra/etc/nscd            |  85 +++++++
 scripts/gentoo/extra/etc/nscd.conf       |  45 ++++
 scripts/gentoo/extra/etc/nsswitch.conf   |  20 ++
 scripts/gentoo/extra/locale/locale-gen   | 384 +++++++++++++++++++++++++++++++
 scripts/gentoo/extra/locale/locale-gen.8 |  69 ++++++
 scripts/gentoo/extra/locale/locale.gen   |  36 +++
 scripts/gentoo/extra/locale/locale.gen.5 |  77 +++++++
 scripts/gentoo/make-tarball.sh           |  98 ++++++++
 11 files changed, 878 insertions(+)

commit d6a4ececc337bcc93185b72b03ffb46758c6f181
Author:     Stephanie J. Lockwood-Childs <wormo@gentoo.org>
AuthorDate: Tue Mar 13 01:57:21 2007 -0400
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Aug 3 23:10:09 2018 +0200

    Gentoo: support running tests under sandbox
    
    when glibc runs its tests, it does so by invoking the local library loader.
    in Gentoo, we build/run inside of our "sandbox" which itself is linked against
    libdl (so that it can load libraries and pull out symbols).  the trouble
    is that when you upgrade from an older glibc to the new one, often times
    internal symbols change name or abi.  this is normally OK as you cannot use
    libc.so from say version 2.3.6 but libpthread.so from say version 2.5, so
    we always say "keep all of the glibc libraries from the same build".  but
    when glibc runs its tests, it uses dynamic paths to point to its new local
    copies of libraries.  if the test doesnt use libdl, then glibc doesnt add
    its path, and when sandbox triggers the loading of libdl, glibc does so
    from the host system system.  this gets us into the case of all libraries
    are from the locally compiled version of glibc except for libdl.so.
    
    http://bugs.gentoo.org/56898

 Makeconfig                  | 2 +-
 iconvdata/run-iconv-test.sh | 2 +-
 nptl/tst-tls6.sh            | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

commit c7a468a78f953b3431bab1bac4e1110a7953e67a
Author:     Mike Frysinger <vapier@gentoo.org>
AuthorDate: Wed Apr 1 02:15:48 2009 -0400
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: Fri Aug 3 23:10:09 2018 +0200

    Gentoo: disable ldconfig during install
    
    Do not bother running ldconfig on DESTDIR.  It's a waste of time as we
    won't use the result (portage will rebuild the cache after install).
    Also, the Gentoo sandbox does not currently catch chroot() behavior so
    we end up (incorrectly) flagging it as a violation as a write to /etc.
    
    http://sourceware.org/ml/libc-alpha/2012-08/msg00118.html
    https://bugs.gentoo.org/431038

 Makefile | 1 +
 1 file changed, 1 insertion(+)
