Ticket #986 (closed defect: fixed)
nss_nonlocal race condition
Reported by: | andersk | Owned by: | andersk |
---|---|---|---|
Priority: | low | Milestone: | The Distant Future |
Component: | paranoia | Keywords: | |
Cc: | Fixed in version: | 2.1-0debathena1 | |
Upstream bug: |
Description
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; }
Change History
Note: See
TracTickets for help on using
tickets.
http://andersk.mit.edu/gitweb/nss_nonlocal.git/commit/4893970472bd815b8dbb6f6058dd26358700110e
r26035