]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Jul 2010 18:21:55 +0000 (11:21 -0700)
commit9521ba4ae1028e06707b86050fe9e204bae3d818
tree1ef76d2ace7815706e66171540626ed98fedd5da
parent81bec1f57bc4d87c74a4f7643a9bf6e57878b44f
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