exportfs: don't assume that ->iterate() won't feed us too long entries
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 6 Sep 2013 20:55:36 +0000 (16:55 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 7 Sep 2013 23:54:55 +0000 (19:54 -0400)
commitdfc59e2c90f780653e7b0b749c2a547a9bb1b2ce
tree79f0b0f0867348e16390e58e2e5282722dedf372
parent5d8943b04bab62614559f308b4e39533ca7f8e08
exportfs: don't assume that ->iterate() won't feed us too long entries

On some filesystems it's impossible even with fs corruption, but we'd
better not rely on that, what with memcpy() into on-stack array we
are doing there.

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