Alexandre Oliva f8aeae3473 Fix DTV race, assert, DTV_SURPLUS Static TLS limit, and nptl_db garbage
for  ChangeLog

	[BZ #17090]
	[BZ #17620]
	[BZ #17621]
	[BZ #17628]
	* NEWS: Update.
	* elf/dl-tls.c (_dl_update_slotinfo): Clean up outdated DTV
	entries with Static TLS too.  Skip entries past the end of the
	allocated DTV, from Alan Modra.
	(tls_get_addr_tail): Update to glibc_likely/unlikely.  Move
	Static TLS DTV entry set up from...
	 (_dl_allocate_tls_init): ... here (fix modid assertion), ...
	* elf/dl-reloc.c (_dl_nothread_init_static_tls): ... here...
	* nptl/allocatestack.c (init_one_static_tls): ... and here...
	* elf/dlopen.c (dl_open_worker): Drop l_tls_modid upper bound
	for Static TLS.
	* elf/tlsdeschtab.h (map_generation): Return size_t.  Check
	that the slot we find is associated with the given map before
	using its generation count.
	* nptl_db/db_info.c: Include ldsodefs.h.
	(rtld_global, dtv_slotinfo_list, dtv_slotinfo): New typedefs.
	* nptl_db/structs.def (DB_RTLD_VARIABLE): New macro.
	(DB_MAIN_VARIABLE, DB_RTLD_GLOBAL_FIELD): Likewise.
	(link_map::l_tls_offset): New struct field.
	(dtv_t::counter): Likewise.
	(rtld_global): New struct.
	(_rtld_global): New rtld variable.
	(dl_tls_dtv_slotinfo_list): New rtld global field.
	(dtv_slotinfo_list): New struct.
	(dtv_slotinfo): Likewise.
	* nptl_db/td_symbol_list.c: Drop gnu/lib-names.h include.
	(td_lookup): Rename to...
	(td_mod_lookup): ... this.  Use new mod parameter instead of
	LIBPTHREAD_SO.
	* nptl_db/td_thr_tlsbase.c: Include link.h.
	(dtv_slotinfo_list, dtv_slotinfo): New functions.
	(td_thr_tlsbase): Check DTV generation.  Compute Static TLS
	addresses even if the DTV is out of date or missing them.
	* nptl_db/fetch-value.c (_td_locate_field): Do not refuse to
	index zero-length arrays.
	* nptl_db/thread_dbP.h: Include gnu/lib-names.h.
	(td_lookup): Make it a macro implemented in terms of...
	(td_mod_lookup): ... this declaration.
	* nptl_db/db-symbols.awk (DB_RTLD_VARIABLE): Override.
	(DB_MAIN_VARIABLE): Likewise.
2015-03-17 00:31:49 -03:00
..
2002-07-17 00:34:35 +00:00
2002-06-30 07:17:02 +00:00
2002-07-17 00:34:35 +00:00
2002-07-17 00:34:35 +00:00
2002-07-17 00:34:35 +00:00
2002-06-30 07:17:02 +00:00
2001-01-21 17:15:50 +00:00
2000-12-17 17:50:56 +00:00
2001-09-06 01:03:05 +00:00
2001-09-06 01:03:05 +00:00
2000-12-15 16:03:57 +00:00
2000-12-15 16:03:57 +00:00
2000-12-15 16:03:57 +00:00
2000-12-15 16:03:57 +00:00
2015-01-21 01:51:10 -05:00
2015-01-08 08:02:43 -08:00
2000-12-17 17:50:56 +00:00
2000-08-19 07:17:09 +00:00
2000-12-17 17:50:56 +00:00
2000-12-17 17:50:56 +00:00
2001-02-06 10:38:10 +00:00
1999-05-03 21:59:35 +00:00
1998-03-05 16:42:56 +00:00
2001-03-21 07:21:34 +00:00
2001-04-06 15:23:41 +00:00
2009-06-03 16:21:40 -07:00
2009-06-22 15:07:40 -07:00
2009-06-22 15:07:40 -07:00
2013-06-05 20:44:03 +00:00
2009-06-22 15:07:40 -07:00
2013-06-05 20:44:03 +00:00
2009-10-30 00:48:54 -07:00
2009-06-03 16:21:40 -07:00
2009-10-30 00:48:54 -07:00
2009-06-22 15:07:40 -07:00
2009-06-22 15:07:40 -07:00
2009-06-22 15:07:40 -07:00
2009-06-22 15:07:40 -07:00
2009-06-22 15:07:40 -07:00
2009-10-30 00:48:54 -07:00
2009-10-30 00:48:54 -07:00
2009-06-22 15:07:40 -07:00
2009-06-22 15:07:40 -07:00
2009-06-22 15:07:40 -07:00
2009-06-22 15:07:40 -07:00
2009-10-30 00:48:54 -07:00
2009-06-22 15:07:40 -07:00
2001-02-02 06:54:15 +00:00
2004-04-21 18:58:31 +00:00
2000-11-26 06:18:02 +00:00
2006-03-01 06:18:49 +00:00
2000-12-17 17:50:56 +00:00
2000-12-15 16:03:57 +00:00
2015-03-04 14:11:39 -08:00
2000-11-26 06:18:02 +00:00
2000-12-17 17:50:56 +00:00
2000-12-17 17:50:56 +00:00
2000-12-17 17:50:56 +00:00
2000-12-17 17:50:56 +00:00
2000-12-31 06:09:08 +00:00
2000-12-31 06:09:08 +00:00
2012-01-07 23:57:22 -05:00
2006-03-01 06:18:49 +00:00
2000-11-26 06:18:02 +00:00
2000-12-17 17:50:56 +00:00
2000-12-17 17:50:56 +00:00
2003-01-12 10:11:16 +00:00
2000-11-26 06:18:02 +00:00
2000-08-25 19:33:19 +00:00
2000-08-25 19:33:19 +00:00
2000-12-17 17:50:56 +00:00
2000-08-25 19:33:19 +00:00
2002-02-10 22:40:17 +00:00
2000-07-21 04:42:21 +00:00
2002-03-03 19:43:30 +00:00
2000-07-21 04:42:21 +00:00
2000-11-26 06:18:02 +00:00
2000-11-26 06:18:02 +00:00
2000-12-17 17:50:56 +00:00
2000-12-15 16:03:57 +00:00
2001-09-08 17:45:32 +00:00
2013-08-21 19:48:48 +02:00
2001-09-22 15:44:07 +00:00
2001-05-22 23:55:23 +00:00
2001-06-22 13:50:51 +00:00
2001-05-22 23:55:23 +00:00
2001-06-22 13:50:51 +00:00
2001-09-22 15:44:35 +00:00
2003-01-12 10:11:16 +00:00
2001-10-01 00:14:14 +00:00
2001-10-01 00:14:14 +00:00
2001-10-01 00:14:14 +00:00
2001-10-01 00:14:14 +00:00
2001-10-01 00:14:14 +00:00
2002-04-15 17:10:22 +00:00
2002-04-15 17:10:22 +00:00
2002-04-15 17:10:22 +00:00
2002-12-30 20:25:40 +00:00
2002-12-30 20:25:40 +00:00
2002-12-30 20:25:40 +00:00
2002-12-30 20:25:40 +00:00
2003-01-12 10:11:16 +00:00
2003-01-12 10:11:16 +00:00
2003-01-12 10:11:16 +00:00
2003-01-12 10:11:16 +00:00
2013-08-21 19:48:48 +02:00
2000-12-17 17:50:56 +00:00
2000-12-17 17:50:56 +00:00
2000-12-17 17:50:56 +00:00
2000-12-17 17:50:56 +00:00
1999-08-02 19:56:07 +00:00
2000-11-26 06:18:02 +00:00
2001-05-22 22:30:18 +00:00
2000-12-15 16:03:57 +00:00
2000-12-15 16:03:57 +00:00
2000-12-15 16:03:57 +00:00
2000-12-15 16:03:57 +00:00
2000-12-15 16:03:57 +00:00
2000-12-15 16:03:57 +00:00
2013-06-05 20:44:03 +00:00
2003-01-27 21:03:22 +00:00
2003-01-27 21:03:22 +00:00
2005-07-07 23:00:02 +00:00
2005-07-07 23:00:02 +00:00
2005-07-07 23:00:02 +00:00
2005-07-07 23:00:02 +00:00
2005-07-07 23:00:02 +00:00
2004-09-23 07:45:38 +00:00
2004-09-23 07:45:38 +00:00
2004-09-23 07:45:38 +00:00
2004-09-23 07:45:38 +00:00
2004-10-14 02:08:23 +00:00
2004-10-27 20:27:40 +00:00
2004-10-14 02:08:23 +00:00
2004-10-28 06:53:20 +00:00
2004-07-16 17:56:45 +00:00
2012-05-17 22:00:57 +02:00
.
2007-07-31 13:33:18 +00:00
2013-10-18 19:45:36 +05:30
2013-10-18 19:45:36 +05:30
2013-10-18 19:45:36 +05:30
2013-10-18 19:45:36 +05:30
2013-10-18 19:45:36 +05:30
2013-10-18 19:45:36 +05:30
2013-10-18 19:45:36 +05:30
2013-10-18 19:45:36 +05:30
2013-10-18 19:45:36 +05:30
2013-10-18 19:45:36 +05:30
2013-10-18 19:45:36 +05:30
2005-03-20 22:25:59 +00:00
2011-09-10 14:34:15 -04:00
2011-09-10 14:34:15 -04:00
2011-09-10 14:34:15 -04:00
2003-04-17 19:19:29 +00:00
2003-07-24 20:07:00 +00:00
2005-03-20 22:25:59 +00:00
2006-03-01 06:18:49 +00:00
2000-12-17 17:50:56 +00:00
2000-12-17 17:50:56 +00:00
2005-03-03 08:28:23 +00:00
2005-03-03 08:28:23 +00:00
2005-03-03 08:28:23 +00:00
2005-03-03 08:28:23 +00:00
2005-03-18 10:54:53 +00:00
2005-03-18 10:54:53 +00:00
2005-04-27 01:39:11 +00:00
2011-08-24 09:32:13 +02:00
2006-03-01 06:18:49 +00:00
2000-08-26 23:41:19 +00:00
2003-03-29 03:46:03 +00:00