Ticket #986 (closed defect: fixed)

Opened 10 years ago

Last modified 8 years ago

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

comment:2 Changed 8 years ago by andersk

  • Fixed in version set to 2.1-0debathena1

comment:3 Changed 8 years ago by andersk

  • Status changed from development to proposed

comment:4 Changed 8 years ago by jdreed

  • Status changed from proposed to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.