]> git.baikalelectronics.ru Git - kernel.git/commit
Don't reset ->total_link_count on nested calls of vfs_path_lookup()
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 6 Dec 2015 17:33:02 +0000 (12:33 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 6 Dec 2015 17:33:02 +0000 (12:33 -0500)
commit757c6ef6c3f13d2d693911d58a9050ee63b92119
tree09b9de3f1e714873e1cfb947257c2de5a1040f5f
parentd98ad252432e3ed774072b91961981211cdc597d
Don't reset ->total_link_count on nested calls of vfs_path_lookup()

we already zero it on outermost set_nameidata(), so initialization in
path_init() is pointless and wrong.  The same DoS exists on pre-4.2
kernels, but there a slightly different fix will be needed.

Cc: stable@vger.kernel.org # v4.2
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namei.c