Skip to content
Commit 2788cc47 authored by Al Viro's avatar Al Viro
Browse files

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: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 0f7ff2da
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment