From: Greg Kroah-Hartman Date: Thu, 17 Dec 2009 15:07:19 +0000 (-0800) Subject: tty: fix race in tty_fasync X-Git-Tag: v2.6.27.45~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76c5f486172fd061715f21c926d61f7e83ea6377;p=pandora-kernel.git tty: fix race in tty_fasync commit 703625118069f9f8960d356676662d3db5a9d116 upstream. We need to keep the lock held over the call to __f_setown() to prevent a PID race. Thanks to Al Viro for pointing out the problem, and to Travis for making us look here in the first place. Cc: Eric W. Biederman Cc: Al Viro Cc: Alan Cox Cc: Linus Torvalds Cc: Tavis Ormandy Cc: Jeff Dike Cc: Julien Tinnes Cc: Matt Mackall Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed