DragonFly commits List (threaded) for 2008-02
DragonFly BSD
DragonFly commits List (threaded) for 2008-02
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

cvs commit: src/sys/kern kern_nrandom.c


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 16 Feb 2008 12:40:47 -0800 (PST)

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 <robin_carey5@yahoo.co.uk>
  
  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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]