platform/upstream/linaro-glibc.git
11 years agoUpdate ht_HT locale
Chris Leonard [Tue, 3 Sep 2013 12:51:35 +0000 (14:51 +0200)]
Update ht_HT locale

2013-09-03  Chris Leonard  <cjl@sugarlabs.org>

[BZ#15886]
* locales/ht_HT: 1.1 revision of ht_HT locale.

11 years agoAdd quz_PE locale
Chris Leonard [Tue, 3 Sep 2013 09:06:28 +0000 (11:06 +0200)]
Add quz_PE locale

2013-09-03  Chris Leonard  <cjl@sugarlabs.org>

[BZ#15887]
* locales/quz_PE: New locale for quz_PE.
* SUPPORTED: Add quz_PE.

11 years agoMark success return value as volatile to work around rescheduling
Siddhesh Poyarekar [Tue, 3 Sep 2013 03:59:01 +0000 (09:29 +0530)]
Mark success return value as volatile to work around rescheduling

Resolves #15921

The test case nptl/tst-cleanup2 fails on s390x and power6 due to
instruction sheduling in gcc.  This was reported in gcc:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58034

but it was concluded that gcc is allowed to assume that the first
argument to sprintf is a character array - NULL not being a valid
character array.

11 years agohppa: add fanotify_mark
Mike Frysinger [Tue, 3 Sep 2013 03:13:57 +0000 (23:13 -0400)]
hppa: add fanotify_mark

Another example of all the 64bit arches getting the definition via a
common file, but the 32bit ones all adding it by themselves and hppa
was missed.

I'm not entirely sure about the usage of GLIBC_2.19 symbols here.
We'd like to backport this so people can use it, but it means we'd
be releasing a glibc-2.17/glibc-2.18 with a GLIBC_2.19 symbol in it.
But maybe it won't be a big deal since you'd only get that 2.19 ref
if you actually used the symbol ?

There hasn't been a glibc release where hppa worked w/out a bunch of
patches, so in reality there's only two distros that matter -- Gentoo
and Debian.

Reported-by: Jeroen Roovers <jer@gentoo.org>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agotst-fanotify: new simple test
Mike Frysinger [Wed, 21 Aug 2013 15:59:01 +0000 (11:59 -0400)]
tst-fanotify: new simple test

Basic test for the fanotify functions.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoFix spurious jnf underflows (bug 14155).
Joseph Myers [Mon, 2 Sep 2013 14:51:24 +0000 (14:51 +0000)]
Fix spurious jnf underflows (bug 14155).

11 years agoFix typo.
Ondřej Bílka [Mon, 2 Sep 2013 09:24:36 +0000 (11:24 +0200)]
Fix typo.

11 years agoUse sfi_* macros in armv6t2 strlen.
Roland McGrath [Fri, 30 Aug 2013 18:16:52 +0000 (11:16 -0700)]
Use sfi_* macros in armv6t2 strlen.

11 years agoMake armv6t2 strlen work in ARM mode too.
Roland McGrath [Fri, 30 Aug 2013 17:43:39 +0000 (10:43 -0700)]
Make armv6t2 strlen work in ARM mode too.

11 years agoFix then/than typos.
Ondřej Bílka [Fri, 30 Aug 2013 16:09:30 +0000 (18:09 +0200)]
Fix then/than typos.

11 years agoFix typos.
Ondřej Bílka [Fri, 30 Aug 2013 12:32:07 +0000 (14:32 +0200)]
Fix typos.

11 years agoARM: Fix clone code when built for Thumb.
Will Newton [Thu, 29 Aug 2013 19:10:26 +0000 (20:10 +0100)]
ARM: Fix clone code when built for Thumb.

The mov lr, pc instruction will lose the Thumb bit from the return address
so use blx lr instead.

ports/ChangeLog.arm:

2013-08-30  Will Newton  <will.newton@linaro.org>

[BZ #15909]
* sysdeps/unix/sysv/linux/arm/clone.S (__clone): Use blx
instead of mov lr, pc.

11 years agosysdeps/arm/armv6t2/strlen.S: strlen implementation for armv6t2.
Will Newton [Fri, 9 Aug 2013 08:36:41 +0000 (09:36 +0100)]
sysdeps/arm/armv6t2/strlen.S: strlen implementation for armv6t2.

This implementation of strlen is faster than the armv6 version for
all string lengths greater than 1 on a Cortex-A15.

ports/ChangeLog.arm:

2013-08-09  Will Newton  <will.newton@linaro.org>

* sysdeps/arm/armv6t2/strlen.S: New file.

11 years agoFix rawmemchr regression on bulldozer.
Ondřej Bílka [Fri, 30 Aug 2013 08:14:37 +0000 (10:14 +0200)]
Fix rawmemchr regression on bulldozer.

11 years agoFix up ChangeLog formatting.
Roland McGrath [Thu, 29 Aug 2013 21:15:45 +0000 (14:15 -0700)]
Fix up ChangeLog formatting.

11 years agoRemove aix specific files.
Ondřej Bílka [Thu, 29 Aug 2013 16:10:58 +0000 (18:10 +0200)]
Remove aix specific files.

11 years agoHurd: Add ESUCCESS error_t value.
Thomas Schwinge [Thu, 29 Aug 2013 10:06:14 +0000 (12:06 +0200)]
Hurd: Add ESUCCESS error_t value.

11 years agoHurd: Use __executable_start symbol instead of _start.
Samuel Thibault [Sun, 24 Jun 2007 15:45:35 +0000 (17:45 +0200)]
Hurd: Use __executable_start symbol instead of _start.

_start points to the first instruction, not to the ELF header.
__executable_start does point on the ELF header.

11 years agoSupport ELFOSABI_GNU on all GNU systems.
Thomas Schwinge [Sun, 26 May 2013 18:59:55 +0000 (20:59 +0200)]
Support ELFOSABI_GNU on all GNU systems.

11 years agoUse ELFOSABI_GNU instead of ELFOSABI_LINUX.
Thomas Schwinge [Sun, 26 May 2013 18:58:06 +0000 (20:58 +0200)]
Use ELFOSABI_GNU instead of ELFOSABI_LINUX.

11 years ago[BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
Thomas Schwinge [Thu, 23 May 2013 16:00:10 +0000 (18:00 +0200)]
[BZ #15522] strtod ("nan(N)") returning a sNaN in some cases

11 years agomath: Additional type conversion tests
Thomas Schwinge [Thu, 23 May 2013 15:31:42 +0000 (17:31 +0200)]
math: Additional type conversion tests

These have helped me find and fix type conversion issues in QEMU's MIPS
hardware emulation.  While certainly glibc is not the best place for such
tests, they're just an enhancement of tests already present.

11 years agoFix typos.
Ondřej Bílka [Thu, 29 Aug 2013 07:08:54 +0000 (09:08 +0200)]
Fix typos.

11 years agoARM: Pass dl_hwcap to IFUNC resolver.
Carlos O'Donell [Thu, 29 Aug 2013 04:17:33 +0000 (00:17 -0400)]
ARM: Pass dl_hwcap to IFUNC resolver.

For REL relocs pass dl_hwcap to the IFUNC resolver
as is required by the IFUNC API (bug 15905).

11 years agoUse __glibc_unlikely instead of __builtin_expect (..., 0)
Siddhesh Poyarekar [Wed, 28 Aug 2013 04:14:19 +0000 (09:44 +0530)]
Use __glibc_unlikely instead of __builtin_expect (..., 0)

11 years ago[BZ #15897] dlfcn: do not mark dlopen/dlclose as leaf functions
Mike Frysinger [Mon, 26 Aug 2013 04:21:26 +0000 (00:21 -0400)]
[BZ #15897] dlfcn: do not mark dlopen/dlclose as leaf functions

Since the dlopen funcs might invoke a constructor that calls a func
that is in the same compilation unit as the caller, we cannot mark
them as leaf funcs.

Similarly, dlclose might invoke a destructor that calls a func that
is in the same compilation unit as the caller.

URL: https://sourceware.org/bugzilla/show_bug.cgi?id=15897
Reportedy-by: Fabrice Bauzac <libnoon@gmail.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoClean up h_errno declaration to use __thread unconditionally.
Roland McGrath [Tue, 27 Aug 2013 18:09:33 +0000 (11:09 -0700)]
Clean up h_errno declaration to use __thread unconditionally.

11 years agoClean up _res declaration to use __thread unconditionally.
Roland McGrath [Tue, 27 Aug 2013 18:04:46 +0000 (11:04 -0700)]
Clean up _res declaration to use __thread unconditionally.

11 years agoCope without sunrpc.
Roland McGrath [Tue, 27 Aug 2013 17:59:57 +0000 (10:59 -0700)]
Cope without sunrpc.

11 years agoDon't try to use ioctl unless [FIONREAD].
Roland McGrath [Tue, 27 Aug 2013 17:50:06 +0000 (10:50 -0700)]
Don't try to use ioctl unless [FIONREAD].

11 years agoMild decrufting in resolv code.
Roland McGrath [Tue, 27 Aug 2013 17:49:36 +0000 (10:49 -0700)]
Mild decrufting in resolv code.

11 years agoTrue stub __ifreq.
Roland McGrath [Tue, 27 Aug 2013 17:42:52 +0000 (10:42 -0700)]
True stub __ifreq.

11 years agoClean up __libc_sa_len helper.
Roland McGrath [Tue, 27 Aug 2013 17:34:16 +0000 (10:34 -0700)]
Clean up __libc_sa_len helper.

11 years agoReplace generic bits/socket.h with 4.4 file.
Roland McGrath [Tue, 27 Aug 2013 17:33:15 +0000 (10:33 -0700)]
Replace generic bits/socket.h with 4.4 file.

11 years agoFlesh out 4.4 bits/socket.h with SOCK_CLOEXEC, SOCK_NONBLOCK.
Roland McGrath [Tue, 27 Aug 2013 17:32:30 +0000 (10:32 -0700)]
Flesh out 4.4 bits/socket.h with SOCK_CLOEXEC, SOCK_NONBLOCK.

11 years agoFix missing declaration of LC_CTYPE nonascii-case element
Andreas Schwab [Wed, 17 Jul 2013 08:26:58 +0000 (10:26 +0200)]
Fix missing declaration of LC_CTYPE nonascii-case element

11 years agoFix handling LC_CTYPE nonascii-case fallback in i686 SSE4.2 and SSSE3 strcasecmp...
Andreas Schwab [Mon, 29 Jul 2013 12:58:41 +0000 (14:58 +0200)]
Fix handling LC_CTYPE nonascii-case fallback in i686 SSE4.2 and SSSE3 strcasecmp/strncasecmp

11 years agoMake stub lxstat64 call xstat64, like stub lxstat calls xstat.
Roland McGrath [Mon, 26 Aug 2013 22:11:47 +0000 (15:11 -0700)]
Make stub lxstat64 call xstat64, like stub lxstat calls xstat.

11 years agoUse proper #include for xdecrypt declarations.
Roland McGrath [Mon, 26 Aug 2013 22:04:02 +0000 (15:04 -0700)]
Use proper #include for xdecrypt declarations.

11 years agoInitialize res_hconf in nscd
Siddhesh Poyarekar [Mon, 26 Aug 2013 10:12:29 +0000 (15:42 +0530)]
Initialize res_hconf in nscd

Fixes BZ #15890.

11 years agoFix dependencies for stdlib/tst-tls-atexit
Andreas Schwab [Wed, 21 Aug 2013 08:19:01 +0000 (10:19 +0200)]
Fix dependencies for stdlib/tst-tls-atexit

11 years agoFix indentation in aicache.c
Siddhesh Poyarekar [Mon, 26 Aug 2013 05:23:02 +0000 (10:53 +0530)]
Fix indentation in aicache.c

11 years agoconfigure: add missing quotes in $build_pt_chown test
Mike Frysinger [Sun, 25 Aug 2013 20:01:52 +0000 (16:01 -0400)]
configure: add missing quotes in $build_pt_chown test

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoFix cexp (NaN + i0) (bug 15532).
Joseph Myers [Fri, 23 Aug 2013 19:45:38 +0000 (19:45 +0000)]
Fix cexp (NaN + i0) (bug 15532).

11 years agoAdd Ukrainian translations.
David S. Miller [Thu, 22 Aug 2013 23:35:51 +0000 (16:35 -0700)]
Add Ukrainian translations.

* po/uk.po: Add Ukrainian translations from translation project.

11 years agoUpdate Catalan translations.
David S. Miller [Thu, 22 Aug 2013 23:30:34 +0000 (16:30 -0700)]
Update Catalan translations.

* po/ca.po: Update Catalan translation from translation project.

11 years agoMIPS: Correct the handling of reserved FCSR bits
Maciej W. Rozycki [Thu, 22 Aug 2013 16:50:20 +0000 (17:50 +0100)]
MIPS: Correct the handling of reserved FCSR bits

Reserved bits in the Floating-Point Control and Status Register (FCSR)
should not be implicitly cleared by fedisableexcept or feenableexcept,
there is no reason to.  Among these are the 8 condition codes and one of
the two bits reserved for architecture implementers (bits #22 & #21).

As to the latter, there is no reason to treat any of them as reserved
either, they should be user controllable and settable via __fpu_control
override as the user sees fit.  For example in processors implemented by
MIPS Technologies, such as the 5Kf or the 24Kf, these bits are used to
change the treatment of denormalised operands and tiny results: bit #22
is Flush Override (FO) and bit #21 is Flush to Nearest (FN).  They cause
non-IEEE-compliant behaviour, but some programs may have a use for such
modes of operation; the library should not obstruct such use just as it
does not for the architectural Flush to Zero (FS) bit (bit #24).

Therefore the change adjusts the reserved mask accordingly and also
documents the distinction between bits 22:21 and 20:18.

11 years agoAdd bug 15867 to NEWS.
Joseph Myers [Wed, 21 Aug 2013 19:58:42 +0000 (19:58 +0000)]
Add bug 15867 to NEWS.

11 years agoFix fdim handling of infinities (bug 15797).
Joseph Myers [Wed, 21 Aug 2013 19:56:48 +0000 (19:56 +0000)]
Fix fdim handling of infinities (bug 15797).

11 years agoFix typos.
Ondřej Bílka [Wed, 21 Aug 2013 17:48:48 +0000 (19:48 +0200)]
Fix typos.

11 years agoi686: Skip SSE4_2 version for strcmp, strncmp, strncase, strcasecmp
Liubov Dmitrieva [Wed, 21 Aug 2013 14:24:44 +0000 (18:24 +0400)]
i686: Skip SSE4_2 version for strcmp, strncmp, strncase, strcasecmp
if bit_Slow_SSE4_2 is set.

11 years agoPowerPC: fix backtrace to handle signal trampolines
Adhemerval Zanella [Tue, 20 Aug 2013 20:01:59 +0000 (15:01 -0500)]
PowerPC: fix backtrace to handle signal trampolines

This patch fixes backtrace for PPC32 and PPC64 to correctly handle
signal trampolines. The 'debug/tst-backtrace6.c' also check for
SA_SIGINFO handling, where is triggers another vDSO symbols for PPC32.

11 years agoFix cproj handling of (finite, NaN) arguments (bug 15531).
Joseph Myers [Tue, 20 Aug 2013 19:41:15 +0000 (19:41 +0000)]
Fix cproj handling of (finite, NaN) arguments (bug 15531).

11 years agoInclude <string.h> in sysdeps/unix/sysv/linux/mmap64.c.
Joseph Myers [Tue, 20 Aug 2013 19:38:23 +0000 (19:38 +0000)]
Include <string.h> in sysdeps/unix/sysv/linux/mmap64.c.

11 years agoUse __getpagesize and __ffs in MMAP2_PAGE_SHIFT == -1 case of mmap64.
Joseph Myers [Tue, 20 Aug 2013 16:43:59 +0000 (16:43 +0000)]
Use __getpagesize and __ffs in MMAP2_PAGE_SHIFT == -1 case of mmap64.

11 years agoRemove trailing blank lines when generating INSTALL.
Joseph Myers [Tue, 20 Aug 2013 16:41:25 +0000 (16:41 +0000)]
Remove trailing blank lines when generating INSTALL.

11 years ago * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
Andreas Krebbel [Tue, 20 Aug 2013 12:13:59 +0000 (14:13 +0200)]
* sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
Align 32 bit compat elf_greg to 8 bytes.

11 years ago * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
Andreas Arnez [Tue, 20 Aug 2013 12:03:04 +0000 (14:03 +0200)]
* elf/setup-vdso.h (setup_vdso): Fix missing string termination.

11 years agoSimplify strcoll implementation
Siddhesh Poyarekar [Tue, 20 Aug 2013 03:10:05 +0000 (08:40 +0530)]
Simplify strcoll implementation

Break up strcoll into simpler functions so that the logic is easier to
follow and maintain.

11 years agoPR 15483
Alexandre Oliva [Sat, 17 Aug 2013 04:24:00 +0000 (01:24 -0300)]
PR 15483
* sysdeps/powerpc/nofpu/sim-full.c: Add FIXME note about
the need for thread-specific variables preserved across signal
handlers.
* sysdeps/powerpc/nofpu/soft-supp.h: Likewise.
* sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.

11 years agoCVE-2013-4237, BZ #14699: Buffer overflow in readdir_r
Florian Weimer [Fri, 16 Aug 2013 07:38:52 +0000 (09:38 +0200)]
CVE-2013-4237, BZ #14699: Buffer overflow in readdir_r

* sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
member.
* sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
member.
* sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
* sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
conditional.
* sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
GETDENTS_64BIT_ALIGNED.
* sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
* manual/filesys.texi (Reading/Closing Directory): Document
ENAMETOOLONG return value of readdir_r.  Recommend readdir more
strongly.
* manual/conf.texi (Limits for Files): Add portability note to
NAME_MAX, PATH_MAX.
(Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.

11 years agoFix cbrtl for ldbl-96
Andreas Schwab [Wed, 17 Jul 2013 12:53:24 +0000 (14:53 +0200)]
Fix cbrtl for ldbl-96

11 years agoOpen development for 2.19.
David S. Miller [Mon, 12 Aug 2013 20:43:14 +0000 (13:43 -0700)]
Open development for 2.19.

* version.h (RELEASE): Set to "development".
(VERSION): Set to "2.18.90".
* NEWS: Add 2.19 section.

11 years agoUpdate version.h and include/features.h for 2.18 release.
David S. Miller [Sat, 10 Aug 2013 22:52:55 +0000 (15:52 -0700)]
Update version.h and include/features.h for 2.18 release.

11 years agoFix typo in ChangeLog
Andreas Schwab [Tue, 6 Aug 2013 09:13:03 +0000 (11:13 +0200)]
Fix typo in ChangeLog

11 years agoUpdate Korean translations.
David S. Miller [Sat, 3 Aug 2013 17:35:26 +0000 (10:35 -0700)]
Update Korean translations.

* po/ko.po: Update Korean translation from translation project.

11 years agoUpdate manual/contrib.texi
David S. Miller [Fri, 2 Aug 2013 00:27:04 +0000 (17:27 -0700)]
Update manual/contrib.texi

* manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
Bilka.

11 years agoUpdate French translations.
David S. Miller [Tue, 30 Jul 2013 18:27:46 +0000 (11:27 -0700)]
Update French translations.

* po/fr.po: Update French translation from translation project.

11 years agoUpdate Czech translations.
David S. Miller [Sun, 28 Jul 2013 20:01:03 +0000 (13:01 -0700)]
Update Czech translations.

* po/cs.po: Update Czech translation from translation project.

11 years agoUpdate Swedish translations.
David S. Miller [Sun, 28 Jul 2013 18:11:13 +0000 (11:11 -0700)]
Update Swedish translations.

* po/sv.po: Update Swedish translation from translation project.

11 years agoUpdate Esperanto translations.
David S. Miller [Sun, 28 Jul 2013 00:49:14 +0000 (17:49 -0700)]
Update Esperanto translations.

* po/eo.po: Update Esperanto translation from translation project.

11 years agoUpdate Vietnamese translations.
David S. Miller [Sat, 27 Jul 2013 08:49:29 +0000 (01:49 -0700)]
Update Vietnamese translations.

* po/vi.po: Update Vietnamese translation from translation project.

11 years agoUpdate German translations.
David S. Miller [Sat, 27 Jul 2013 07:56:58 +0000 (00:56 -0700)]
Update German translations.

* po/de.po: Update German translation from translation project.

11 years agoUpdate Bulgarian translations.
David S. Miller [Fri, 26 Jul 2013 22:58:17 +0000 (15:58 -0700)]
Update Bulgarian translations.

* po/bg.po: Update Bulgarian translation from translation project.

11 years agoUpdate Dutch, Polish, and Russian translations.
David S. Miller [Fri, 26 Jul 2013 20:21:03 +0000 (13:21 -0700)]
Update Dutch, Polish, and Russian translations.

* po/nl.po: Update Dutch translation from translation project.
* po/pl.po: Update Polish translation from translation project.
* po/ru.po: Update Russian translation from translation project.

11 years ago[AArch64] Provide symbol version for _mcount.
Marcus Shawcroft [Fri, 26 Jul 2013 07:29:17 +0000 (08:29 +0100)]
[AArch64] Provide symbol version for _mcount.

11 years agoUpdate libc.pot in preparation for giving tarball to translation project.
David S. Miller [Thu, 25 Jul 2013 06:31:57 +0000 (23:31 -0700)]
Update libc.pot in preparation for giving tarball to translation project.

* po/libc.pot: Update.

11 years agoAdded NEWS entries for AT_HWCAP2 and POWER8 enablement.
Ryan S. Arnold [Thu, 25 Jul 2013 15:49:13 +0000 (10:49 -0500)]
Added NEWS entries for AT_HWCAP2 and POWER8 enablement.

11 years agohppa: Regenerate libm-test-ulps.
Carlos O'Donell [Wed, 24 Jul 2013 03:49:00 +0000 (23:49 -0400)]
hppa: Regenerate libm-test-ulps.

11 years agoRemove Linux kernel version ambiguity in comment added by previous commit.
David S. Miller [Tue, 23 Jul 2013 18:31:39 +0000 (11:31 -0700)]
Remove Linux kernel version ambiguity in comment added by previous commit.

* tst-cancel4.c (WRITE_BUFFER_SIZE): Adjust comment.

11 years agoPowerPC: use _dl_static_init to set GLRO(gl_pagesize)
Adhemerval Zanella [Tue, 23 Jul 2013 12:39:57 +0000 (07:39 -0500)]
PowerPC: use _dl_static_init to set GLRO(gl_pagesize)

This patch fixes dlfcn/tststatic5 for PowerPC where pagesize
variable was not properly initialized in certain cases. This patch
is based on other architecture code.

11 years agoIncrease nptl test case buffer size so we really block on current Linux kernels.
David S. Miller [Tue, 23 Jul 2013 09:31:37 +0000 (02:31 -0700)]
Increase nptl test case buffer size so we really block on current Linux kernels.

* tst-cancel4.c (WRITE_BUFFER_SIZE): Increase to 16384.

11 years agotile BZ #15759: Fix bug in _dl_unmap
Chris Metcalf [Mon, 22 Jul 2013 15:46:44 +0000 (11:46 -0400)]
tile BZ #15759: Fix bug in _dl_unmap

We returned without calling __munmap if not in the simulator.
Now we call a separate sim_dlclose() function to make the
control flow work correctly.

11 years agoS/390: ULPs update.
Andreas Krebbel [Mon, 22 Jul 2013 07:51:52 +0000 (09:51 +0200)]
S/390: ULPs update.

11 years agoCVE-2013-2207, BZ #15755: Disable pt_chown.
Carlos O'Donell [Fri, 19 Jul 2013 06:42:03 +0000 (02:42 -0400)]
CVE-2013-2207, BZ #15755: Disable pt_chown.

The helper binary pt_chown tricked into granting access to another
user's pseudo-terminal.

Pre-conditions for the attack:

 * Attacker with local user account
 * Kernel with FUSE support
 * "user_allow_other" in /etc/fuse.conf
 * Victim with allocated slave in /dev/pts

Using the setuid installed pt_chown and a weak check on whether a file
descriptor is a tty, an attacker could fake a pty check using FUSE and
trick pt_chown to grant ownership of a pty descriptor that the current
user does not own.  It cannot access /dev/pts/ptmx however.

In most modern distributions pt_chown is not needed because devpts
is enabled by default. The fix for this CVE is to disable building
and using pt_chown by default. We still provide a configure option
to enable hte use of pt_chown but distributions do so at their own
risk.

11 years agoUpdate Sparc ULPs.
David S. Miller [Sat, 20 Jul 2013 23:46:24 +0000 (16:46 -0700)]
Update Sparc ULPs.

* sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
difference between 32-bit and 64-bit.

11 years agom68k: use _dl_static_init to set GLR0(dl_pagesize)
Andreas Schwab [Sat, 20 Jul 2013 20:37:42 +0000 (22:37 +0200)]
m68k: use _dl_static_init to set GLR0(dl_pagesize)

11 years agotile: add missing semicolon in <bits/ptrace.h>
Chris Metcalf [Fri, 19 Jul 2013 17:06:30 +0000 (13:06 -0400)]
tile: add missing semicolon in <bits/ptrace.h>

Change 521c6785e1fc94d added the enum but missed the semicolon.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
11 years agoClean up whitespace in lock elision patches.
Dominik Vogt [Fri, 19 Jul 2013 05:16:28 +0000 (05:16 +0000)]
Clean up whitespace in lock elision patches.

Signed-off-by: Carlos O'Donell <carlos@redhat.com>
11 years agoRemove remains of rwlock elision which is not implemented yet.
Dominik Vogt [Fri, 19 Jul 2013 05:02:44 +0000 (05:02 +0000)]
Remove remains of rwlock elision which is not implemented yet.

Signed-off-by: Carlos O'Donell <carlos@redhat.com>
---

nptl/
2013-07-19  Dominik Vogt  <vogt@de.ibm.com>

* sysdeps/unix/sysv/linux/x86/elision-conf.c:
Remove __rwlock_rtm_enabled and __rwlock_rtm_read_retries.
(elision_init): Don't set __rwlock_rtm_enabled.
* sysdeps/unix/sysv/linux/x86/elision-conf.h:
Remove __rwlock_rtm_enabled.

11 years agoBZ #15711: Avoid circular dependency for syscall.h
Carlos O'Donell [Tue, 16 Jul 2013 21:55:43 +0000 (17:55 -0400)]
BZ #15711: Avoid circular dependency for syscall.h

The generated header is compiled with `-ffreestanding' to avoid any
circular dependencies against the installed implementation headers.
Such a dependency would require the implementation header to be
installed before the generated header could be built (See bug 15711).
In current practice the generated header dependencies do not include
any of the implementation headers removed by the use of `-ffreestanding'.

---

2013-07-15  Carlos O'Donell  <carlos@redhat.com>

[BZ #15711]
* sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
Avoid system header dependency with -ffreestanding.
($(objpfx)bits/syscall%d): Likewise.

11 years agoAnnotate more cases of math bug 15319.
David S. Miller [Sat, 13 Jul 2013 23:57:05 +0000 (16:57 -0700)]
Annotate more cases of math bug 15319.

* math/libm-test.inc (casin_test_data): Annotate more cases of missing
underflows from atanl/atan2l due to bug 15319.
(casinh_test_data): Likewise.

11 years ago[AArch64] Adding -funwind-tables to backtrace.c
Marcus Shawcroft [Fri, 5 Jul 2013 16:12:46 +0000 (17:12 +0100)]
[AArch64] Adding -funwind-tables to backtrace.c

11 years ago[AArch64] Use _dl_static_init to set GLR0(dl_pagesize)
Marcus Shawcroft [Fri, 5 Jul 2013 16:13:35 +0000 (17:13 +0100)]
[AArch64] Use _dl_static_init to set GLR0(dl_pagesize)

11 years agoFull from-scratch rebuild of sparc ULPs.
David S. Miller [Mon, 8 Jul 2013 05:15:36 +0000 (22:15 -0700)]
Full from-scratch rebuild of sparc ULPs.

* sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.

11 years agotile: use _dl_static_init to set GLRO(gl_pagesize)
Chris Metcalf [Wed, 3 Jul 2013 18:48:39 +0000 (14:48 -0400)]
tile: use _dl_static_init to set GLRO(gl_pagesize)

A recently-added test (dlfcn/tststatic5) pointed out that tile was not
properly initializing the variable pagesize in certain cases.  This
change just copies the existing code from MIPS.

11 years agotile: update libm-test-ulps from scratch
Chris Metcalf [Wed, 3 Jul 2013 17:58:34 +0000 (13:58 -0400)]
tile: update libm-test-ulps from scratch

11 years agotile: use soft-fp for fma() and fmaf()
Chris Metcalf [Wed, 3 Jul 2013 15:23:01 +0000 (11:23 -0400)]
tile: use soft-fp for fma() and fmaf()

The sfp-machine.h is based on the gcc version, but extended with
required new macros by comparison with other architectures and by
investigating the hardware support for FP on tile.

11 years agoUpdate x86 and x86_64 ulps on AMD FX-8350 with GCC 4.8.1.
Jeroen Albers [Fri, 5 Jul 2013 12:58:20 +0000 (12:58 +0000)]
Update x86 and x86_64 ulps on AMD FX-8350 with GCC 4.8.1.

11 years ago[AArch64] Regenerate libm-test-ulps
Marcus Shawcroft [Fri, 5 Jul 2013 08:30:52 +0000 (09:30 +0100)]
[AArch64] Regenerate libm-test-ulps