[PATCH] sanitize anon_inode_getfd()
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 23 Feb 2008 11:46:49 +0000 (06:46 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 1 May 2008 17:08:50 +0000 (13:08 -0400)
commit2030a42cecd4dd1985a2ab03e25f3cd6106a5ca8
tree7cb4710c3f7a4e034a20890f0df99bc42f9bbcee
parent9f3acc3140444a900ab280de942291959f0f615d
[PATCH] sanitize anon_inode_getfd()

a) none of the callers even looks at inode or file returned by anon_inode_getfd()
b) any caller that would try to look at those would be racy, since by the time
it returns we might have raced with close() from another thread and that
file would be pining for fjords.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/anon_inodes.c
fs/eventfd.c
fs/eventpoll.c
fs/signalfd.c
fs/timerfd.c
include/linux/anon_inodes.h
virt/kvm/kvm_main.c