glibc.git
22 months agoMerge version 2.31-13+rpi1+deb11u7 and 2.31-13+deb11u8 to produce 2.31-13+rpi1+deb11u8 archive/raspbian/2.31-13+rpi1+deb11u8 raspbian/2.31-13+rpi1+deb11u8
Raspbian automatic forward porter [Thu, 15 Feb 2024 22:29:52 +0000 (22:29 +0000)]
Merge version 2.31-13+rpi1+deb11u7 and 2.31-13+deb11u8 to produce 2.31-13+rpi1+deb11u8

22 months agoMerge glibc (2.31-13+deb11u8) import into refs/heads/workingbranch
Aurelien Jarno [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
Merge glibc (2.31-13+deb11u8) import into refs/heads/workingbranch

22 months agolocal-qsort-memory-corruption
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
local-qsort-memory-corruption

Gbp-Pq: Topic any
Gbp-Pq: Name local-qsort-memory-corruption.patch

22 months ago[PATCH v2] tunables: Terminate immediately if end of input is reached
Siddhesh Poyarekar [Mon, 11 Sep 2023 22:53:15 +0000 (18:53 -0400)]
[PATCH v2] tunables: Terminate immediately if end of input is reached

The string parsing routine may end up writing beyond bounds of tunestr
if the input tunable string is malformed, of the form name=name=val.
This gets processed twice, first as name=name=val and next as name=val,
resulting in tunestr being name=name=val:name=val, thus overflowing
tunestr.

Terminate the parsing loop at the first instance itself so that tunestr
does not overflow.

Gbp-Pq: Topic any
Gbp-Pq: Name local-CVE-2023-4911.patch

22 months agolocal-CVE-2021-33574-mq_notify-use-after-free
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
local-CVE-2021-33574-mq_notify-use-after-free

This is basically a backport of the following upstream commits below with
__pthread_attr_copy implemented as a static function in mq_notify.c Indeed it
has been added upstream in glibc 2.32 and is exported as a GLIBC_PRIVATE symbol
from libpthread.so while __mq_notify is exported by librt.so. As Debian
supports online upgrades, We need to support the case where 1) a process is
started loading libpthread.so, 2) the glibc libraries are upgraded 3) librt.so
is dlopened.  This scenario might happens for instance with OpenJDK.

commit 331c6e8a184167dd21a9f0b3fc165aeefea6eeca
Author: Florian Weimer <fweimer@redhat.com>
Date:   Tue May 19 12:32:39 2020 +0200

    nptl: Add __pthread_attr_copy for copying pthread_attr_t objects

commit 79474303223c5665bec75ffbdb2a86ee04a2514b
Author: Nikita Popov <npv1310@gmail.com>
Date:   Mon Aug 9 20:17:34 2021 +0530

    librt: fix NULL pointer dereference (bug 28213)

    Helper thread frees copied attribute on NOTIFY_REMOVED message
    received from the OS kernel.  Unfortunately, it fails to check whether
    copied attribute actually exists (data.attr != NULL).  This worked
    earlier because free() checks passed pointer before actually
    attempting to release corresponding memory.  But
    __pthread_attr_destroy assumes pointer is not NULL.

    So passing NULL pointer to __pthread_attr_destroy will result in
    segmentation fault.  This scenario is possible if
    notification->sigev_notify_attributes == NULL (which means default
    thread attributes should be used).

Signed-off-by: Nikita Popov <npv1310@gmail.com>
Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
    (cherry picked from commit b805aebd42364fe696e417808a700fdb9800c9e8)

commit 42d359350510506b87101cf77202fefcbfc790cb
Author: Andreas Schwab <schwab@linux-m68k.org>
Date:   Thu May 27 12:49:47 2021 +0200

    Use __pthread_attr_copy in mq_notify (bug 27896)

    Make a deep copy of the pthread attribute object to remove a potential
    use-after-free issue.

commit 217b6dc298156bdb0d6aea9ea93e7e394a5ff091
Author: Florian Weimer <fweimer@redhat.com>
Date:   Tue Jun 1 17:51:41 2021 +0200

    Fix use of __pthread_attr_copy in mq_notify (bug 27896)

    __pthread_attr_copy can fail and does not initialize the attribute
    structure in that case.

    If __pthread_attr_copy is never called and there is no allocated
    attribute, pthread_attr_destroy should not be called, otherwise
    there is a null pointer dereference in rt/tst-mqueue6.

    Fixes commit 42d359350510506b87101cf77202fefcbfc790cb
    ("Use __pthread_attr_copy in mq_notify (bug 27896)").

Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Gbp-Pq: Topic any
Gbp-Pq: Name local-CVE-2021-33574-mq_notify-use-after-free.diff

22 months agogit-ld.so-cache-endianness-markup
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
git-ld.so-cache-endianness-markup

commit 84ba719b260551918965d0a433914de683087645
Author: Florian Weimer <fweimer@redhat.com>
Date:   Fri Dec 4 09:13:43 2020 +0100

    elf: Add endianness markup to ld.so.cache (bug 27008)

    Use a reserved byte in the new format cache header to indicate whether
    the file is in little endian or big endian format.  Eventually, this
    information could be used to provide a unified cache for qemu-user
    and similiar scenarios.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Gbp-Pq: Topic any
Gbp-Pq: Name git-ld.so-cache-endianness-markup.diff

22 months agogit-surplus-tls-accounting
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
git-surplus-tls-accounting

commit ffb17e7ba3a5ba9632cee97330b325072fbe41dd
Author: Szabolcs Nagy <szabolcs.nagy@arm.com>
Date:   Wed Jun 10 13:40:40 2020 +0100

    rtld: Avoid using up static TLS surplus for optimizations [BZ #25051]

    On some targets static TLS surplus area can be used opportunistically
    for dynamically loaded modules such that the TLS access then becomes
    faster (TLSDESC and powerpc TLS optimization). However we don't want
    all surplus TLS to be used for this optimization because dynamically
    loaded modules with initial-exec model TLS can only use surplus TLS.

    The new contract for surplus static TLS use is:

    - libc.so can have up to 192 bytes of IE TLS,
    - other system libraries together can have up to 144 bytes of IE TLS.
    - Some "optional" static TLS is available for opportunistic use.

    The optional TLS is now tunable: rtld.optional_static_tls, so users
    can directly affect the allocated static TLS size. (Note that module
    unloading with dlclose does not reclaim static TLS. After the optional
    TLS runs out, TLS access is no longer optimized to use static TLS.)

    The default setting of rtld.optional_static_tls is 512 so the surplus
    TLS is 3*192 + 4*144 + 512 = 1664 by default, the same as before.

    Fixes BZ #25051.

    Tested on aarch64-linux-gnu and x86_64-linux-gnu.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
commit 17796419b5fd694348cceb65c3f77601faae082c
Author: Szabolcs Nagy <szabolcs.nagy@arm.com>
Date:   Tue Jul 7 10:49:11 2020 +0100

    rtld: Account static TLS surplus for audit modules

    The new static TLS surplus size computation is

      surplus_tls = 192 * (nns-1) + 144 * nns + 512

    where nns is controlled via the rtld.nns tunable. This commit
    accounts audit modules too so nns = rtld.nns + audit modules.

    rtld.nns should only include the namespaces required by the
    application, namespaces for audit modules are accounted on top
    of that so audit modules don't use up the static TLS that is
    reserved for the application. This allows loading many audit
    modules without tuning rtld.nns or using up static TLS, and it
    fixes

    FAIL: elf/tst-auditmany

    Note that DL_NNS is currently a hard upper limit for nns, and
    if rtld.nns + audit modules go over the limit that's a fatal
    error. By default rtld.nns is 4 which allows 12 audit modules.

    Counting the audit modules is based on existing audit string
    parsing code, we cannot use GLRO(dl_naudit) before the modules
    are actually loaded.

commit 0c7b002fac12dcb2f53ba83ee56bb3b5d2439447
Author: Szabolcs Nagy <szabolcs.nagy@arm.com>
Date:   Tue Jun 9 09:57:28 2020 +0100

    rtld: Add rtld.nns tunable for the number of supported namespaces

    TLS_STATIC_SURPLUS is 1664 bytes currently which is not enough to
    support DL_NNS (== 16) number of dynamic link namespaces, if we
    assume 192 bytes of TLS are reserved for libc use and 144 bytes
    are reserved for other system libraries that use IE TLS.

    A new tunable is introduced to control the number of supported
    namespaces and to adjust the surplus static TLS size as follows:

    surplus_tls = 192 * (rtld.nns-1) + 144 * rtld.nns + 512

    The default is rtld.nns == 4 and then the surplus TLS size is the
    same as before, so the behaviour is unchanged by default. If an
    application creates more namespaces than the rtld.nns setting
    allows, then it is not guaranteed to work, but the limit is not
    checked. So existing usage will continue to work, but in the
    future if an application creates more than 4 dynamic link
    namespaces then the tunable will need to be set.

    In this patch DL_NNS is a fixed value and provides a maximum to
    the rtld.nns setting.

    Static linking used fixed 2048 bytes surplus TLS, this is changed
    so the same contract is used as for dynamic linking.  With static
    linking DL_NNS == 1 so rtld.nns tunable is forced to 1, so by
    default the surplus TLS is reduced to 144 + 512 = 656 bytes. This
    change is not expected to cause problems.

    Tested on aarch64-linux-gnu and x86_64-linux-gnu.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
commit 4c6e0415ef206a595c62d5d37e3b9a821782c533
Author: Florian Weimer <fweimer@redhat.com>
Date:   Fri Apr 3 13:17:48 2020 +0200

    elf: Simplify handling of lists of audit strings

    All list elements are colon-separated strings, and there is a hard
    upper limit for the number of audit modules, so it is possible to
    pre-allocate a fixed-size array of strings to which the LD_AUDIT
    environment variable and --audit arguments are added.

    Also eliminate the global variables for the audit list because
    the list is only needed briefly during startup.

    There is a slight behavior change: All duplicate LD_AUDIT environment
    variables are now processed, not just the last one as before.  However,
    such environment vectors are invalid anyway.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Gbp-Pq: Topic any
Gbp-Pq: Name git-surplus-tls-accounting.diff

22 months agoUse install_root for test destination override, not DESTDIR
Adam Conrad [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
Use install_root for test destination override, not DESTDIR

Forwarded: no
Last-Update: 2020-02-08

Gbp-Pq: Topic any
Gbp-Pq: Name local-test-install.diff

22 months agosubmitted-ld.so-cache-new-format
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
submitted-ld.so-cache-new-format

2018-09-16  Josh Triplett  <josh@joshtriplett.org>

        * elf/ldconfig.c: Default to the new format for ld.so.cache. glibc has
        supported this format for 18+ years.
        * elf/dl-cache.c (_dl_load_cache_lookup): Reorder conditionals to look
        for the new format first.

Gbp-Pq: Topic any
Gbp-Pq: Name submitted-ld.so-cache-new-format.diff

22 months agoTurn off HAVE_FLOAT128 for CUDACC and ICC compilers.
Adam Conrad [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
Turn off HAVE_FLOAT128 for CUDACC and ICC compilers.

Bug-Ubuntu: https://bugs.launchpad.net/bugs/1717257
Forwarded: no
Last-Update: 2017-10-11

Gbp-Pq: Topic any
Gbp-Pq: Name local-cudacc-float128.diff

22 months agosubmitted-resolv-unaligned
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
submitted-resolv-unaligned

Gbp-Pq: Topic any
Gbp-Pq: Name submitted-resolv-unaligned.diff

22 months agolocal-bootstrap-headers
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
local-bootstrap-headers

Taken from EGLIBC, r1484 + r1525

2018-03-09  Aurelien Jarno <aurelien@aurel32.net>

* Makefile (install-headers): Amend to install gnu/lib-names-$abi.h.

2014-07-30  Helmut Grohne <helmut@subdivi.de>

* With the advent of multilib gnu/stubs.h became a meta-header that
includes the correct stubs-$abi.h. So install gnu/stubs.h as usual
and install stubs-bootstrap.h as gnu/stubs-$abi.h

2007-02-20  Jim Blandy  <jimb@codesourcery.com>

* Makefile (install-headers): Preserve old behavior: depend on
$(inst_includedir)/gnu/stubs.h only if install-bootstrap-headers
is set; otherwise, place gnu/stubs.h on the 'install-others' list.

2007-02-16  Jim Blandy  <jimb@codesourcery.com>

        * Makefile: Amend make install-headers to install everything
        necessary for building a cross-compiler.  Install gnu/stubs.h as
        part of 'install-headers', not 'install-others'.
        If install-bootstrap-headers is 'yes', install a dummy copy of
        gnu/stubs.h, instead of computing the real thing.
        * include/stubs-bootstrap.h: New file.

Gbp-Pq: Topic any
Gbp-Pq: Name local-bootstrap-headers.diff

22 months agolocal-ldconfig-ignore-ld.so
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
local-ldconfig-ignore-ld.so

Gbp-Pq: Topic any
Gbp-Pq: Name local-ldconfig-ignore-ld.so.diff

22 months agounsubmitted-ldso-machine-mismatch
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
unsubmitted-ldso-machine-mismatch

Gbp-Pq: Topic any
Gbp-Pq: Name unsubmitted-ldso-machine-mismatch.diff

22 months agolocal-revert-bz13979
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
local-revert-bz13979

Revert:

X-Git-Tag: glibc-2.16-tps~448
X-Git-Url: http://sourceware.org/git/?p=glibc.git;a=commitdiff_plain;h=05c2c9618f583ea4acd69b3fe5ae2a2922dd2ddc

Warn if user requests __FORTIFY_SOURCE but it is disabled

[BZ #13979]
        * include/features.h: Warn if user requests __FORTIFY_SOURCE
        checking but the checks are disabled for any reason.

Gbp-Pq: Topic any
Gbp-Pq: Name local-revert-bz13979.diff

22 months agolocal-disable-libnss-db
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
local-disable-libnss-db

Disable libnss-db as the format is not compatible with the libnss-db package, and is
architecture dependent.

Gbp-Pq: Topic any
Gbp-Pq: Name local-disable-libnss-db.diff

22 months agomake ldconfig use the built-in system paths
Steve Langasek [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
make ldconfig use the built-in system paths

Bug-Ubuntu: https://bugs.launchpad.net/bugs/736932

Make ldconfig use the same view of built-in system paths that ld.so does,
instead of just using SLIBDIR and LIBDIR; this corrects a failure of
ldconfig to cache libraries in non-multiarch directories when building for
multiarch, even though they're on the system path.

Gbp-Pq: Topic any
Gbp-Pq: Name local-ldconfig-multiarch.diff

22 months agosubmitted-nptl-invalid-td
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
submitted-nptl-invalid-td

2010-02-27  Aurelien Jarno  <aurelien@aurel32.net>

* pthreadP.h(INVALID_TD_P, INVALID_NOT_TERMINATED_TD_P): detect
NULL pointers.

Gbp-Pq: Topic any
Gbp-Pq: Name submitted-nptl-invalid-td.patch

22 months agosubmitted-bits-fcntl_h-at
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
submitted-bits-fcntl_h-at

2012-10-08  Wookey  <wookey@wookware.org>

        * include AT_* defines in sysdeps/unix/sysv/linux/aarch64/bits/fcntl.h

2009-11-19  Aurelien Jarno  <aurelien@aurel32.net>

* io/fcntl.h: Move AT_* defines to...
* sysdeps/mach/hurd/bits/fcntl.h: ...here.
* sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: ...here.
* sysdeps/unix/sysv/linux/s390/bits/fcntl.h: ...here.
* sysdeps/unix/sysv/linux/sh/bits/fcntl.h: ...here.
* sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: ...here.
* sysdeps/unix/sysv/linux/x86/bits/fcntl.h: ...here.

2009-11-19  Aurelien Jarno  <aurelien@aurel32.net>

* sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Define AT_*
constants.
* sysdeps/unix/sysv/linux/arm/bits/fcntl.h: Define AT_*
constants.
* sysdeps/unix/sysv/linux/hppa/bits/fcntl.h: Define AT_*
constants.
* sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Define AT_*
constants.
* sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: Define AT_*
constants.
* sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Define AT_*
constants.

Gbp-Pq: Topic any
Gbp-Pq: Name submitted-bits-fcntl_h-at.diff

22 months agosubmitted-missing-etc-hosts
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
submitted-missing-etc-hosts

Gbp-Pq: Topic any
Gbp-Pq: Name submitted-missing-etc-hosts.diff

22 months agolocal-nss-overflow
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
local-nss-overflow

2009-01-12  Arthur Loiret  <aloiret@debian.org>

nss/nss_files/files-parse.c: Include <limits.h>.
(INT_FIELD): Convert field to uintmax_t and check for 32-bit overflow.
(INT_FIELD_MAYBE_NULL): Likewise.

Gbp-Pq: Topic any
Gbp-Pq: Name local-nss-overflow.diff

22 months agolocal-tcsetaddr
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
local-tcsetaddr

# All lines beginning with `# DP:' are a description of the patch.
# DP: Description: tcsetattr sanity check on PARENB/CREAD/CSIZE for ptys
# DP: Related bugs: 218131
# DP: Author: Jeff Licquia <licquia@progeny.com>
# DP: Upstream status: [In CVS | Debian-Specific | Pending | Not submitted ]
# DP: Status Details:
# DP: Date: 2003-10-29

# All lines beginning with `# DP:' are a description of the patch.
# DP: Description: tcsetattr sanity check on PARENB/CREAD/CSIZE for ptys
# DP: Related bugs: 218131
# DP: Author: Jeff Licquia <licquia@progeny.com>
# DP: Upstream status: [In CVS | Debian-Specific | Pending | Not submitted ]
# DP: Status Details:
# DP: Date: 2003-10-29

Gbp-Pq: Topic any
Gbp-Pq: Name local-tcsetaddr.diff

22 months agolocal-stubs_h
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
local-stubs_h

Gbp-Pq: Topic any
Gbp-Pq: Name local-stubs_h.diff

22 months agolocal-nss-upgrade
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
local-nss-upgrade

# DP: This patch makes future upgrades easier. It resolves problems with
# DP: running daemons having NSS modules upgraded out from under them.

# DP: This patch makes future upgrades easier. It resolves problems with
# DP: running daemons having NSS modules upgraded out from under them.

Gbp-Pq: Topic any
Gbp-Pq: Name local-nss-upgrade.diff

22 months agolocal-ldso-disable-hwcap
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
local-ldso-disable-hwcap

# DP: Allow hwcap's to be disabled with the existence of a file. This
# DP: makes it easier to do upgrades with optimized (hwcap) library
# DP: packages.
# DP: Author: Rewritten by Daniel Jacobowitz <dan@debian.org>
# DP: Upstream status: Debian-Specific
# DP: Status Details: This isn't going to be acceptable upstream, we
# DP:                 only need it because we support in-place upgrades.
# DP: Date: 2003-10-28, (Updated 2005-01-02 gotom, 2007-05-20 aurel32)

# DP: Allow hwcap's to be disabled with the existence of a file. This
# DP: makes it easier to do upgrades with optimized (hwcap) library
# DP: packages.
# DP: Author: Rewritten by Daniel Jacobowitz <dan@debian.org>
# DP: Upstream status: Debian-Specific
# DP: Status Details: This isn't going to be acceptable upstream, we
# DP:                 only need it because we support in-place upgrades.
# DP: Date: 2003-10-28, (Updated 2005-01-02 gotom, 2007-05-20 aurel32)

Gbp-Pq: Topic any
Gbp-Pq: Name local-ldso-disable-hwcap.diff

22 months agolocal-ld-multiarch
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
local-ld-multiarch

2012-05-01  Aurelien Jarno  <aurelien@aurel32.net>

* elf/Makefile(trusted-dirs.st): Fix DL_DST_LIB computation with
two level slibdir directories.

2009-09-08  Aurelien Jarno  <aurelien@aurel32.net>

* Makeconfig: add support for multiarch compat directories.

Gbp-Pq: Topic any
Gbp-Pq: Name local-ld-multiarch.diff

22 months agolocal-fhs-nscd
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
local-fhs-nscd

Gbp-Pq: Topic any
Gbp-Pq: Name local-fhs-nscd.diff

22 months agolocal-fhs-linux-paths
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
local-fhs-linux-paths

# DP: Description: Correct linux paths for FHS
# DP: Author: Unknown
# DP: Upstream status: Debian-Specific
# DP: Status Details: GNU doesn't follow the FHS.
# DP: Date: Unknown

# DP: Description: Correct linux paths for FHS
# DP: Author: Unknown
# DP: Upstream status: Debian-Specific
# DP: Status Details: GNU doesn't follow the FHS.
# DP: Date: Unknown

Gbp-Pq: Topic any
Gbp-Pq: Name local-fhs-linux-paths.diff

22 months agolocal-bindresvport_blacklist
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
local-bindresvport_blacklist

Patch from the OpenSUSE glibc

Gbp-Pq: Topic any
Gbp-Pq: Name local-bindresvport_blacklist.diff

22 months agolocal-asserth-decls
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
local-asserth-decls

# DP: Description: /usr/include/assert.h
# DP: One must be allowed to include <assert.h> multiple times with different
# DP: values for NDEBUG, so the file is not protected against multiple
# DP: inclusions.  Unfortunately this means that the declarations for
# DP: __assert_fail() and the like may occur multiple times in a compilation
# DP: unit, causing gcc to issue a batch of warnings.
# DP: I believe this can be fixed by protecting the declarations (but only
# DP: those declarations) against repetition.
# DP: Author: Jeroen T. Vermeulen <jtv@xs4all.nl>
# DP: Upstream status: Not submitted
# DP: Status Details: Plan to submit
# DP: Date: 2003-01-01

# DP: Description: /usr/include/assert.h
# DP: One must be allowed to include <assert.h> multiple times with different
# DP: values for NDEBUG, so the file is not protected against multiple
# DP: inclusions.  Unfortunately this means that the declarations for
# DP: __assert_fail() and the like may occur multiple times in a compilation
# DP: unit, causing gcc to issue a batch of warnings.
# DP: I believe this can be fixed by protecting the declarations (but only
# DP: those declarations) against repetition.
# DP: Author: Jeroen T. Vermeulen <jtv@xs4all.nl>
# DP: Upstream status: Not submitted
# DP: Status Details: Plan to submit
# DP: Date: 2003-01-01

Gbp-Pq: Topic any
Gbp-Pq: Name local-asserth-decls.diff

22 months agosubmitted-po-fr-fixes
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
submitted-po-fr-fixes

2014-05-05  Aurelien Jarno  <aurelien@aurel32.net>

* po/fr.po: Fix French translation of inappropriate.

Gbp-Pq: Topic all
Gbp-Pq: Name submitted-po-fr-fixes.diff

22 months agolocal-nis-shadow
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
local-nis-shadow

Gbp-Pq: Topic all
Gbp-Pq: Name local-nis-shadow.diff

22 months agolocal-ldd
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
local-ldd

2013-05-11  Aurelien Jarno  <aurelien@aurel32.net>

* elf/ldd.bash.in: Verify the dynamic linker is working before
using it.

Gbp-Pq: Topic all
Gbp-Pq: Name local-ldd.diff

22 months agolocal-ru_RU
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
local-ru_RU

# DP: Description: Change default charset for 'russian' locale alias
# DP: Related bugs: #62586
# DP: Dpatch author: Ben Collins
# DP: Patch author: Alistair McKinstry
# DP: Upstream status: Submitted
# DP: Status Details: http://sources.redhat.com/bugzilla/show_bug.cgi?id=120
# DP: Date: 2002-03-10

# DP: Description: Change default charset for 'russian' locale alias
# DP: Related bugs: #62586
# DP: Dpatch author: Ben Collins
# DP: Patch author: Alistair McKinstry
# DP: Upstream status: Submitted
# DP: Status Details: http://sources.redhat.com/bugzilla/show_bug.cgi?id=120
# DP: Date: 2002-03-10

Gbp-Pq: Topic all
Gbp-Pq: Name local-ru_RU.diff

22 months agolocal-remove-manual
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
local-remove-manual

The GNU Libc Reference manual has to be removed for licensing reasons.
But some files have a dependency on manual/errno.texi; the easiest
solution is to drop those dependencies and make sure that MAKEINFO=:
so that no target depends on manual/*.texi files.

Gbp-Pq: Topic all
Gbp-Pq: Name local-remove-manual.diff

22 months agolocal-alias-et_EE
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
local-alias-et_EE

Gbp-Pq: Topic all
Gbp-Pq: Name local-alias-et_EE.diff

22 months agolocal-fpscr_values
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
local-fpscr_values

Gbp-Pq: Topic sh4
Gbp-Pq: Name local-fpscr_values.diff

22 months agolocal-powerpc8xx-dcbz
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
local-powerpc8xx-dcbz

Gbp-Pq: Topic powerpc
Gbp-Pq: Name local-powerpc8xx-dcbz.diff

22 months agosubmitted-rld_map
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
submitted-rld_map

2010-05-20  Aurelien Jarno  <aurelien@aurel32.net>

* sysdeps/mips/dl-machine.h (ELF_MACHINE_DEBUG_SETUP): test for
RLD_MAP pointer before using it.

Gbp-Pq: Topic mips
Gbp-Pq: Name submitted-rld_map.diff

22 months agosubmitted-gcc34-seccomment
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
submitted-gcc34-seccomment

# DP: Description: Make glibc-2.3.5 compile with gcc-3.4/4.0 + binutils 2.16

# DP: Description: Make glibc-2.3.5 compile with gcc-3.4/4.0 + binutils 2.16
#    on m68k fixed by adding #APP.
# DP: Related bugs:
# DP: Dpatch author: GOTO Masanori <gotom@debian.org>
# DP: Patch author: Andreas Schwab <schwab@suse.de>
# DP: Upstream status: Pending
# DP: Status Details:
# DP: Date: 2005-08-03

From: Andreas Schwab <schwab@suse.de>

Gbp-Pq: Topic m68k
Gbp-Pq: Name submitted-gcc34-seccomment.diff

22 months agolocal-reloc
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
local-reloc

# DP: Description: binutils bug workaround
# DP: Related bugs: #263601: m68k: workaround for binutils problem
# DP: Dpatch author: Roman Zippel <zippel@linux-m68k.org>
# DP: Patch author: Richard Zidlicky <rz@linux-m68k.org>
# DP: Upstream status: Debian-Specific
# DP: Status Details: Actual fix is to modify m68k binutils.
# DP: Date: 2004-08-09

# DP: Description: binutils bug workaround
# DP: Related bugs: #263601: m68k: workaround for binutils problem
# DP: Dpatch author: Roman Zippel <zippel@linux-m68k.org>
# DP: Patch author: Richard Zidlicky <rz@linux-m68k.org>
# DP: Upstream status: Debian-Specific
# DP: Status Details: Actual fix is to modify m68k binutils.
# DP: Date: 2004-08-09

Gbp-Pq: Topic m68k
Gbp-Pq: Name local-reloc.diff

22 months agolocal-dwarf2-buildfix
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
local-dwarf2-buildfix

# DP: Description: Adding empty m68k framestate.c not to build for dwarf2.
# DP: Related bugs:
# DP: Dpatch author: GOTO Masanori <gotom@debian.org>
# DP: Patch author: GOTO Masanori <gotom@debian.org>
# DP: Upstream status: Debian-Specific
# DP: Status Details: m68k uses sjlj exceptions, not dwarf2 unwind.
# DP: This patch adds empty framestate.c for m68k to avoid
# DP: dwarf2 build failure.
# DP: Date: 2003-07-19 (Update 2005-03-16 gotom)

# DP: Description: Adding empty m68k framestate.c not to build for dwarf2.
# DP: Related bugs:
# DP: Dpatch author: GOTO Masanori <gotom@debian.org>
# DP: Patch author: GOTO Masanori <gotom@debian.org>
# DP: Upstream status: Debian-Specific
# DP: Status Details: m68k uses sjlj exceptions, not dwarf2 unwind.
# DP: This patch adds empty framestate.c for m68k to avoid
# DP: dwarf2 build failure.
# DP: Date: 2003-07-19 (Update 2005-03-16 gotom)

2005-03-16  GOTO Masanori  <gotom@debian.org>

* sysdeps/m68k/unwind-pe.c: Update to fix compilation failure.

2003-07-19  GOTO Masanori  <gotom@debian.org>

* sysdeps/m68k/framestate.c: Add to fix compilation failure
with sjlj exception, suggested by Philip Blundell.

Gbp-Pq: Topic m68k
Gbp-Pq: Name local-dwarf2-buildfix.diff

22 months agolocal-no-execfn
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
local-no-execfn

AT_EXECFN is Linux specific

Gbp-Pq: Topic kfreebsd
Gbp-Pq: Name local-no-execfn.diff

22 months agolocal-getaddrinfo-freebsd-kernel
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
local-getaddrinfo-freebsd-kernel

Gbp-Pq: Topic kfreebsd
Gbp-Pq: Name local-getaddrinfo-freebsd-kernel.diff

22 months agolocal-scripts
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
local-scripts

Gbp-Pq: Topic kfreebsd
Gbp-Pq: Name local-scripts.diff

22 months agolocal-fbtl-depends
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
local-fbtl-depends

Gbp-Pq: Topic kfreebsd
Gbp-Pq: Name local-fbtl-depends.diff

22 months agolocal-fbtl
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
local-fbtl

Gbp-Pq: Topic kfreebsd
Gbp-Pq: Name local-fbtl.diff

22 months agolocal-sysdeps
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
local-sysdeps

Gbp-Pq: Topic kfreebsd
Gbp-Pq: Name local-sysdeps.diff

22 months agolocal-grantpt
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
local-grantpt

Gbp-Pq: Topic kfreebsd
Gbp-Pq: Name local-grantpt.diff

22 months agolocal-config_h_in
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
local-config_h_in

2009-05-23  Aurelien Jarno <aurelien@aurel32.net>

* config.h.in (__KFREEBSD_KERNEL_VERSION): Add.

Gbp-Pq: Topic kfreebsd
Gbp-Pq: Name local-config_h_in.patch

22 months agosubmitted-auxv
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
submitted-auxv

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

Gbp-Pq: Topic kfreebsd
Gbp-Pq: Name submitted-auxv.diff

22 months agosubmitted-waitid
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
submitted-waitid

Gbp-Pq: Topic kfreebsd
Gbp-Pq: Name submitted-waitid.diff

22 months agolocal-asin-acos-raise-invalid
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
local-asin-acos-raise-invalid

This workarounds GCC bug PR 95115 introduced in GCC 10. This is similar to
what is done in the float version.

Gbp-Pq: Topic riscv64
Gbp-Pq: Name local-asin-acos-raise-invalid.diff

22 months agounsubmitted-quiet-ldconfig
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
unsubmitted-quiet-ldconfig

Gbp-Pq: Topic i386
Gbp-Pq: Name unsubmitted-quiet-ldconfig.diff

22 months agolocal-biarch
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
local-biarch

# DP: Description: Allow ldconfig to work on i386/x86-64 biarch systems
# DP: Related bugs:
# DP: Dpatch author: Daniel Jacobowitz
# DP: Patch author: Daniel Jacobowitz
# DP: Upstream status: Debian-Specific
# DP: Status Details: based on Ubuntu change by Jeff Bailey
# DP: Date: 2005-10-13

# DP: Description: Allow ldconfig to work on i386/x86-64 biarch systems
# DP: Related bugs:
# DP: Dpatch author: Daniel Jacobowitz
# DP: Patch author: Daniel Jacobowitz
# DP: Upstream status: Debian-Specific
# DP: Status Details: based on Ubuntu change by Jeff Bailey
# DP: Date: 2005-10-13

Gbp-Pq: Topic i386
Gbp-Pq: Name local-biarch.diff

22 months agogit-tiocflush
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
git-tiocflush

Committed for 2.34

commit 36231bee7ab36d59dd121ea85b91411ae86945f3
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Mon Feb 1 19:39:48 2021 +0100

    hurd TIOCFLUSH: Cope BSD 4.1 semantic

    BSD 4.1 did not have an argument for TIOCFLUSH, BSD 4.2 added it. There
    are still a lot of applications out there that pass a NULL argument to
    TIOCFLUSH, so we should rather cope with it.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-tiocflush.diff

22 months agogit-mmap_addr
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
git-mmap_addr

commit b47b07c92d82df497ad4e3abebfdab51be5d0546
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Mon Jan 4 20:22:59 2021 +0100

    hurd: Fix mmap(!MAP_FIXED) on bogus address

    In the !MAP_FIXED case, when a bogus address is given mmap should pick up a
    valide address rather than returning EINVAL: Posix only talks about
    EINVAL for the MAP_FIXED case.

    This fixes long-running ghc processes.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-mmap_addr.diff

22 months agogit-hurd-version
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
git-hurd-version

Committed for 2.33

commit 016c64236dee6e28f09c10ba38f274aad7205f95
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Tue Dec 29 03:26:12 2020 +0100

    hurd: Accept including hurd/version.h

    We need it to get the RPC API version.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-hurd-version.diff

22 months agogit-waitid
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
git-waitid

Committed for 2.33

commit f6abd970284a06380cd9d905f43da104bd49fc95 (HEAD -> master, jolly/master)
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Mon Dec 28 23:37:04 2020 +0100

    hurd: Add WSTOPPED/WCONTINUED/WEXITED/WNOWAIT support [BZ #23091]

    The new __proc_waitid RPC now expects WEXITED to be passed, allowing to
    properly implement waitid, and thus define the missing W* macros
    (according to FreeBSD values).

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-waitid.diff

22 months agogit-mmap-EINVAL
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
git-mmap-EINVAL

Committed for 2.33

commit b74233d0092c9ee6a2faee5adb375b3151bdc99c
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sat Dec 19 18:57:47 2020 +0100

    hurd: Also turn KERN_INVALID_ADDRESS to EINVAL

    When e.g. mmap is passed an invalid address we would return
    KERN_INVALID_ADDRESS, while POSIX applications would expect EINVAL.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-mmap-EINVAL.diff

22 months agogit-siginfo_uesp
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
git-siginfo_uesp

Committed for 2.33

commit e0aec6c83374286ffac44ee1b0e628894b7102e3
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Mon Dec 21 03:15:38 2020 +0100

    hurd: Make trampoline fill siginfo ss_sp from sc_uesp

    Mach actually rather fills the uesp field, not esp.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-siginfo_uesp.diff

22 months agogit-sem-open
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
git-sem-open

Submitted for 2.33

commit 257e4e7b576d54ab943d73dcda64c9a62c15b907
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Dec 13 15:20:32 2020 +0000

    htl: Get sem_open/sem_close/sem_unlink support

    This just moves the existing nptl implementation to reuse as it is in
    htl.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-sem-open.diff

22 months agogit-sem-open-init
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
git-sem-open-init

Submitted for 2.33

commit e453b54b02204e0bc4a36a865ecc0c82058f4f9d
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Dec 13 15:18:16 2020 +0000

    pthread: Move semaphore initialization for open to semaphoreP.h

    This allows to easily reuse all of the sem_open/sem_close/sem_unlink
    implementations in the various ports.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-sem-open-init.diff

22 months agogit-sem-pshared
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
git-sem-pshared

Commited for 2.33

commit 4702ba8c1726ef5b692fbca1255b632b8e81e8c7
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Dec 13 15:14:40 2020 +0000

    htl: Add pshared semaphore support

    The implementation is extremely similar to the nptl implementation, but
    with slight differences in the futex interface. This fixes some of BZ
    25521.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-sem-pshared.diff

22 months agogit-SEM_VALUE_MAX
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
git-SEM_VALUE_MAX

Commited in 2.32

commit 5e77ec7c6e64d67f048caa5d4dd81f10fca3dffc
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Feb 9 22:44:08 2020 +0000

    htl: Add support for semaphore maximum value

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-SEM_VALUE_MAX.diff

22 months agogit-libpthread-testcancel
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
git-libpthread-testcancel

Commited in 2.32

commit 59b7fe99f2593682ba779fe0faa8f1156d48d087
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Feb 9 22:23:52 2020 +0000

    htl: Add support for libc cancellation points

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-libpthread-testcancel.diff

22 months agogit-pthread_get_cleanup_stack
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
git-pthread_get_cleanup_stack

Commited in 2.32

commit f1cd3407e4c6767e0bbe2ca122b713c6581b8d67
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Feb 9 23:13:24 2020 +0000

    htl: clean __pthread_get_cleanup_stack hidden proto

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-pthread_get_cleanup_stack.diff

22 months agogit-libc-open
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
git-libc-open

Commited for 2.33

commit a6c9f54a3471a527ff502f26e3a1c1b03ab39d6e
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Dec 13 13:29:25 2020 +0000

    hurd: Add __libc_open and __libc_close

    Needed by libpthread for sem_open and sem_close

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-libc-open.diff

22 months agogit-futex-internal
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
git-futex-internal

Commited for 2.33

commit 65e43d5ad22ff527fd534679d357245f515bf308
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Dec 13 11:06:27 2020 +0000

    htl: Add futex-internal.h

    That provides futex_supports_pshared

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-futex-internal.diff

22 months agogit-lll-private
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
git-lll-private

Commited for 2.33

commit bcbabb9e6c14db9f35ed83862e88a6d986fc7a69
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Dec 13 13:31:22 2020 +0000

    hurd: Add LLL_PRIVATE and LLL_SHARED

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-lll-private.diff

22 months agogit-lll-wait-intr
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
git-lll-wait-intr

Commited for 2.33

commit 1c3c8e342a3973fc5e1ddcba7d3e9b68dfe9a25b
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Dec 13 11:01:52 2020 +0000

    hurd: Add __lll_abstimed_wait_intr

    For semaphores, we need an interruptible version of low-level locks.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-lll-wait-intr.diff

22 months agogit-ld-library-path-checks
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
git-ld-library-path-checks

Commited for 2.33

commit 3dbbd2ff92b1a0a2465461ee049e3e2813b73fa4
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Fri Nov 13 19:37:41 2020 +0000

    Add {,sysdep-}ld-library-path make variable

    On GNU/Hurd we not only need $(common-objpfx) in LD_LIBRARY_PATH when loading
    dynamic objects, but also $(common-objpfx)/mach and $(common-objpfx)/hurd. This
    adds an ld-library-path variable to be used as LD_LIBRARY_PATH basis in
    Makefiles, and a sysdep-ld-library-path variable for sysdeps to add some
    more paths, here mach/ and hurd/.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-ld-library-path-checks.diff

22 months agogit-lll-ptr
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
git-lll-ptr

Commited for 2.33

commit 3934901a7444329d18b5edc6cb0d91fed35aeaaf
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Dec 13 10:37:24 2020 +0000

    hurd: make lll_* take a variable instead of a ptr

    To be coherent with other ports, let's make lll_* take a variable, and
    rename those that keep taking a ptr into __lll_*.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-lll-ptr.diff

22 months agosysvshm-lll
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
sysvshm-lll

To be folded into tg-sysvshm.diff once upgraded to 2.33

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name sysvshm-lll.diff

22 months agogit-lll-initializer
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
git-lll-initializer

Commited for 2.33

commit 059e60887b3244eb7ec0d764defe515fd525f513
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Dec 13 10:16:55 2020 +0000

    hurd: Rename LLL_INITIALIZER to LLL_LOCK_INITIALIZER

    To get coherent with other ports.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-lll-initializer.diff

22 months agogit-libpthread_plt
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
git-libpthread_plt

Commited for 2.33

commit 7c331116971d38e57703af4097ed13ab6bef91d0
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Thu Dec 3 12:21:47 2020 +0100

    htl: Add hidden def for __pthread_create/detach

    to avoid a PLT.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-libpthread_plt.diff

22 months agogit-cthreads-symbols
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
git-cthreads-symbols

Commited for 2.33

commit f9ba73d056721ff61160a46438fd8ebf11d9aeee
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Thu Dec 3 10:48:27 2020 +0100

    htl: Add missing symbols

    hurd/hurdsig.c needs to detect whether __pthread_detach and
    __pthread_create are available, so they need to be exposed.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-cthreads-symbols.diff

22 months agogit-cthreads
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
git-cthreads

Commited for 2.33

commit 9446e02b0d2e94da4ebe9df6e2c5d23adc0f1d7d
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sat Nov 14 23:35:35 2020 +0000

    hurd: Remove some remnants of cthreads

    Libc has actually been using mach's lock-internal.h mutex for a long
    time already.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-cthreads.diff

22 months agogit-libpthread-nodelete
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
git-libpthread-nodelete

Commited for 2.32

commit e2b9d562d1e024fda6d10f0f272521bf20fa664f
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Jun 14 15:47:14 2020 +0000

    htl: initialize first and prevent from unloading

    libc does not have codepaths for reverting the load of a libpthread.

    * htl/Makefile (LDFLAGS-pthread.so): Pass -z nodelete -z initfirst to
    linker.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-libpthread-nodelete.diff

22 months agogit-libpthread_syms
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
git-libpthread_syms

commited for 2.32

commit bc9cf8fbe8eafe375719ad869ab81609cfc3529c
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Wed Jun 10 20:03:52 2020 +0000

    htl: Fix linking static tests by factorizing the symbols list

    libpthread_syms.a will contain the symbols that libc tries to get from
    libpthread, to be used by the system, but also by tests.

    * htl/libpthread.a, htl/libpthread_pic.a: Link libpthread_syms.a and Move EXTERN
    references to...
    * htl/libpthread_syms.a: ... new file. Add missing
    __pthread_enable_asynccancel reference.
    * htl/Makefile: Install libpthread_syms.a and link it into static tests.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-libpthread_syms.diff

22 months agogit-pthread_link_tests
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
git-pthread_link_tests

Committed for 2.32

commit dd7a8ad7ba25cb2269b306758c7d97d4a95527e6
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Mon Jun 8 13:32:08 2020 +0200

    pthread: Move back linking rules to nptl and htl

    d6d74ec16 ('htl: Enable more tests') moved the linking rules from
    nptl/Makefile and htl/Makefile to the shared sysdeps/pthread/Makefile.  But
    e.g. on powerpc some tests are added in sysdeps/powerpc/Makefile, which is
    included *after* sysdeps/pthread/Makefile, and thus the tests don't get
    affected by the rules and fail to link.  For now let's just copy over the
    set of rules in both nptl/Makefile and htl/Makefile.

    * sysdeps/pthread/Makefile: Move libpthread linking rules to...
    * htl/Makefile: ... here and...
    * nptl/Makefile: ... there.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-pthread_link_tests.diff

22 months agogit-WAIT
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
git-WAIT

Committed for 2.33

commit c57fe5462ba5eb7331a223bbb7abd8ae273747c1
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Mon Nov 23 00:24:03 2020 +0000

    hurd S_msg_report_wait: Fix reporting ports

    This fixes the parameter order of MSG_EXAMINE, thus fixing the detection
    of e.g. fd ports for nicer output in ps WAIT output.

commit dba88fb3ed3e70d2ad797f447a2a894b0891a5d7
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Mon Nov 23 00:25:26 2020 +0000

    hurd S_msg_report_wait: Fix detecting fd ports

    _hurd_init_dtable stays set to non-NULL, so we have to run through both
    _hurd_init_dtable and _hurd_dtable.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-WAIT.diff

22 months agogit-raise
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
git-raise

Committed in 2.32

commit 785ec62dbd37b0b236c9a7fcc0ac71a2aeb472de
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Jun 7 01:35:18 2020 +0200

    hurd: Reject raising invalid signals

    * hurd/hurd-raise.c (_hurd_raise_signal): Return  EINVAL if signo <= 0
    or signo >= NSI.

commit fab94894d5c5b25d24010f823515fb53822d6623
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Jun 7 01:55:54 2020 +0200

    hurd: Fix hang in _hurd_raise_signal from pthread_kill

    When ss is not NULL, it is assumed to be locked.

    * hurd/hurd-raise.c (_hurd_raise_signal): Unlock before returning an
    error if ss is not NULL.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-raise.diff

22 months agogit-clock-cputime
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
git-clock-cputime

Committed for glibc 2.33

commit 5a619c1f46c49dbb9706beeb74f4a466696394fc
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Oct 11 13:59:01 2020 +0000

    hurd: support clock_gettime(CLOCK_PROCESS/THREAD_CPUTIME_ID)

    * sysdeps/mach/clock_gettime.c (__clock_gettime): Add support for
    CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-clock-cputime.diff

22 months agogit-bsd4.3-ioctls
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
git-bsd4.3-ioctls

Committed for glibc 2.33

commit cd41ffeb0bbca641a02e1030e13ab317ce7d645c
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Thu Aug 27 13:35:58 2020 +0200

    hurd: define BSD 4.3 ioctls only under __USE_MISC

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-bsd4.3-ioctls.diff

22 months agogit-pthread_atfork-hidden
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
git-pthread_atfork-hidden

Committed for glibc 2.32

commit 15e995a8fb94a00d76da03756579ae6ff645b161
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Jun 7 23:29:44 2020 +0000

    htl: Fix registration of atfork handlers in modules

    We really need modules to use their own pthread_atfork so that
    __dso_handle properly identifies them.

    * sysdeps/htl/pt-atfork.c (__pthread_atfork): Hide function.
    (pthread_atfork): Hide alias.
    * sysdeps/htl/old_pt-atfork.c (pthread_atfork): Rename macro to
    __pthread_atfork to fix building the compatibility alias.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-pthread_atfork-hidden.diff

22 months agogit-sched_sets
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
git-sched_sets

Committed for glibc 2.33

commit ce625044886da0a6e348f4def83f746e28587a0c
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Wed Aug 5 23:46:14 2020 +0200

    hurd: Implement basic sched_get/setscheduler

    * sysdeps/mach/hurd/sched_gets.c: New file.
    * sysdeps/mach/hurd/sched_sets.c: New file.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-sched_sets.diff

22 months agogit-fix-longjmp
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
git-fix-longjmp

Committed for glibc 2.32

commit 115bcf921a52005b89ff2859ccae4a8fc6d6deed
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sat Jul 18 15:08:03 2020 +0200

    hurd: Fix longjmp early in initialization

    When e.g. an LD_PRELOAD fails, _dl_signal_exception/error longjmps, but TLS
    is not initialized yet, let along signal state.  We thus mustn't look at
    them within __longjmp.

    * sysdeps/mach/hurd/i386/____longjmp_chk.S,__longjmp.S: Check for
    initialized value of %gs, and that sigstate is non-NULL.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-fix-longjmp.diff

22 months agolocal-tls-ie-align
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
local-tls-ie-align

The elf/tst-tls-ie* tests try to load modules with 8-byte-aligned TLS data that
will get allocated in the static TLS area, so we need at least 8-byte alignment.
8-byte alignment requirement is not that uncommon on i386 anyway.

And upstream happens to have 32-byte alignment from
0c76fc3c2b34 ('Linux: Perform rseq registration at C startup and thread
creation') which just rounds up max_align to 32 anyway.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name local-tls-ie-align.diff

22 months agogit-strtol-test
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
git-strtol-test

Committed for glibc 2.32

commit 183083c35972611e7786c7ee0c96d7da571631ed
Author: Carlos O'Donell <carlos@redhat.com>
Date:   Wed Apr 29 16:31:29 2020 -0400

    support: Set errno before testing it.

    In test-conainer we should set errno to 0 before calling strtol,
    and check after with TEST_COMPARE.

    In tst-support_capture_subprocess we should set errno to 0 before
    checking it after the call to strtol.

    Tested on x86_64.

Reviewed-by: DJ Delorie <dj@redhat.com>
Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-strtol-test.diff

22 months agogit-intr-msg-unwind
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
git-intr-msg-unwind

Committed for glibc 2.32

commit 337a7b74faed2c8daf8c91cbb3038dc4984f3207
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Jun 7 17:51:21 2020 +0000

    hurd: Fix unwinding over interruptible RPC

    * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Set CFA register to
    %ecx while %esp is altered.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-intr-msg-unwind.diff

22 months agogit-longjmp-onstack
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
git-longjmp-onstack

Committed for glibc 2.32

commit 02937d825a71636c13b3f4229e5d6c9e54e327d5
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sat Jun 6 20:21:22 2020 +0200

    hurd: fix clearing SS_ONSTACK when longjmp-ing from sighandler

    * sysdeps/i386/htl/Makefile: New file.
    * sysdeps/i386/htl/tcb-offsets.sym: New file.
    * sysdeps/mach/hurd/i386/Makefile [setjmp] (gen-as-const-headers): Add
    signal-defines.sym.
    * sysdeps/mach/hurd/i386/____longjmp_chk.S: Include tcb-offsets.h.
    (____longjmp_chk): Harmonize with i386's __longjmp. Clear SS_ONSTACK
    when jumping off the alternate stack.
    * sysdeps/mach/hurd/i386/__longjmp.S: New file.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-longjmp-onstack.diff

22 months agogit-holes
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
git-holes

Committed for glibc 2.32

commit 3f6e4fc4542b5b881906bf2f83eb4b8359b0dcd4
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Thu Jun 4 20:52:19 2020 +0200

    support: Fix detecting hole support on >2KB-block filesystems

    When detecting hole support, we write at 16MiB, and filesystems will
    typically need two levels of data to record that. On filesystems with
    8KB block, the two indirection blocks will require a total of 16KB
    overhead, thus 32 512-byte sectors.

    Spotted on GNU/Hurd with a 4KB blocks filesystem, but also happens on Linux
    with 4KB or 8KB blocks filesystems.

    * support/support_descriptor_supports_holes.c
    (support_descriptor_supports_holes): Set block_headroom to 32.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-holes.diff

22 months agogit-cond_destroy
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
git-cond_destroy

Committed for glibc 2.32

commit faae4b2bdd692d929037c80c3315f716f02f3b00
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Feb 9 19:19:25 2020 +0000

    htl: make pthread_cond_destroy return EBUSY on waiters

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-cond_destroy.diff

22 months agogit-fexecve
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
git-fexecve

Committed for glibc 2.32

commit 6544999083437dabdadcec18185a1b2169b9637a
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Thu May 28 23:28:07 2020 +0000

    hurd: Fix fexecve

    * sysdeps/mach/hurd/fexecve.c (fexecve): Re-lookup fd with O_EXEC before
    calling _hurd_exec_paths.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-fexecve.diff

22 months agogit-pselect
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
git-pselect

Committed for glibc 2.32

commit f9011787497a276f84ef79ae233992692a626dc7
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Wed May 27 23:42:24 2020 +0000

    hurd: Fix pselect atomicity

    In case the signal arrives before the __mach_msg call, we need to catch
    between the sigprocmask call and the __mach_msg call.  Let's just reuse
    the support for sigsuspend to make the signal send a message that
    our __mach_msg call will just receive.

    * hurd/hurdselect.c (_hurd_select): Add sigport and ss variables. When
    sigmask is not NULL, create a sigport port and register as
    ss->suspended.  Add it to the portset.  When we receive a message on it,
    set error to EINTR.  Clean up sigport and portset appropriately.

    * hurd/hurdsig.c (wake_sigsuspend): Note that pselect also uses it.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-pselect.diff

22 months agogit-tst-udp
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
git-tst-udp

Committed for glibc 2.32

commit cbfc16122e9c4948b3a17224aeb5f8b70f02417d
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sat May 16 19:29:50 2020 +0200

    sunrpc/tst-udp-*: Fix timeout value

    Following on 00c3da43a ('sunrpc/tst-udp-timeout: Fix timeout value').

    While e.g. 2.5 timeout can be represented exactly with doubles, time stamps
    may not be represented that exactly, and thus with coarse-grain clocks (e.g.
    10ms) we may end up with 2.499-ish values due to rounding errors.

    * sunrpc/tst-udp-timeout.c (test_udp_server): Add more timeout slack.
    * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-tst-udp.diff

22 months agogit-ss_init
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
git-ss_init

Committed for glibc 2.32

commit 61416e19218605a54e94edd9740bbe9d2785af6d
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Mon May 11 01:30:29 2020 +0200

    hurd: Add missing sigstate members initialization

    * hurd/hurdsig.c (_hurd_thread_sigstate): Initialize
      critical_section_lock, active_resources, cancel, and cancel_hook fields.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-ss_init.diff

22 months agogit-trunc-times
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
git-trunc-times

Committed for glibc 2.32

commit e095db0bc6c53a0b7ac3d915c5feb7678049dc33
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Mar 29 19:42:55 2020 +0200

    hurd: Make O_TRUNC update mtime/ctime

    * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Call
    __file_utimens after __file_set_size.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-trunc-times.diff

22 months agogit-pthread_self
GNU Libc Maintainers [Sun, 28 Jan 2024 22:58:14 +0000 (23:58 +0100)]
git-pthread_self

Committed for glibc 2.32

commit ca843defbcbd2dc95b9342189e5dc430e9bcb743
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sat Feb 15 14:31:50 2020 +0000

    htl: Only check pthread_self coherency when DEBUG is set

    htl has been widely tested for a long time now with this coherency
    checked successfully.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-pthread_self.diff