glibc/elf
Martin von Gagern d26dfc60ed Fix handling of static TLS in dlopen'ed objects
When dynamically loading a library along with several dependencies, calls to
_dl_add_to_slotinfo and _dl_update_slotinfo can become intermixed. As a
consequence, _dl_update_slotinfo will update the generation counter of the dtv
although not all of the slots belonging to that generation have been added.
Subsequent calls to _dl_add_to_slotinfo will add more slots to the same
generation, for which no storage will be allocated, as the dtv generation
checks will claim no work is necessary. This will lead to uninitialized dtv
entries and will likely cause a SIGSEGV when thread local variables are
accessed.
2011-05-14 21:25:43 -04:00
..
cache.c Remove doubled words. 2011-04-22 21:34:32 -04:00
check-execstack.c Fix check-execstack test 2011-01-13 16:21:55 -05:00
check-localplt.c
check-textrel.c
chroot_canon.c Simplify OOM handling in ldconfig. 2010-05-03 13:33:13 -07:00
circleload1.c
circlemod1.c
circlemod1a.c
circlemod2.c
circlemod2a.c
circlemod3.c
circlemod3a.c
constload1.c
constload2.c
constload3.c
dblload.c
dblloadmod1.c
dblloadmod2.c
dblloadmod3.c
dblunload.c
dep1.c
dep2.c
dep3.c
dep4.c
dl-addr.c
dl-brk.c
dl-cache.c Obey LD_HWCAP_MASK in ld.so.cache lookups. 2010-04-05 19:47:27 -07:00
dl-caller.c
dl-close.c static tls memory leak on TLS_DTV_AT_TP archs 2011-05-07 21:27:51 -04:00
dl-conflict.c
dl-debug.c
dl-deps.c Fix memory leak in dlopen with RTLD_NOLOAD. 2011-02-25 20:49:48 -05:00
dl-dst.h Fix assertion when handling DSTs during auditing. 2011-01-12 23:10:00 -05:00
dl-environ.c
dl-error.c
dl-execstack.c
dl-fini.c Fix ordering of DSO constructors and destructors. 2011-01-19 16:00:11 -05:00
dl-fptr.c
dl-init.c
dl-iteratephdr.c Don't deadlock in __dl_iterate_phdr while (un)loading objects. 2010-05-03 08:08:28 -07:00
dl-libc.c Whitespace cleanup. 2010-09-21 13:53:31 -07:00
dl-load.c Fix up testing for valid $ORIGIN use 2011-05-11 00:15:38 -04:00
dl-lookup.c Fix resizing able for unique symbols when adding symbol for copy relocation 2011-05-12 21:59:09 -04:00
dl-minimal.c
dl-misc.c Remove warning and little optimization. 2009-07-16 07:18:53 -07:00
dl-object.c Remove doubled words. 2011-04-22 21:34:32 -04:00
dl-open.c Fix handling of static TLS in dlopen'ed objects 2011-05-14 21:25:43 -04:00
dl-origin.c
dl-profile.c
dl-profstub.c
dl-reloc.c static tls memory leak on TLS_DTV_AT_TP archs 2011-05-07 21:27:51 -04:00
dl-runtime.c Fix passing symbol value to pltexit callbacks when ld.so auditing. 2011-02-02 11:50:49 -05:00
dl-sbrk.c
dl-scope.c Break out _dl_scope_free into its own file. 2009-07-27 13:23:00 -07:00
dl-support.c Make PowerPC64 default to nonexecutable stack 2010-12-19 22:49:01 -05:00
dl-sym.c Fix up whitespaces. 2009-11-06 09:34:23 -08:00
dl-symaddr.c
dl-sysdep.c Fix vDSO synthetic hwcap handling so they are not masked out from ld.so.cache matching. 2010-07-20 19:09:50 -07:00
dl-tls.c Fix memory leak in TLS of loaded objects. 2011-04-10 22:43:01 -04:00
dl-trampoline.c
dl-tsd.c
dl-version.c Don't pass NULL occation to dl_signal_cerror 2010-07-06 08:09:54 -07:00
do-rel.h
dynamic-link.h Use correct type when casting d_tag. 2010-01-18 07:24:09 -08:00
elf.h elf.h: Define R_ARM_IRELATIVE reloc type. 2011-04-19 09:38:42 -07:00
enbl-secure.c
failobj.c
filter.c
filtmod1.c
filtmod2.c
firstobj.c
gen-trusted-dirs.awk
genrtldtbl.awk
global.c
globalmod1.c
ifuncdep1.c
ifuncdep1pic.c
ifuncdep2.c Uglify IFUNC tests for PPC. 2009-10-30 00:48:54 -07:00
ifuncdep2pic.c
ifuncdep5.c
ifuncdep5pic.c
ifuncmain1.c Uglify IFUNC tests for PPC. 2009-10-30 00:48:54 -07:00
ifuncmain1pic.c
ifuncmain1picstatic.c
ifuncmain1pie.c
ifuncmain1static.c
ifuncmain1staticpic.c
ifuncmain1staticpie.c
ifuncmain1vis.c Uglify IFUNC tests for PPC. 2009-10-30 00:48:54 -07:00
ifuncmain1vispic.c
ifuncmain1vispie.c
ifuncmain2.c Uglify IFUNC tests for PPC. 2009-10-30 00:48:54 -07:00
ifuncmain2pic.c
ifuncmain2picstatic.c
ifuncmain2static.c
ifuncmain3.c Properly handle STT_GNU_IFUNC symbols in do_sym. 2009-11-06 09:30:56 -08:00
ifuncmain4.c
ifuncmain4picstatic.c
ifuncmain4static.c
ifuncmain5.c Uglify IFUNC tests for PPC. 2009-10-30 00:48:54 -07:00
ifuncmain5pic.c
ifuncmain5picstatic.c
ifuncmain5pie.c
ifuncmain5static.c
ifuncmain5staticpic.c
ifuncmain6pie.c Uglify IFUNC tests for PPC. 2009-10-30 00:48:54 -07:00
ifuncmain7.c Uglify IFUNC tests for PPC. 2009-10-30 00:48:54 -07:00
ifuncmain7pic.c
ifuncmain7picstatic.c
ifuncmain7pie.c
ifuncmain7static.c
ifuncmod1.c Uglify IFUNC tests for PPC. 2009-10-30 00:48:54 -07:00
ifuncmod3.c Uglify IFUNC tests for PPC. 2009-10-30 00:48:54 -07:00
ifuncmod5.c Uglify IFUNC tests for PPC. 2009-10-30 00:48:54 -07:00
ifuncmod6.c
initfirst.c
interp.c
lateglobal.c
ldconfig.c ldconfig: don't crash on empty path in config file 2011-05-03 13:44:25 -04:00
ldd.bash.in Update copyright year. 2011-01-17 15:08:10 -05:00
link.h
loadfail.c
loadtest.c
ltglobmod1.c
ltglobmod2.c
Makefile Fix handling of static TLS in dlopen'ed objects 2011-05-14 21:25:43 -04:00
multiload.c
neededobj1.c
neededobj2.c
neededobj3.c
neededobj4.c
neededobj5.c
neededobj6.c
neededtest2.c
neededtest3.c
neededtest4.c
neededtest.c
next.c
nextmod1.c
nextmod2.c
nodel2mod1.c
nodel2mod2.c
nodel2mod3.c
nodelete2.c
nodelete.c
nodelmod1.c
nodelmod2.c
nodelmod3.c
nodelmod4.c
nodlopen2.c
nodlopen.c
nodlopenmod2.c
nodlopenmod.c
noload.c Fix memory leak in dlopen with RTLD_NOLOAD. 2011-02-25 20:49:48 -05:00
order2.c
order2mod1.c
order2mod2.c
order2mod3.c
order2mod4.c
order.c
origtest.c
pathoptobj.c
preloadtest.c
readelflib.c
readlib.c
reldep2.c
reldep3.c
reldep4.c
reldep4mod1.c
reldep4mod2.c
reldep4mod3.c
reldep4mod4.c
reldep5.c
reldep6.c
reldep6mod0.c
reldep6mod1.c
reldep6mod2.c
reldep6mod3.c
reldep6mod4.c
reldep7.c
reldep7mod1.c
reldep7mod2.c
reldep8.c
reldep8mod1.c
reldep8mod2.c
reldep8mod3.c
reldep9.c
reldep9mod1.c
reldep9mod2.c
reldep9mod3.c
reldep.c
reldepmod1.c
reldepmod2.c
reldepmod3.c
reldepmod4.c
reldepmod5.c
reldepmod6.c
resolvfail.c
restest1.c
restest2.c
rtld-Rules Remove use of ranlib. 2011-02-15 14:52:29 -05:00
rtld.c Move setting variable in relro data earlier in ld.so. 2011-02-20 07:24:56 -05:00
sln.c
sofini.c Remove .ctors' and .dtors' output sections 2010-12-24 20:14:37 -05:00
soinit.c Pretty printing. 2010-12-24 20:15:45 -05:00
sprof.c Update copyright year. 2011-01-17 15:08:10 -05:00
stackguard-macros.h
testobj1_1.c
testobj1.c
testobj2.c
testobj3.c
testobj4.c
testobj5.c
testobj6.c
testobj.h
tls-macros.h fix powerpc macros in tls-macros.h 2010-02-12 05:32:09 -08:00
tlsdeschtab.h
tst-addr1.c
tst-align2.c
tst-align.c
tst-alignmod2.c
tst-alignmod.c
tst-array1-static.c
tst-array1.c
tst-array1.exp
tst-array2.c
tst-array2.exp
tst-array2dep.c
tst-array3.c
tst-array4.c
tst-array4.exp
tst-array5-static.c
tst-array5-static.exp
tst-array5.c
tst-array5.exp
tst-array5dep.c
tst-audit1.c
tst-audit2.c
tst-audit3.c Fix whitespace in last patch. 2009-07-02 04:34:35 -07:00
tst-audit4.c Add AVX support to ld.so auditing for x86-64. 2009-07-10 12:04:14 -07:00
tst-audit5.c Add AVX support to ld.so auditing for x86-64. 2009-07-10 12:04:14 -07:00
tst-audit6.c Support mixed SSE/AVX audit and check AVX only once. 2009-08-08 10:54:42 -07:00
tst-audit7.c Support mixed SSE/AVX audit and check AVX only once. 2009-08-08 10:54:42 -07:00
tst-auditmod1.c
tst-auditmod3a.c Fix whitespace in last patch. 2009-07-02 04:34:35 -07:00
tst-auditmod3b.c Fix handling of xmm6 in ld.so audit hooks on x86-64. 2009-07-02 04:33:12 -07:00
tst-auditmod4a.c Add AVX support to ld.so auditing for x86-64. 2009-07-10 12:04:14 -07:00
tst-auditmod4b.c Add AVX support to ld.so auditing for x86-64. 2009-07-10 12:04:14 -07:00
tst-auditmod5a.c Add AVX support to ld.so auditing for x86-64. 2009-07-10 12:04:14 -07:00
tst-auditmod5b.c Add AVX support to ld.so auditing for x86-64. 2009-07-10 12:04:14 -07:00
tst-auditmod6a.c Support mixed SSE/AVX audit and check AVX only once. 2009-08-08 10:54:42 -07:00
tst-auditmod6b.c Support mixed SSE/AVX audit and check AVX only once. 2009-08-08 10:54:42 -07:00
tst-auditmod6c.c Support mixed SSE/AVX audit and check AVX only once. 2009-08-08 10:54:42 -07:00
tst-auditmod7a.c Support mixed SSE/AVX audit and check AVX only once. 2009-08-08 10:54:42 -07:00
tst-auditmod7b.c Support mixed SSE/AVX audit and check AVX only once. 2009-08-08 10:54:42 -07:00
tst-deep1.c
tst-deep1mod1.c
tst-deep1mod2.c
tst-deep1mod3.c
tst-dlmodcount.c
tst-dlmopen1.c
tst-dlmopen1mod.c
tst-dlmopen2.c
tst-dlmopen3.c
tst-dlopenrpath.c
tst-dlopenrpathmod.c
tst-execstack-mod.c
tst-execstack-needed.c
tst-execstack-prog.c
tst-execstack.c Add cast in tst-execstack to avoid warning. 2009-10-30 09:26:00 -07:00
tst-global1.c
tst-initorder.c Fix ordering of DSO constructors and destructors. 2011-01-19 16:00:11 -05:00
tst-initorder.exp Fix ordering of DSO constructors and destructors. 2011-01-19 16:00:11 -05:00
tst-initordera1.c Fix ordering of DSO constructors and destructors. 2011-01-19 16:00:11 -05:00
tst-initordera2.c Fix ordering of DSO constructors and destructors. 2011-01-19 16:00:11 -05:00
tst-initordera3.c Fix ordering of DSO constructors and destructors. 2011-01-19 16:00:11 -05:00
tst-initordera4.c Fix ordering of DSO constructors and destructors. 2011-01-19 16:00:11 -05:00
tst-initorderb1.c Fix ordering of DSO constructors and destructors. 2011-01-19 16:00:11 -05:00
tst-initorderb2.c Fix ordering of DSO constructors and destructors. 2011-01-19 16:00:11 -05:00
tst-leaks1.c
tst-order-a1.c Fix ordering of DSO constructors and destructors. 2011-01-19 16:00:11 -05:00
tst-order-a2.c Fix ordering of DSO constructors and destructors. 2011-01-19 16:00:11 -05:00
tst-order-a3.c Fix ordering of DSO constructors and destructors. 2011-01-19 16:00:11 -05:00
tst-order-a4.c Fix ordering of DSO constructors and destructors. 2011-01-19 16:00:11 -05:00
tst-order-b1.c Fix ordering of DSO constructors and destructors. 2011-01-19 16:00:11 -05:00
tst-order-b2.c Fix ordering of DSO constructors and destructors. 2011-01-19 16:00:11 -05:00
tst-order-main.c Fix ordering of DSO constructors and destructors. 2011-01-19 16:00:11 -05:00
tst-pathopt.c
tst-pathopt.sh
tst-pie1.c
tst-piemod1.c
tst-stackguard1-static.c
tst-stackguard1.c
tst-thrlock.c
tst-tls1-static.c
tst-tls1.c
tst-tls2-static.c
tst-tls2.c
tst-tls3.c
tst-tls4.c
tst-tls5.c
tst-tls6.c
tst-tls7.c
tst-tls8.c
tst-tls9-static.c
tst-tls9.c
tst-tls10.c
tst-tls10.h
tst-tls11.c
tst-tls12.c
tst-tls13.c
tst-tls14.c
tst-tls15.c
tst-tls16.c
tst-tls17.c
tst-tls18.c
tst-tls19.c Fix handling of static TLS in dlopen'ed objects 2011-05-14 21:25:43 -04:00
tst-tls19mod1.c Fix handling of static TLS in dlopen'ed objects 2011-05-14 21:25:43 -04:00
tst-tls19mod2.c Fix handling of static TLS in dlopen'ed objects 2011-05-14 21:25:43 -04:00
tst-tls19mod3.c Fix handling of static TLS in dlopen'ed objects 2011-05-14 21:25:43 -04:00
tst-tls-dlinfo.c
tst-tlsmod1.c
tst-tlsmod2.c
tst-tlsmod3.c
tst-tlsmod4.c
tst-tlsmod5.c
tst-tlsmod6.c
tst-tlsmod7.c
tst-tlsmod8.c
tst-tlsmod9.c
tst-tlsmod10.c
tst-tlsmod11.c
tst-tlsmod12.c
tst-tlsmod13.c
tst-tlsmod13a.c
tst-tlsmod14a.c
tst-tlsmod14b.c
tst-tlsmod15a.c
tst-tlsmod15b.c
tst-tlsmod16a.c
tst-tlsmod16b.c
tst-tlsmod17a.c
tst-tlsmod17b.c
tst-tlsmod18a.c
tst-unique1.c Handle unloading of DSO with a unique symbol definition. 2009-07-23 07:07:53 -07:00
tst-unique1mod1.c Implement STB_GNU_UNIQUE handling. 2009-07-09 23:52:22 -07:00
tst-unique1mod2.c Implement STB_GNU_UNIQUE handling. 2009-07-09 23:52:22 -07:00
tst-unique2.c Implement STB_GNU_UNIQUE handling. 2009-07-09 23:52:22 -07:00
tst-unique2mod1.c Implement STB_GNU_UNIQUE handling. 2009-07-09 23:52:22 -07:00
tst-unique2mod2.c Implement STB_GNU_UNIQUE handling. 2009-07-09 23:52:22 -07:00
tst-unique3.cc Fix copy relocations handling of unique objects. 2011-03-10 12:51:33 -05:00
tst-unique3.h Fix copy relocations handling of unique objects. 2011-03-10 12:51:33 -05:00
tst-unique3lib2.cc Fix copy relocations handling of unique objects. 2011-03-10 12:51:33 -05:00
tst-unique3lib.cc Fix copy relocations handling of unique objects. 2011-03-10 12:51:33 -05:00
tst-unique4.cc Fix resizing able for unique symbols when adding symbol for copy relocation 2011-05-12 21:59:09 -04:00
tst-unique4.h Fix resizing able for unique symbols when adding symbol for copy relocation 2011-05-12 21:59:09 -04:00
tst-unique4lib.cc Fix resizing able for unique symbols when adding symbol for copy relocation 2011-05-12 21:59:09 -04:00
unload2.c
unload2dep.c
unload2mod.c
unload3.c
unload3mod1.c
unload3mod2.c
unload3mod3.c
unload3mod4.c
unload4.c
unload4mod1.c
unload4mod2.c
unload4mod3.c
unload4mod4.c
unload5.c
unload6.c
unload6mod1.c
unload6mod2.c
unload6mod3.c
unload7.c
unload7mod1.c
unload7mod2.c
unload.c
unloadmod.c
Versions
vismain.c
vismod1.c
vismod2.c
vismod3.c
vismod.h