git: PIPE - Fix more races in the pipe code
Matthew Dillon
dillon at crater.dragonflybsd.org
Sat Sep 5 13:16:59 PDT 2009
commit 1bfdcce2a8c8263c29626118d9e2416d0e1fb59e
Author: Matthew Dillon <dillon at 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 at 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
More information about the Commits
mailing list