[Bug dynamic-link/13862] Reuse of cached stack can cause bounds overrun of thread DTV

foelsche at sbcglobal dot net sourceware-bugzilla@sourceware.org
Tue May 1 00:02:00 GMT 2012


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.



More information about the Glibc-bugs mailing list