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

git: PIPE - Fix more races in the pipe code


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 5 Sep 2009 13:15:58 -0700 (PDT)

commit 1bfdcce2a8c8263c29626118d9e2416d0e1fb59e
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date:   Sat Sep 5 13:12:49 2009 -0700

    PIPE - Fix more races in the pipe code
    
    * Numerous additional races can occur with the setting and clearing of
      PIPE_SEL.
    
    * EOF must be retested after getting the second token lock because the
      acquisition of the second lock can temporarily release the first one.
    
    Reported-by: Tobias Weingartner <weingart@tepid.org>, Rumko

Summary of changes:
 sys/kern/sys_pipe.c |  101 ++++++++++++++++++++++++++++++++++++++++-----------
 1 files changed, 79 insertions(+), 22 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1bfdcce2a8c8263c29626118d9e2416d0e1fb59e


-- 
DragonFly BSD source repository



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