pthread_mutex_unlock potentially cause invalid access

Roland McGrath roland@hack.frob.com
Fri Feb 10 21:17:00 GMT 2012


> Possible fix would be copying the 'private' argument to an internal
> local variable before atomic_exchange_rel().  Is it an appropriate fix?

That seems right to me off hand.  But I'm not really the expert on the
subtleties of this code.


Thanks,
Roland



More information about the Libc-alpha mailing list