]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] proc_readfd_common() race fix
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 22 Apr 2008 05:32:44 +0000 (01:32 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 22 Apr 2008 23:55:03 +0000 (19:55 -0400)
commit57a5c24856fbbcb70a9aa90e55eed4e5e136d171
treef9f324dbd88856fdaeff1d0146059806bacba26f
parentf8d771a876827446990f1d192e66df001a4a9e0c
[PATCH] proc_readfd_common() race fix

Since we drop the rcu_read_lock inside the loop, we can't assume
that files->fdt will remain unchanged (and not freed) between
iterations.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/proc/base.c