This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch, fedora/master, updated. glibc-2.13-1047-g8166aee


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, fedora/master has been updated
       via  8166aeeeea1e17c494bfd404f7ea842d6a75b3a4 (commit)
       via  ed3252e00405cd84d430bd59b1fc8d750af49ce8 (commit)
       via  bdd816a366c4e5bba5de7157d948e0c0737fb4fb (commit)
       via  0a197a9dfed71915b50e112834c044c6d2351312 (commit)
       via  ee30c380b8f7c9253c87103c58c5201268d30181 (commit)
       via  a4b89fd84698009f45d44f22bd93718acb87bb02 (commit)
       via  ea389b12b3b65c4a7fa91fa76f8c99867eb37865 (commit)
       via  68a3f91fcad464c4737c1eaed4ae0bf539801fb2 (commit)
       via  15cc7dd182a6be79cbb01a5de4f13e958717bd69 (commit)
       via  02db173ce485874cb7d44ae20b8c2cb86408cf8e (commit)
       via  f3799213a3ee8265ba47fad33d9cff71d97ab0d4 (commit)
       via  d79a9c949c84e7f0ba33e87447c47af833e9f11a (commit)
       via  5eb84b0e8e0d3ec3d73a08c8525fec761e0d0804 (commit)
       via  49de7a0060499a263ed1ad47a4ee5facdb3a7585 (commit)
       via  56e5eb4619a936a3b63ae71f89038d69becd2999 (commit)
       via  6ce7537960cf42a0a6b0fc70957d5ce2ba9838de (commit)
       via  94b7cc3711b0b74c1d3ae18b9a2e019e51a8e0bf (commit)
       via  bd25564e1e98910ed69043ed6a6f884ce60e5780 (commit)
       via  bac102db9293f3f619c319312e05dfeb7051a7ad (commit)
       via  c84cfef4ec8df85eb10c604b273813b4390a6b0c (commit)
       via  36903d02814957514f201ac39c9fc8628fe6672f (commit)
       via  b426c80f5fa9dcaf9acc83072bb75f8bc9f773db (commit)
       via  08ba84136f236309a5f48c1f70208c14e1622278 (commit)
       via  793267574c57c5cca846da4e90f0651fd2321dfe (commit)
       via  3b85df27870a47ed1db84e948e37a5a50a178a92 (commit)
       via  15a856b1090669df0aec536edbdf240e71a470ca (commit)
       via  05f399e63428b5129ca54f9edefbf2876f82b75c (commit)
       via  10a52685af7f060284232ce5b9c5935ca2f5c25e (commit)
       via  94ecc67da83cbec641b36966dc5d4a9d19536ed5 (commit)
       via  f8a3b5bf8fa1d0c43d2458e03cc109a04fdef194 (commit)
       via  fc317541ab359b33ed7bf402ead84ba6f112604c (commit)
       via  d26dfc60edc8c6dd160eefff16a734152a835ca0 (commit)
       via  a79a1c704b32c48903a4cb4c0786eca828520b5c (commit)
       via  2fc54d6f9f7d6770ecb0e0bb5a3b977965bfe273 (commit)
       via  98d76b46d2db565b22be647d611cc2649ba6ff87 (commit)
       via  32ad1972a8e458a555c58ca28d272ef7009d3514 (commit)
       via  da3c19ef5aab5c073baa57afd1f5bf9bf8746460 (commit)
       via  ca408c157c71edebf45862c35738eb2614cbcd77 (commit)
       via  d6f67f7d833b4e2039f832355fb0edd65522c9f4 (commit)
       via  0656e90edc091f122284b602d2d590314e40c97a (commit)
       via  1af4e29837e9969377781b47254b6e4c293353ed (commit)
       via  da62f81bdd23bb5095cd54c0b34ae6d5a93df69e (commit)
       via  20030ae6d7e7187d7caf1b23c4aa5471fcf56d47 (commit)
       via  fcabc0f8b185f9e0a9289720be5ede6c39b3bf21 (commit)
      from  42cf17c0ff63072dcd1c22ac65fe598c8158773a (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://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=8166aeeeea1e17c494bfd404f7ea842d6a75b3a4

commit 8166aeeeea1e17c494bfd404f7ea842d6a75b3a4
Author: Andreas Schwab <schwab@redhat.com>
Date:   Wed May 18 14:56:56 2011 +0200

    2.13.90-13

diff --git a/fedora/glibc.spec.in b/fedora/glibc.spec.in
index 6b34ecc..2f2c2d5 100644
--- a/fedora/glibc.spec.in
+++ b/fedora/glibc.spec.in
@@ -14,7 +14,7 @@
 %define buildpower6 0
 %endif
 %define rtkaioarches %{ix86} x86_64 ia64 ppc ppc64 s390 s390x
-%define biarcharches %{ix86} x86_64 ppc ppc64
+%define biarcharches %{ix86} x86_64 ppc ppc64 s390 s390x
 %define debuginfocommonarches %{biarcharches} alpha alphaev6
 %define multiarcharches ppc ppc64 %{ix86} x86_64 %{sparc}
 %define systemtaparches %{ix86} x86_64
@@ -23,7 +23,7 @@
 Summary: The GNU libc libraries
 Name: glibc
 Version: %{glibcversion}
-Release: 12
+Release: 13
 # GPLv2+ is used in a bunch of programs, LGPLv2+ is used for libraries.
 # Things that are linked directly into dynamically linked programs
 # and shared libraries (e.g. crt files, lib*_nonshared.a) have an additional
@@ -1047,6 +1047,29 @@ rm -f *.filelist*
 %endif
 
 %changelog
+* Wed May 18 2011 Andreas Schwab <schwab@redhat.com> - 2.13.90-13
+- Update from master
+  - Update GB18030 to 2005 version (BZ#11837)
+  - Update RE_SYNTAX*_AWK constants in regex.h
+  - Handle long variable names in putenv (BZ#11892)
+  - Fix test for error_one_per_line mode in error (BZ#12766)
+  - Cleanup x86-64 sys/user.h (BZ#11820)
+  - Several locale data updates (BZ#11987, BZ#9732, BZ#9730, BZ#4357,
+    BZ#12582)
+  - Avoid potential deadlock in mtrace (BZ#6420)
+  - Fix a few problems in fopen and freopen
+  - Provide more helpful error message in getopt (BZ#7101)
+  - Make stack canary value harder to read through read overflow (BZ#10149)
+  - Use mmap for allocation of buffers used for __abort_msg (BZ#11901)
+  - Fix handling of static TLS in dlopen'ed objects (BZ#12453)
+  - Fix initialization of optimization values for AIO (BZ#12083)
+  - Fix handling of conversion problem in CP932 module (BZ#12601)
+  - Fix potential problem with out-of-scope buffer (BZ#12626)
+  - Handle recursive calls in backtrace better (BZ#12432)
+  - Fix handling of incomplete character storage in state
+  - Fix file descriptor position after fclose (BZ#12724)
+- Reinstall NIS RPC headers
+
 * Fri May 13 2011 Andreas Schwab <schwab@redhat.com> - 2.13.90-12
 - Update from master
   - Fix resizing table for unique symbols when adding symbol for copy

http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=ed3252e00405cd84d430bd59b1fc8d750af49ce8

commit ed3252e00405cd84d430bd59b1fc8d750af49ce8
Merge: bdd816a 0a197a9
Author: Andreas Schwab <schwab@redhat.com>
Date:   Tue May 17 17:53:42 2011 +0200

    Merge remote-tracking branch 'origin/master' into fedora/master

diff --cc ChangeLog
index 0cbeb73,c427a2f..8db638d
--- a/ChangeLog
+++ b/ChangeLog
@@@ -1,10 -1,177 +1,184 @@@
+ 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
+ 
+ 	* fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
+ 
+ 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
+ 
+ 	[BZ #11837]
+ 	* iconvdata/gb18030.c: Update to GB18020-2005.
+ 
+ 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
+ 
+ 	* posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
+ 	RE_SYNTAX_POSIX_AWK): Update to match recent development.
+ 	Patch by Aharon Robbins <arnold@skeeve.com>.
+ 
+ 	[BZ #11892]
+ 	* stdlib/putenv.c (putenv): Don't always create copy of the variable
+ 	on the stack.
+ 
+ 	[BZ #11895]
+ 	* misc/pselect.c (__pselect): Handle timeout value errors hidden
+ 	through underflows.
+ 
+ 	[BZ #12766]
+ 	* misc/error.c (error_at_line): Ensure file_name and old_file_name
+ 	point to strings before performing equality test for error_one_per_line
+ 	mode.
+ 
+ 	[BZ #11697]
+ 	* login/programs/pt_chown.c (do_pt_chown): Always call chown.
+ 
+ 	[BZ #11820]
+ 	* sysdeps/unix/sysv/linux/x86_64/sys/user.h
+ 	(struct user_fpregs_struct): Avoid __uint*_t types.
+ 
+ 	[BZ #6420]
+ 	* malloc/mtrace.c (tr_where): Add additional parameter to point to
+ 	symbol info.  Use it instead of calling _dl_addr locally.
+ 	(lock_and_info): New function.
+ 	(tr_freehook): Call lock_and_info and pass symbol info as additional
+ 	parameter to tr_where.
+ 	(tr_mallochook): Likewise.
+ 	(tr_reallochook): Likewise.
+ 	(tr_memalignhook): Likewise.
+ 
+ 	* malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
+ 	used and couldn't be at all thread-safe.
+ 
+ 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
+ 
+ 	* libio/freopen.c (freopen): Don't close old file descriptor
+ 	before the new one is opened.  Instead dup the new file descriptor
+ 	to the old one after the new stream is created.
+ 	* libio/freopen64.c (freopen64): Likewise.
+ 	* libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
+ 	* libio/fileops.c (_IO_new_file_close_it): Handle new
+ 	_IO_FLAGS2_NOCLOSE flag.
+ 	(_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
+ 	If _IO_file_open didn't set FD_CLOEXEC do it after the call.
+ 	* libio/oldfileops.c (_IO_old_file_close_it): Handle new
+ 	_IO_FLAGS2_NOCLOSE flag.
+ 	* include/unistd.h: Add hidden_proto for dup3.
+ 	Define __have_dup3.
+ 	* io/dup3.c: Define hidden symbol.
+ 	* sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
+ 
+ 	[BZ #7101]
+ 	* posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
+ 	when an incomplete long option is used.
+ 	* posix/tst-getopt_long1.c: New file.
+ 	* posix/Makefile (tests): Add tst-getopt_long1.
+ 
+ 	[BZ #10138]
+ 	* scripts/config.guess: Update from autoconf-2.68.
+ 	* scripts/config.sub: Likewise.
+ 
+ 	[BZ #10157]
+ 	* sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
+ 	tests into ...
+ 	(has_cpuclock): ...this.  New function.
+ 	* sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
+ 	macro here based on has_cpuclock code.
+ 
+ 	[BZ #10149]
+ 	* sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
+ 	First byte (not low byte) is now always NUL.
+ 	* sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
+ 
+ 	* sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
+ 	Use non-cancelable interfaces.
+ 
+ 	[BZ #9809]
+ 	* locale/iso-639.def: Add entry for Sorani.
+ 
+ 	[BZ #11901]
+ 	* include/stdlib.h: Move include protection to the right place.
+ 	Define abort_msg_s.  Declare __abort_msg with it.
+ 	* stdlib/abort.c (__abort_msg): Adjust type.
+ 	* assert/assert.c (__assert_fail_base): New function.  Majority
+ 	of code from __assert_fail.  Allocate memory for __abort_msg with
+ 	mmap.
+ 	(__assert_fail): Now call __assert_fail_base.
+ 	* assert/assert-perr.c: Remove bulk of implementation.  Use
+ 	__assert_fail_base.
+ 	* include/assert.hL Declare __assert_fail_base.
+ 	* sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
+ 	mmap.
+ 	* sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
+ 
+ 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
+ 
+ 	[BZ #11952]
+ 	[BZ #12453]
+ 	* elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
+ 	until all modules are registered in the DTV.
+ 	* elf/Makefile: Add rules to build and run tst-tls19.
+ 	* elf/tst-tls19.c: New file.
+ 	* elf/tst-tls19mod1.c: New file.
+ 	* elf/tst-tls19mod2.c: New file.
+ 	* elf/tst-tls19mod3.c: New file.
+ 	Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
+ 
+ 	[BZ #12083]
+ 	* sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
+ 	correctly.
+ 
+ 	[BZ #12601]
+ 	* iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
+ 	two-byte sequence errors.
+ 	* iconvdata/Makefile (tests): Add bug-iconv8.
+ 	* iconvdata/bug-iconv8.c: New file.
+ 
+ 	[BZ #12626]
+ 	* sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
+ 	buf2 definition.
+ 
+ 	* libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
+ 
+ 	[BZ #12432]
+ 	* sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
+ 	(dummy_getcfa): New function.
+ 	(init): Get _Unwind_GetCFA address, use dummy if not found.
+ 	(backtrace_helper): In recursion check, also check whether CFA changes.
+ 	(__backtrace): Completely initialize arg.
+ 
+ 	* iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
+ 	storing incomplete byte sequence in state object.  Avoid testing for
+ 	guaranteed too small input if we know there is enough data available.
+ 
+ 2011-05-11  Andreas Schwab  <schwab@redhat.com>
+ 
+ 	* Makeconfig (+link-pie): Indent.
+ 	* Rules (binaries-pie): Define if $(have-fpie) and
+ 	$(build-shared).
+ 	(binaries-shared): Also filter out $(binaries-pie).
+ 	($(addprefix $(objpfx),$(binaries-pie))): New rule.
+ 	* nscd/Makefile (others-pie): Add nscd.
+ 	(LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
+ 	($(objpfx)nscd): Remove command override.
+ 	* login/Makefile (others-pie): Add pt_chown.
+ 	($(objpfx)pt_chown): Remove command override.
+ 	* elf/Makefile: Add PIE tests to tests and tests-pie variables and
+ 	remove command overrides.
+ 
+ 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
+ 
+ 	* libio/tst_putwc.c: Fix error messages.
+ 
+ 	[BZ #12724]
+ 	* libio/fileops.c (_IO_new_file_close_it): Always flush when
+ 	currently writing and seek to current position when not.
+ 	* libio/Makefile (tests): Add bug-fclose1.
+ 	* libio/bug-fclose1.c: New file.
+ 
 +2011-05-13  Andreas Schwab  <schwab@redhat.com>
 +
 +	* elf/dl-load.c (is_dst): Remove parameter secure, all callers
 +	changed.  Move check for valid use of $ORIGIN ...
 +	(_dl_dst_substitute): ... here.  Reset check_for_trusted when a
 +	path element is skipped.
 +
  2011-05-12  Ulrich Drepper  <drepper@gmail.com>
  
  	[BZ #12511]
diff --cc NEWS
index df17fb9,6fe7074..35d4fe7
--- a/NEWS
+++ b/NEWS
@@@ -9,12 -9,25 +9,15 @@@ Version 2.1
  
  * The following bugs are resolved with this release:
  
-   386, 11257, 11258, 11487, 11532, 11578, 11653, 11668, 11724, 11945, 11947,
-   12052, 12158, 12178, 12200, 12346, 12393, 12420, 12445, 12449, 12454,
-   12460, 12469, 12489, 12509, 12510, 12511, 12518, 12527, 12541, 12545,
-   12551, 12583, 12587, 12597, 12611, 12625, 12631, 12650, 12653, 12655,
-   12660, 12681, 12685, 12711, 12713, 12714, 12717, 12723, 12734, 12738
+   386, 6420, 7101, 9730, 9732, 9809, 10138, 10149, 10157, 11257, 11258,
+   11487, 11532, 11578, 11653, 11668, 11697, 11724, 11820, 11837, 11892,
+   11895, 11901, 11945, 11947, 11952, 11987, 12052, 12083, 12158, 12178,
+   12200, 12346, 12393, 12420, 12432, 12445, 12449, 12453, 12454, 12460,
+   12469, 12489, 12509, 12510, 12511, 12518, 12527, 12541, 12545, 12551,
+   12582, 12583, 12587, 12597, 12601, 12611, 12625, 12626, 12631, 12650,
+   12653, 12655, 12660, 12681, 12685, 12711, 12713, 12714, 12717, 12723,
+   12724, 12734, 12738, 12746, 12766
  
 -* The RPC implementation in libc is obsoleted.  Old programs keep working
 -  but new programs cannot be linked with the routines in libc anymore.
 -  Programs in need of RPC functionality must be linked against TI-RPC.
 -  The TI-RPC implemtation is IPv6 enabled and there are other benefits.
 -
 -  Visible changes of this change include (obviously) the inability to link
 -  programs using RPC functions without referencing the TI-RPC library and the
 -  removal of the RPC headers from the glibc headers.
 -  Implemented by Ulrich Drepper.
 -
  * New Linux interfaces: clock_adjtime, name_to_handle_at, open_by_handle_at,
    syncfs
  

http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=bdd816a366c4e5bba5de7157d948e0c0737fb4fb

commit bdd816a366c4e5bba5de7157d948e0c0737fb4fb
Author: Andreas Schwab <schwab@redhat.com>
Date:   Tue May 17 17:42:30 2011 +0200

    Reinstall NIS RPC headers

diff --git a/nis/Makefile b/nis/Makefile
index b5c9609..d2934d9 100644
--- a/nis/Makefile
+++ b/nis/Makefile
@@ -23,9 +23,9 @@ subdir	:= nis
 
 aux			:= nis_hash
 
+headers			:= $(wildcard rpcsvc/*.[hx])
 distribute		:= nss-nis.h nss-nisplus.h nis_intern.h Banner \
-			   nisplus-parser.h nis_xdr.h nss \
-			   $(wildcard rpcsvc/*.[hx])
+			   nisplus-parser.h nis_xdr.h nss
 
 # These are the databases available for the nis (and perhaps later nisplus)
 # service.  This must be a superset of the services in nss.

http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=02db173ce485874cb7d44ae20b8c2cb86408cf8e

commit 02db173ce485874cb7d44ae20b8c2cb86408cf8e
Author: Andreas Schwab <schwab@redhat.com>
Date:   Mon May 16 13:55:59 2011 +0200

    Revert "	* sysdeps/unix/sysv/dl-osinfo.h: Include errno.h, hp-timing.h,"
    
    This reverts commit 979da19ab840553e3862f3b2aea50ad07118616f.

diff --git a/ChangeLog.16 b/ChangeLog.16
index fd9c00d..584a284 100644
--- a/ChangeLog.16
+++ b/ChangeLog.16
@@ -8930,12 +8930,6 @@
 	* argp/argp-help.c (__argp_error): __asprintf -> vasprintf.
 	(__argp_failure): Likewise.
 
-2005-08-08  Jakub Jelinek  <jakub@redhat.com>
-
-	* sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
-	Shift marked &errno down on big-endian instead of up.
-	* elf/tst-stackguard1.c (do_test): Fix a typo.
-
 2005-08-08  Ulrich Drepper  <drepper@redhat.com>
 
 	* nscd/cache.c (cache_add): Commit hash table and header to disk.
@@ -9060,17 +9054,6 @@
 	__syslog_chk.
 	* misc/Versions: Export __syslog_chk and __vsyslog_chk.
 
-2005-07-29  Jakub Jelinek  <jakub@redhat.com>
-
-	* sysdeps/unix/sysv/linux/dl-osinfo.h: Include errno.h, hp-timing.h,
-	endian.h.
-	(_dl_setup_stack_chk_guard): Even without
-	--enable-stackguard-randomization attempt to do some guard
-	randomization using hp-timing (if available) and kernel stack and
-	mmap randomization.
-	* elf/tst-stackguard1.c (do_test): Don't fail if the poor man's
-	randomization doesn't work well enough.
-
 2005-07-28  Thomas Schwinge  <schwinge@nic-nac-project.de>
 
 	[BZ #1137]
diff --git a/elf/tst-stackguard1.c b/elf/tst-stackguard1.c
index 50739e5..480f929 100644
--- a/elf/tst-stackguard1.c
+++ b/elf/tst-stackguard1.c
@@ -160,21 +160,17 @@ do_test (void)
      the 16 runs, something is very wrong.  */
   int ndifferences = 0;
   int ndefaults = 0;
-  int npartlyrandomized = 0;
   for (i = 0; i < N; ++i) 
     {
       if (child_stack_chk_guards[i] != child_stack_chk_guards[i+1])
 	ndifferences++;
       else if (child_stack_chk_guards[i] == default_guard)
 	ndefaults++;
-      else if (*(char *) &child_stack_chk_guards[i] == 0)
-	npartlyrandomized++;
     }
 
-  printf ("differences %d defaults %d partly randomized %d\n",
-	  ndifferences, ndefaults, npartlyrandomized);
+  printf ("differences %d defaults %d\n", ndifferences, ndefaults);
 
-  if ((ndifferences + ndefaults + npartlyrandomized) < 3 * N / 4)
+  if (ndifferences < N / 2 && ndefaults < N / 2)
     {
       puts ("stack guard canaries are not randomized enough");
       puts ("nor equal to the default canary value");
diff --git a/nptl/ChangeLog b/nptl/ChangeLog
index 119abe4..104140f 100644
--- a/nptl/ChangeLog
+++ b/nptl/ChangeLog
@@ -4048,15 +4048,6 @@
 	Use __sigfillset.  Document that sigfillset does the right thing wrt
 	to SIGSETXID.
 
-2005-08-08  Jakub Jelinek  <jakub@redhat.com>
-
-	* tst-stackguard1.c (do_test): Likewise.
-
-2005-07-29  Jakub Jelinek  <jakub@redhat.com>
-
-	* tst-stackguard1.c (do_test): Don't fail if the poor man's
-	randomization doesn't work well enough.
-
 2005-07-11  Jakub Jelinek  <jakub@redhat.com>
 
 	[BZ #1102]
diff --git a/nptl/tst-stackguard1.c b/nptl/tst-stackguard1.c
index 77ebbfb..15c30ae 100644
--- a/nptl/tst-stackguard1.c
+++ b/nptl/tst-stackguard1.c
@@ -190,21 +190,17 @@ do_test (void)
      the 16 runs, something is very wrong.  */
   int ndifferences = 0;
   int ndefaults = 0;
-  int npartlyrandomized = 0;
   for (i = 0; i < N; ++i) 
     {
       if (child_stack_chk_guards[i] != child_stack_chk_guards[i+1])
 	ndifferences++;
       else if (child_stack_chk_guards[i] == default_guard)
 	ndefaults++;
-      else if (*(char *) &child_stack_chk_guards[i] == 0)
-	npartlyrandomized++;
     }
 
-  printf ("differences %d defaults %d partly randomized %d\n",
-	  ndifferences, ndefaults, npartlyrandomized);
+  printf ("differences %d defaults %d\n", ndifferences, ndefaults);
 
-  if ((ndifferences + ndefaults + npartlyrandomized) < 3 * N / 4)
+  if (ndifferences < N / 2 && ndefaults < N / 2)
     {
       puts ("stack guard canaries are not randomized enough");
       puts ("nor equal to the default canary value");
diff --git a/sysdeps/unix/sysv/linux/dl-osinfo.h b/sysdeps/unix/sysv/linux/dl-osinfo.h
index 430166a..df07869 100644
--- a/sysdeps/unix/sysv/linux/dl-osinfo.h
+++ b/sysdeps/unix/sysv/linux/dl-osinfo.h
@@ -17,13 +17,10 @@
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
    02111-1307 USA.  */
 
-#include <errno.h>
 #include <kernel-features.h>
 #include <dl-sysdep.h>
 #include <fcntl.h>
 #include <stdint.h>
-#include <hp-timing.h>
-#include <endian.h>
 
 #ifndef MIN
 # define MIN(a,b) (((a)<(b))?(a):(b))
@@ -83,32 +80,6 @@ _dl_setup_stack_chk_guard (void *dl_random)
       unsigned char *p = (unsigned char *) &ret;
       p[sizeof (ret) - 1] = 255;
       p[sizeof (ret) - 2] = '\n';
-#ifdef HP_TIMING_NOW
-      hp_timing_t hpt;
-      HP_TIMING_NOW (hpt);
-      hpt = (hpt & 0xffff) << 8;
-      ret ^= hpt;
-#endif
-      uintptr_t stk;
-      /* Avoid GCC being too smart.  */
-      asm ("" : "=r" (stk) : "r" (p));
-      stk &= 0x7ffff0;
-#if __BYTE_ORDER == __LITTLE_ENDIAN
-      stk <<= (__WORDSIZE - 23);
-#elif __WORDSIZE == 64
-      stk <<= 31;
-#endif
-      ret ^= stk;
-      /* Avoid GCC being too smart.  */
-      p = (unsigned char *) &errno;
-      asm ("" : "=r" (stk) : "r" (p));
-      stk &= 0x7fff00;
-#if __BYTE_ORDER == __LITTLE_ENDIAN
-      stk <<= (__WORDSIZE - 29);
-#else
-      stk >>= 8;
-#endif
-      ret ^= stk;
     }
   else
 #endif

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                                 |  174 +
 ChangeLog.16                              |   17 -
 Makeconfig                                |    6 +-
 NEWS                                      |   15 +-
 Rules                                     |   18 +-
 assert/assert-perr.c                      |   54 +-
 assert/assert.c                           |   51 +-
 elf/Makefile                              |   99 +-
 elf/dl-close.c                            |    2 +-
 elf/dl-open.c                             |   64 +-
 elf/tst-stackguard1.c                     |    8 +-
 elf/tst-tls19.c                           |   27 +
 elf/tst-tls19mod1.c                       |   15 +
 elf/tst-tls19mod2.c                       |   13 +
 elf/tst-tls19mod3.c                       |   16 +
 fedora/glibc.spec.in                      |   27 +-
 iconv/loop.c                              |    8 +-
 iconvdata/Makefile                        |    2 +-
 iconvdata/bug-iconv8.c                    |   43 +
 iconvdata/cp932.c                         |   76 +-
 iconvdata/gb18030.c                       |43269 ++++++--------
 include/assert.h                          |    8 +-
 include/stdlib.h                          |   11 +-
 include/unistd.h                          |    2 +
 io/dup3.c                                 |    3 +-
 libio/Makefile                            |    4 +-
 libio/bug-fclose1.c                       |  132 +
 libio/fileops.c                           |   35 +-
 libio/freopen.c                           |   64 +-
 libio/freopen64.c                         |   61 +-
 libio/libio.h                             |    4 +-
 libio/oldfileops.c                        |    9 +-
 libio/tst_putwc.c                         |   11 +-
 locale/iso-639.def                        |    1 +
 localedata/ChangeLog                      |   68 +-
 localedata/charmaps/GB18030               |100648 ++++++++---------------------
 localedata/locales/dz_BT                  |  700 -
 localedata/locales/en_SG                  |   15 +-
 localedata/locales/iso14651_t1_common     | 1383 +
 localedata/locales/se_NO                  |   58 +-
 localedata/locales/sl_SI                  |    2 +
 localedata/locales/sv_FI                  |   54 +-
 login/Makefile                            |    4 +-
 login/programs/pt_chown.c                 |    4 +-
 malloc/mtrace.c                           |   83 +-
 misc/error.c                              |    6 +-
 misc/pselect.c                            |   14 +-
 nis/Makefile                              |    4 +-
 nptl/ChangeLog                            |    9 -
 nptl/tst-stackguard1.c                    |    8 +-
 nscd/Makefile                             |   10 +-
 posix/Makefile                            |    4 +-
 posix/getopt.c                            |   79 +-
 posix/regex.h                             |   21 +-
 posix/tst-getopt_long1.c                  |   62 +
 scripts/config.guess                      |  483 +-
 scripts/config.sub                        |  270 +-
 stdlib/abort.c                            |    5 +-
 stdlib/putenv.c                           |   25 +-
 sysdeps/generic/dl-osinfo.h               |   30 +-
 sysdeps/generic/elf/backtracesymsfd.c     |    6 +-
 sysdeps/ia64/backtrace.c                  |   27 +-
 sysdeps/posix/libc_fatal.c                |   35 +-
 sysdeps/pthread/aio_misc.c                |    8 +-
 sysdeps/unix/sysv/linux/dl-osinfo.h       |   75 +-
 sysdeps/unix/sysv/linux/ia64/sysconf.c    |   20 +-
 sysdeps/unix/sysv/linux/kernel-features.h |    3 +-
 sysdeps/unix/sysv/linux/libc_fatal.c      |   36 +-
 sysdeps/unix/sysv/linux/sysconf.c         |   50 +-
 sysdeps/unix/sysv/linux/x86_64/sys/user.h |   86 +-
 70 files changed, 47862 insertions(+), 100882 deletions(-)
 create mode 100644 elf/tst-tls19.c
 create mode 100644 elf/tst-tls19mod1.c
 create mode 100644 elf/tst-tls19mod2.c
 create mode 100644 elf/tst-tls19mod3.c
 create mode 100644 iconvdata/bug-iconv8.c
 create mode 100644 libio/bug-fclose1.c
 create mode 100644 posix/tst-getopt_long1.c


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]