cvs commit: src/sys/kern kern_nrandom.c

Matthew Dillon dillon at
Sat Feb 16 12:41:45 PST 2008

dillon      2008/02/16 12:40:47 PST

DragonFly src repository

  Modified files:
    sys/kern             kern_nrandom.c 
  Fix an issue where the random number generator's random event injector
  can stall.  An interrupt could occur after rand_thread_signal is set to
  0 but before the injector thread deschedules itself, resulting in the
  interrupt waking up the thread before it has gone to sleep and stalling
  it forever.  Also swap around the variable ordering so the SMP race
  that occurs is non-harmful.  Continue to allow the race.
  Reported-by: Robin Carey <robin_carey5 at>
  Revision  Changes    Path
  1.6       +5 -2      src/sys/kern/kern_nrandom.c

More information about the Commits mailing list