commit cd633e1d19990d75c2c33238d2cf2799e40fb4a0 (HEAD -> gentoo/2.28, gentoo/gentoo/2.28)
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(+)
