]> granicus.if.org Git - libtirpc/commit
Race in Race in clnt_vc_create libtirpc-0-2-4-rc3
authorSigned-off-by: Susant Sahani <ssahani@redhat.com>
Mon, 25 Nov 2013 19:09:04 +0000 (14:09 -0500)
committerSteve Dickson <steved@redhat.com>
Mon, 25 Nov 2013 19:10:49 +0000 (14:10 -0500)
commit2fb4a883262ecf32d54acda9ff9b96b4a1913a1a
treee292db7054c1861f6baf59feb8fadad882b52e6c
parent514c713abc2ed83e551befa8e0273fb913030448
Race in Race in clnt_vc_create

 The function clnt_create is *not* thread safe. Race conditions in the
function clnt_vc_create that accesses static data disrupt, which is
*not* protected by any mutex. When more than one thread access it
it has become a nonlocal side effect . This race conditions can lead to
undesired behaviour . By introducing the mutex disrupt_lock
the function clnt_vc_create is serialized

Signed-off-by: Susant Sahani <ssahani@redhat.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
src/clnt_vc.c
src/mt_misc.c