]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commitd426378d4c8b5ecc84ae7cc945aa537498f0cd47
tree7cb4710c3f7a4e034a20890f0df99bc42f9bbcee
parent1d6c867bd0427523e9316b9e2fdbd57b3ba810d5
[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