Fix racy use of anon_inode_getfd() in perf_event.c
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 26 May 2010 21:40:29 +0000 (17:40 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 28 May 2010 02:03:08 +0000 (22:03 -0400)
commitea635c64e007061f6468ece5cc9cc62d41d4ecf2
treeeaa7123e7749893e8f542d12cba616664bc2c848
parentd7065da038227a4d09a244e6014e0186a6bd21d0
Fix racy use of anon_inode_getfd() in perf_event.c

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.

Cc: stable <stable@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
kernel/perf_event.c