]> err.no Git - linux-2.6/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)
commit9b4f526cdc0f95f635607dfba6ac788b3deca188
treef9f324dbd88856fdaeff1d0146059806bacba26f
parented1524371716466e9c762808b02601d0d0276a92
[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