This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug dynamic-link/13862] Reuse of cached stack can cause bounds overrun of thread DTV
- From: "foelsche at sbcglobal dot net" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Tue, 01 May 2012 00:01:56 +0000
- Subject: [Bug dynamic-link/13862] Reuse of cached stack can cause bounds overrun of thread DTV
- Auto-submitted: auto-generated
- References: <bug-13862-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=13862
Peter Foelsche <foelsche at sbcglobal dot net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |foelsche at sbcglobal dot
| |net
--- Comment #3 from Peter Foelsche <foelsche at sbcglobal dot net> 2012-05-01 00:01:56 UTC ---
I wrote pthread_key_create(), pthread_key_delete (), pthread_getspecific (),
pthread_setspecific()
and an empty
_dl_allocate_tls_init()
and it seems to be working.
All this is using an
typedef std::map<pthread_t, void *> CThread2VoidStar;
typedef std::map<pthread_key_t, CThread2VoidStar> CKey2Thread2VoidStar;
and a spinlock to protect against parallel access.
I'm not following what loaded dlls have to do with this.
53 lines of code...
I ignored the parameter
void (*__destr_function) (void *)
for now -- but this would also be pretty easy.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.