This is the mail archive of the glibc-bugs@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]

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


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.


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