From: Erez Zadok Date: Sat, 21 May 2011 05:19:59 +0000 (-0400) Subject: VFS: move BUG_ON test for symlink nd->depth after current->link_count test X-Git-Tag: v2.6.39.1~126 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=084013b8e040a1414f83e5574d2716019c180a11;p=pandora-kernel.git VFS: move BUG_ON test for symlink nd->depth after current->link_count test commit 1a4022f88d40e1255920b017556092ab926d7f66 upstream. 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: Erez Zadok Acked-by: Miklos Szeredi Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed