Greg Kroah-Hartman 7036251180 tty: fix race in tty_fasync
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 <ebiederm@xmission.com>
Cc: Al Viro <viro@ZenIV.linux.org.uk>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Tavis Ormandy <taviso@google.com>
Cc: Jeff Dike <jdike@addtoit.com>
Cc: Julien Tinnes <jln@google.com>
Cc: Matt Mackall <mpm@selenic.com>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-01-20 15:03:31 -08:00
..
2009-06-11 08:51:01 -07:00
2009-12-30 01:24:25 -05:00
2009-09-24 07:21:03 -07:00
2009-07-12 12:22:34 -07:00
2008-06-20 14:05:55 -06:00
2008-12-13 11:25:49 -08:00
2009-10-01 16:11:16 -07:00
2008-10-20 08:52:41 -07:00
2008-12-13 09:12:07 +00:00
2009-10-04 15:05:10 -07:00
2008-07-20 17:12:36 -07:00
2009-06-18 11:16:55 +10:00
2009-01-02 10:28:32 -08:00
2009-12-11 15:18:07 -08:00
2009-12-10 22:55:36 +01:00
2009-12-11 15:18:03 -08:00
2009-09-15 08:42:00 -07:00
2008-02-07 08:42:25 -08:00
2009-12-11 15:18:08 -08:00
2008-04-30 08:29:43 -07:00
2009-07-12 12:22:34 -07:00
2009-06-18 13:03:54 -07:00
2009-12-15 08:53:33 -08:00
2008-07-20 17:12:38 -07:00
2009-07-12 12:22:34 -07:00
2009-02-22 09:23:02 -08:00
2009-06-11 08:51:01 -07:00
2008-07-20 17:12:38 -07:00
2009-07-12 12:22:34 -07:00
2009-09-01 01:13:31 -07:00
2009-09-01 01:13:31 -07:00
2009-09-01 01:13:31 -07:00
2009-10-14 17:36:53 +02:00
2010-01-04 12:31:21 -08:00
2009-06-11 08:51:02 -07:00
2010-01-20 15:03:31 -08:00