This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.26.9000-1012-g3bb1ef5
- From: azanella at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 19 Dec 2017 14:03:02 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.26.9000-1012-g3bb1ef5
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via 3bb1ef58b989012f8199b82af6ec136da2f9fda3 (commit)
via 554e3d51efdd7d15c15876b80a7cba3ad9b6a738 (commit)
from cba595c350e52194e10c0006732e1991e3d0803b (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=3bb1ef58b989012f8199b82af6ec136da2f9fda3
commit 3bb1ef58b989012f8199b82af6ec136da2f9fda3
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Thu Dec 14 09:05:46 2017 -0200
ia64: Fix memchr for large input sizes (BZ #22603)
Current optimized ia64 memchr uses a strategy to check for last address
by adding the input one with expected size. However it does not take
care for possible overflow.
It was triggered by 3038145ca23 where default rawmemchr now uses memchr
(p, c, (size_t)-1).
This patch fixes it by implement a satured addition where overflows
sets the maximum pointer size to UINTPTR_MAX.
Checked on ia64-linux-gnu where it fixes both stratcliff and
test-rawmemchr failures.
Adhemerval Zanella <adhemerval.zanella@linaro.org>
James Clarke <jrtc27@jrtc27.com>
[BZ #22603]
* sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
addition.
diff --git a/ChangeLog b/ChangeLog
index b608b24..4b88a86 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,11 @@
2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
+ James Clarke <jrtc27@jrtc27.com>
+
+ [BZ #22603]
+ * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
+ addition.
+
+2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
[BZ #22605]
* sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
diff --git a/sysdeps/ia64/memchr.S b/sysdeps/ia64/memchr.S
index d60cf7b..9a0abc6 100644
--- a/sysdeps/ia64/memchr.S
+++ b/sysdeps/ia64/memchr.S
@@ -67,6 +67,10 @@ ENTRY(__memchr)
.body
mov ret0 = str
add last = str, in2 // last byte
+ ;;
+ cmp.ltu p6, p0 = last, str
+ ;;
+(p6) mov last = -1
and tmp = 7, str // tmp = str % 8
cmp.ne p7, p0 = r0, r0 // clear p7
extr.u chr = in1, 0, 8 // chr = (unsigned char) in1
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=554e3d51efdd7d15c15876b80a7cba3ad9b6a738
commit 554e3d51efdd7d15c15876b80a7cba3ad9b6a738
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Thu Dec 14 10:07:44 2017 -0200
sh: Fix clone exit return code (BZ #22605)
Since 3f823e87cc (Call exit directly in clone (BZ #21512)) SH clone
implementation fails to set the exit code resulting in the failures:
FAIL: nptl/tst-align-clone
FAIL: nptl/tst-getpid1
This patch fixes the both testcases.
[BZ #22605]
* sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
code.
Signed-off-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
diff --git a/ChangeLog b/ChangeLog
index c408eb2..b608b24 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
+
+ [BZ #22605]
+ * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
+ code.
+
2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
[BZ #22563]
diff --git a/sysdeps/unix/sysv/linux/sh/clone.S b/sysdeps/unix/sysv/linux/sh/clone.S
index b13a64b..d369a82 100644
--- a/sysdeps/unix/sysv/linux/sh/clone.S
+++ b/sysdeps/unix/sysv/linux/sh/clone.S
@@ -73,6 +73,7 @@ ENTRY(__clone)
mov.l @(4,r15), r4
/* we are done, passing the return value through r0 */
+ mov r0, r4
mov #+SYS_ify(exit), r3
trapa #0x15
.align 2
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 13 +++++++++++++
sysdeps/ia64/memchr.S | 4 ++++
sysdeps/unix/sysv/linux/sh/clone.S | 1 +
3 files changed, 18 insertions(+), 0 deletions(-)
hooks/post-receive
--
GNU C Library master sources