From: Duane Griffin Date: Fri, 19 Dec 2008 20:47:10 +0000 (+0000) Subject: eCryptfs: check readlink result was not an error before using it X-Git-Tag: v2.6.29-rc1~549^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a17d5232de7b53d34229de79ec22f4bb04adb7e4;p=pandora-kernel.git eCryptfs: check readlink result was not an error before using it The result from readlink is being used to index into the link name buffer without checking whether it is a valid length. If readlink returns an error this will fault or cause memory corruption. Cc: Tyler Hicks Cc: Dustin Kirkland Cc: ecryptfs-devel@lists.launchpad.net Signed-off-by: Duane Griffin Acked-by: Michael Halcrow Acked-by: Tyler Hicks Signed-off-by: Al Viro --- Reading git-diff-tree failed