Skip to content
Commit 1a4022f8 authored by Erez Zadok's avatar Erez Zadok Committed by Linus Torvalds
Browse files

VFS: move BUG_ON test for symlink nd->depth after current->link_count test



This solves a serious VFS-level bug in nested_symlink (which was
rewritten from do_follow_link), and follows the order of depth tests
that existed before.

The bug triggers a BUG_ON in fs/namei.c:1381, when running racer with
symlink and rename ops.

Signed-off-by: default avatarErez Zadok <ezk@cs.sunysb.edu>
Acked-by: default avatarMiklos Szeredi <mszeredi@suse.cz>
Cc: stable@kernel.org
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 05249755
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