aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-05-10Use custom x86 feature selection in libmfw/libm-noprivate-2.27Florian Weimer
2018-05-10Avoid use GLIBC_PRIVATE symbols in the implementation of nan* functionsFlorian Weimer
2018-05-10Use __errno_location in libmFlorian Weimer
2018-04-28Add tst-sigaction.c to test BZ #23069Aurelien Jarno
This simple test uses sigaction to define a signal handler. It then uses sigaction again to fetch the information about the same signal handler, and check that they are consistent. This is enough to detect mismatches between struct kernel_sigaction and the kernel version of struct sigaction, like in BZ #23069. Changelog: * signal/tst-sigaction.c: New file to test BZ #23069. * signal/Makefile (tests): Fix indentation. Add tst-sigaction. (cherry picked from commit 7a6f74787132aca8e3809cae8d9e7bc7bfd55ce1)
2018-04-28RISC-V: fix struct kernel_sigaction to match the kernel version [BZ #23069]Aurelien Jarno
The RISC-V kernel doesn't define SA_RESTORER, hence the kernel version of struct sigaction doesn't have the sa_restorer field. The default kernel_sigaction.h therefore can't be used. This patch adds a RISC-V specific version of kernel_sigaction.h to fix the issue. This fixes for example the libnih testsuite. Note that this patch is not needed in master as the bug has been fixed by commit b4a5d26d8835 ("linux: Consolidate sigaction implementation").
2018-03-29Linux i386: tst-bz21269 triggers SIGBUS on some kernelsFlorian Weimer
In addition to SIGSEGV and SIGILL, SIGBUS is also a possible signal generated by the kernel. (cherry picked from commit 4d76d3e59d31aa690f148fc0c95cc0c581aed3e8)
2018-03-28Fix i386 memmove issue (bug 22644).Andrew Senkevich
[BZ #22644] * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed branch conditions. * string/test-memmove.c (do_test2): New testcase. (cherry picked from commit cd66c0e584c6d692bc8347b5e72723d02b8a8ada)
2018-03-19Update ChangeLog for BZ 22884 - riscv fmax/fminDJ Delorie
(cherry picked from commit 7e04eb2932d3126c721ee2bc0d664a5bbea2f41f)
2018-03-19RISC-V: fmax/fmin: Handle signalling NaNs correctly.Andrew Waterman
RISC-V's fmax(sNAN,4) returns 4 but glibc expects it to return qNAN. * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly. * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise. * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise. * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise. (cherry picked from commit fdcc625376505eacb1125a6aeba57501407a30ec)
2018-03-19RISC-V: Do not initialize $gp in TLS macros.DJ Delorie
RISC-V TLS doesn't require GP to be initialized, and doing so breaks TLS in a shared object. (cherry picked from commit 8090720a87e42fddc31396f6126112d4b8014d8e)
2018-03-16NEWS: Add entries for bugs: 22848, 22932, 22937, 22963.Rafal Luzynski
Alternative (nominative/genitive) month names have been added to the Catalan and Czech locale data and the abbreviated alternative names to Catalan and Greek. (cherry picked from commit c553cd6f7e939ae4ef62b52b3c55fbe76dddecee)
2018-03-16cs_CZ locale: Add alternative month names (bug 22963).Rafal Luzynski
Add alternative month names, primary month names are genitive now. [BZ #22963] * localedata/locales/cs_CZ (mon): Rename to... (alt_mon): This. (mon): Import from CLDR (genitive case). Reviewed-by: Carlos O'Donell <carlos@redhat.com> (cherry picked from commit 807fee29d2c967e24e3fe05e2182ba53e96e9178)
2018-03-16Greek (el_CY, el_GR) locales: Introduce ab_alt_mon (bug 22937).Rafal Luzynski
As spotted by GNOME translation team, Greek language has the actually visible difference between the abbreviated nominative and the abbreviated genitive case for some month names. Examples: May: abbreviated nominative: "Μάι" -> abbreviated genitive: "Μαΐ" July: abbreviated nominative: "Ιούν" -> abbreviated genitive: "Ιουλ" and more month names with similar differences. Original discussion: https://bugzilla.gnome.org/show_bug.cgi?id=793645#c21 [BZ #22937] * localedata/locales/el_CY (abmon): Rename to... (ab_alt_mon): This. (abmon): Import from CLDR (abbreviated genitive case). * localedata/locales/el_GR (abmon): Rename to... (ab_alt_mon): This. (abmon): Import from CLDR (abbreviated genitive case). Reviewed-by: Carlos O'Donell <carlos@redhat.com> (cherry picked from commit e7155a28ef61f240da156e1cea410b61afca14ad)
2018-03-16lt_LT locale: Update abbreviated month names (bug 22932).Rafal Luzynski
A GNOME translator asked to use the same abbreviated month names as provided by CLDR. This sounds reasonable. See the discussion: https://bugzilla.gnome.org/show_bug.cgi?id=793645#c27 [BZ #22932] * localedata/locales/lt_LT (abmon): Synchronize with CLDR. Reviewed-by: Carlos O'Donell <carlos@redhat.com> (cherry picked from commit 71d7b121686f6d91cd5a630dcfb72197b5d8284a)
2018-03-16ca_ES locale: Update LC_TIME (bug 22848).Robert Buj
Add/fix alternative month names, long & short formats, am_pm, abday settings, and improve indentation for Catalan. [BZ #22848] * localedata/locales/ca_ES (abmon): Rename to... (ab_alt_mon): This, then synchronize with CLDR (nominative case). (mon): Rename to... (alt_mon): This. (abmon): Import from CLDR (genitive case, month names preceded by "de" or "d’"). (mon): Likewise. (abday): Synchronize with CLDR. (d_t_fmt): Likewise. (d_fmt): Likewise. (am_pm): Likewise. (LC_TIME): Improve indentation. (LC_TELEPHONE): Likewise. (LC_NAME): Likewise. (LC_ADDRESS): Likewise. Reviewed-by: Carlos O'Donell <carlos@redhat.com> (cherry picked from commit a00bffe8b531693d3b26c1e87afe4b9eac84474c)
2018-03-12Update translations from the Translation ProjectDmitry V. Levin
* po/pt_BR.po: Update translations. (cherry picked from commit 778f1974863d63e858b6d0105e41d6f0c30732d3)
2018-03-12i386: Fix i386 sigaction sa_restorer initialization (BZ#21269)Adhemerval Zanella
This patch fixes the i386 sa_restorer field initialization for sigaction syscall for kernel with vDSO. As described in bug report, i386 Linux (and compat on x86_64) interprets SA_RESTORER clear with nonzero sa_restorer as a request for stack switching if the SS segment is 'funny'. This means that anything that tries to mix glibc's signal handling with segmentation (for instance through modify_ldt syscall) is randomly broken depending on what values lands in sa_restorer. The testcase added is based on Linux test tools/testing/selftests/x86/ldt_gdt.c, more specifically in do_multicpu_tests function. The main changes are: - C11 atomics instead of plain access. - Remove x86_64 support which simplifies the syscall handling and fallbacks. - Replicate only the test required to trigger the issue. Checked on i686-linux-gnu. [BZ #21269] * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269. * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear sa_restorer for vDSO case. * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file. (cherry picked from commit 68448be208ee06e76665918b37b0a57e3e00c8b4)
2018-03-12Fix multiple definitions of __nss_*_database (bug 22918)Andreas Schwab
(cherry picked from commit eaf6753f8aac33a36deb98c1031d1bad7b593d2d)
2018-03-12[BZ #22342] Fix netgroup cache keys.DJ Delorie
Unlike other nscd caches, the netgroup cache contains two types of records - those for "iterate through a netgroup" (i.e. setnetgrent()) and those for "is this user in this netgroup" (i.e. innetgr()), i.e. full and partial records. The timeout code assumes these records have the same key for the group name, so that the collection of records that is "this netgroup" can be expired as a unit. However, the keys are not the same, as the in-netgroup key is generated by nscd rather than being passed to it from elsewhere, and is generated without the trailing NUL. All other keys have the trailing NUL, and as noted in the linked BZ, debug statements confirm that two keys for the same netgroup are added to the cache with two different lengths. The result of this is that as records in the cache expire, the purge code only cleans out one of the two types of entries, resulting in stale, possibly incorrect, and possibly inconsistent cache data. The patch simply includes the existing NUL in the computation for the key length ('key' points to the char after the NUL, and 'group' to the first char of the group, so 'key-group' includes the first char to the NUL, inclusive). [BZ #22342] * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in key value. Reviewed-by: Carlos O'Donell <carlos@redhat.com> (cherry picked from commit 1c81d55fc4b07b51adf68558ba74ce975153e580)
2018-03-12linux/powerpc: sync sys/ptrace.h with Linux 4.15 [BZ #22433, #22807]Dmitry V. Levin
Tested with strace. * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS, PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64, PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS, PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK. (cherry picked from commit f5f473a9d0e8fdbede858fa1ef0d01d12142367b)
2018-03-12powerpc: Undefine Linux ptrace macros that conflict with __ptrace_requestTulio Magno Quites Machado Filho
Linux ptrace headers define macros whose tokens conflict with the constants of enum __ptrace_request causing build errors when asm/ptrace.h or linux/ptrace.h are included before sys/ptrace.h. * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux macros used in __ptrace_request. Signed-off-by: Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com> (cherry picked from commit 398c6fddafcee2dc4c2b2574417a2d0cfccaeec1)
2018-03-12Add missing “reorder-end” in LC_COLLATE of et_EE [BZ #22517]Mike FABIAN
[BZ #22517] * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end” (cherry picked from commit 7ec5f9465e732e668d0dc94ac078ba68056d6d0a)
2018-03-12Fix a typo in a comment.Rical Jasan
* io/fcntl.h: Fix a typo in a comment. (cherry picked from commit 0d217f4082473e5fdca87831df928dd525a02f72)
2018-03-12manual: Update the _ISOC99_SOURCE description.Rical Jasan
The current description refers to ISO C99 not being widely adopted, which it is believed to be now. * manual/creature.texi (_ISOC99_SOURCE): Update the dated description. (cherry picked from commit e8d190b9ed81a1b342f0969bc2b5505403183bce)
2018-03-12manual: Document missing feature test macros.Rical Jasan
Several feature test macros are documented in features.h but absent in the manual, and some documented macros accept undocumented values. This commit updates the manual to mention all the accepted macros, along with any values that hold special meaning. * manual/creature.texi (_POSIX_C_SOURCE): Document special values of 199606L, 200112L, and 200809L. (_XOPEN_SOURCE): Document special values of 600 and 700. (_ISOC11_SOURCE): Document macro. (_ATFILE_SOURCE): Likewise. (_FORTIFY_SOURCE): Likewise. (cherry picked from commit 6a3962c4a408e8cbc305d2433711196107374e89) (cherry picked from commit da81ae645d8ee89052f109c814a68a9489f562e6)
2018-03-12NEWS: add entries for bugs 22919 and 22926Dmitry V. Levin
2018-03-09sparc32: Add nop before __startcontext to stop unwinding [BZ #22919]Aurelien Jarno
On sparc32 tst-makecontext fails, as backtrace called within a context created by makecontext to yield infinite backtrace. Fix that the same way than nios2 by adding a nop just before __startcontext. This is needed as otherwise FDE lookup just repeatedly finds __setcontext's FDE in an infinite loop, due to the convention of using 'address - 1' for FDE lookup. Changelog: [BZ #22919] * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext): Add nop before __startcontext, add explaining comments. (cherry picked from commit 9aa5c222b9e0409143410a02b6364a3b25dbf028)
2018-03-08powerpc: Fix TLE build for SPE (BZ #22926)Adhemerval Zanella
Some SPE opcodes clashes with some recent PowerISA opcodes and until recently gas did not complain about it. However binutils recently changed it and now VLE configured gas does not support to assembler some instruction that might class with VLE (HTM for instance). It also does not help that glibc build hardware lock elision support as default (regardless of assembler support). Although runtime will not actually enables TLE on SPE hardware (since kernel will not advertise it), I see little advantage on adding HTM support on SPE built glibc. SPE uses an incompatible ABI which does not allow share the same build with default powerpc and HTM code slows down SPE without any benefict. This patch fixes it by only building HTM when SPE configuration is not used. Checked with a powerpc-linux-gnuspe build. I also did some sniff tests on a e500 hardware without any issue. [BZ #22926] * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define empty for __SPE__. * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise. * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision): Do not build hardware transactional code for __SPE__. * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c (__lll_trylock_elision): Likewise. * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c (__lll_unlock_elision): Likewise. Cherry-pick from e921c89e01389161c036ec09112da6e18aeaa688.
2018-02-19manual: Improve documentation of get_current_dir_name. [BZ #6889]Rical Jasan
This is a minor rewording to clarify the behaviour of get_current_dir_name. Additionally, the @vindex is moved above the @deftypefun so that following links give a better result with regard to context. [BZ #6889] * manual/filesys.texi (get_current_dir_name): Clarify behaviour. (cherry picked from commit 7d15ef84f50a80cb170f8ce3457010f59e221cb8)
2018-02-19manual: Fix a syntax error.Rical Jasan
The opening parenthesis for function arguments in an @deftypefun need to be separated from the function name. This isn't just a matter of the GNU coding style---it causes the "(void" (in this case) to be rendered as a part of the function name, causing a visual defect, and also results in a warning to the following effect during `make pdf': Warning: unbalanced parentheses in @def...) * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun syntax. (cherry picked from commit 16efad5171ac1ac2c8728405f2703045f08c494b)
2018-02-19manual: Fix Texinfo warnings about improper node names.Rical Jasan
A number of cross-references to the GCC info manual cause Texinfo warnings; e.g.: ./creature.texi:11: warning: @xref node name should not contain `.' This is due to "gcc.info" being used in the INFO-FILE-NAME (fourth) argument. Changing it to "gcc" removes these warnings. (Manually confirmed equivalent behaviour for make info, html, and pdf.) * manual/creature.texi: Convert references to gcc.info to gcc. * manual/stdio.texi: Likewise. * manual/string.texi: Likewise. (cherry picked from commit 1f6676d7da1b7c864e9a5d59fe9162a88bd21952)
2018-02-19Fix posix/tst-glob_lstat_compat on alpha [BZ #22818]Aurelien Jarno
The tst-glob_lstat_compat test needs to run tests on the previous version of glob. On alpha, there are three versions of glob, GLIBC_2.0, GLIBC_2.1 and GLIBC_2.27, while on other architectures there are only the GLIBC_2.0 and GLIBC_2.27 version. Therefore on alpha the previous version is GLIBC_2.1 and not GLIBC_2.0. Changelog: [BZ #22818] * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access the GLIBC_2.1 version. (cherry picked from commit f8d79582896c52cc2b50bdd030a3ec27ef23b587)
2018-02-19time: Reference CLOCKS_PER_SEC in clock comment [BZ #22735]Sean McKean
(cherry picked from commit 09e56b9e18f987105e39768f907db800e9330930)
2018-02-19linux/aarch64: sync sys/ptrace.h with Linux 4.15 [BZ #22433]Dmitry V. Levin
Remove compat-specific constants that were never exported by kernel headers under these names. Before linux commit v3.7-rc1~16^2~1 they were exported with COMPAT_ prefix, and since that commit they are not exported at all. * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request): Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS, and PTRACE_SETHBPREGS. (cherry picked from commit 2fd4bbaa1446f1be700e10c526cf585a796c4991)
2018-02-19NEWS: add an entry for bug 22827Dmitry V. Levin
2018-02-14Update SH libm-tests-ulpsAdhemerval Zanella
* sysdeps/sh/libm-test-ulps: Update. Signed-off-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
2018-02-09[RISC-V] Fix parsing flags in ELF64 files.DJ Delorie
When ldconfig reads Elf64 files to determine the ABI, it used the Elf32 type, so read the wrong location, and stored the wrong ABI type in the cache, making the cache useless. This patch uses an Elf64 type for Elf64 objects instead. Note that pre-patch caches might need to be manually removed and regenerated to get the correct ABIs stored. [BZ #22827] * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use 64-bit ELF type for 64-bit ELF objects. (cherry picked from commit 6a1ff640dcec04905d8518983ad6252d38b7a733)
2018-02-07Linux: use reserved name __key in pkey_get [BZ #22797]Igor Gnatenko
_key is not reserved name and we should avoid using that. It seems that it was simple typo when pkey_* was implemented. (cherry picked from commit 388ff7bd0d57d7061fdd39a2f26f65687e8058da)
2018-02-06Add a missing ChangeLog item in commit 371b220f620H.J. Lu
(cherry picked from commit 658050164df9bce9ef8f2ccb1b74ba9ee2b2f4af)
2018-02-06NEWS: add an entry for bug 22638Dmitry V. Levin
2018-02-06sparc: Check PIC instead of SHARED in start.S [BZ #22638]H.J. Lu
Since start.o may be compiled as PIC, we should check PIC instead of SHARED. [BZ #22638] * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of SHARED. * sysdeps/sparc/sparc64/start.S (_start): Likewise. (cherry picked from commit 371b220f6208968d5f4bffc9f66bf885930a42a5)
2018-02-06Record CVE-2018-6551 in NEWS and ChangeLog [BZ #22774]Florian Weimer
(cherry picked from commit 71aa429b029fdb6f9e65d44050388b51eca460d6)
2018-02-01Update for 2.27 releaseglibc-2.27Dmitry V. Levin
2018-02-01Fix ChangeLog formattingDmitry V. Levin
2018-02-01NEWS: add the list of bugs fixed in 2.27Dmitry V. Levin
2018-02-01Record CVE-2018-6485 in ChangeLog and NEWS [BZ #22343]Florian Weimer
2018-02-01stdlib: Fixing test-*atexit*-race tests on ia64Adhemerval Zanella
These tests require a new thread stack size set to a value (0x20000) lower than the architecture minimum (0x30000). Set the stack size to PTHREAD_STACK_MIN in this case. Checked on ia64-linux-gnu. * stdlib/test-atexit-race-common.c (do_test): Check stack size against PTHREAD_STACK_MIN.
2018-02-01Update contributions in the manualDmitry V. Levin
* manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer): New entries. (Rafal Luzynski, Andreas Schwab): Update.
2018-02-01NEWS: List the languages which use the alternative months.Rafal Luzynski
[BZ #10871] * NEWS: List the languages which actually use the alternative months feature in this release. Also explain that "alt_mon" and "ab_alt_mon" are optional.
2018-02-01crypt: Fix badsalttest test (Bug 22765)Il'ya Malakhov
The value of 'cd.initialized' is left uninitialized before the first invocation of 'crypt_r ()' in this test despite the fact that it should be set to zero according to the API. Reviewed-by: Carlos O'Donell <carlos@redhat.com>