Fix racy use of anon_inode_getfd() in perf_event.c
commit66717b5727eca77ce1acac4c838a73eb244ce8d6
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 26 May 2010 21:40:29 +0000 (26 17:40 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Jul 2010 18:10:30 +0000 (5 11:10 -0700)
tree1ac40aee855b2dbfc60ef813421479fa7c9b1535
parentdade84df1cbb483d9398f7fb62c35d9aebad4beb
Fix racy use of anon_inode_getfd() in perf_event.c

commit ea635c64e007061f6468ece5cc9cc62d41d4ecf2 upstream.

once anon_inode_getfd() is called, you can't expect *anything* about
struct file that descriptor points to - another thread might be doing
whatever it likes with descriptor table at that point.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
kernel/perf_event.c