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

DragonFly src repository

  Modified files:
    sys/kern             kern_nrandom.c 
  Log:
  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 <[EMAIL PROTECTED]>
  
  Revision  Changes    Path
  1.6       +5 -2      src/sys/kern/kern_nrandom.c


http://www.dragonflybsd.org/cvsweb/src/sys/kern/kern_nrandom.c.diff?r1=1.5&r2=1.6&f=u

Reply via email to