This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
Re: pthread_mutex_unlock potentially cause invalid access
- From: Roland McGrath <roland at hack dot frob dot com>
- To: Atsushi Nemoto <anemo at mba dot ocn dot ne dot jp>
- Cc: libc-alpha at sourceware dot org, libc-ports at sourceware dot org
- Date: Fri, 10 Feb 2012 13:16:42 -0800 (PST)
- Subject: Re: pthread_mutex_unlock potentially cause invalid access
- References: <20120210.234326.199788933.anemo@mba.ocn.ne.jp>
> 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