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.27.12~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a48a68982ebfabe032a0ae8a60c4ca6f1b180ade;p=pandora-kernel.git eCryptfs: check readlink result was not an error before using it commit a17d5232de7b53d34229de79ec22f4bb04adb7e4 upstream. 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed