[7917] in athena10

home help back first fref pref prev next nref lref last post

[Debathena] #986: nss_nonlocal race condition

daemon@ATHENA.MIT.EDU (Debathena Trac)
Sat Jul 23 18:37:26 2011

MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
From: "Debathena Trac" <debathena@MIT.EDU>
Cc: debathena@mit.edu
To: andersk@mit.edu
Date: Sat, 23 Jul 2011 22:37:17 -0000
Reply-To: 
Message-ID: <044.e230390b35bef829b300970e64de975d@mit.edu>
Content-Transfer-Encoding: 8bit

#986: nss_nonlocal race condition----------------------+-----------------------------------------------------
 Reporter:  andersk   |       Owner:  andersk           
     Type:  defect    |      Status:  new               
 Priority:  low       |   Milestone:  The Distant Future
Component:  paranoia  |    Keywords:                    
 See_also:            |  
----------------------+----------------------------------------------------- There’s a race here because `fct_start` could be written before `startp`.
 Should throw up some memory barriers or something.

 {{{
     static service_user *startp = NULL;
     static void *fct_start = NULL;
     …
     if (fct_start == NULL &&
         w.lookup(&startp, w.fct_name, &fct_start) != 0) {
         *w.status = NSS_STATUS_UNAVAIL;
         goto walk_nss_out;
     }
 }}}
-- Ticket URL: <http://debathena.mit.edu/trac/ticket/986>Debathena <http://debathena.mit.edu/>MIT Debathena Project

home help back first fref pref prev next nref lref last post