]> git.karo-electronics.de Git - karo-tx-linux.git/commit
eCryptfs: check readlink result was not an error before using it
authorDuane Griffin <duaneg@dghda.com>
Fri, 19 Dec 2008 20:47:10 +0000 (20:47 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 18 Jan 2009 18:44:04 +0000 (10:44 -0800)
commitabf366bf652683be33a356640b53ef04b807442f
treedccc218f13f0beee445a223f8b6644835c530b45
parente283c6453018d3cec1d696fcd3ecaa9a72b7cff8
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 <tyhicks@linux.vnet.ibm.com>
Cc: Dustin Kirkland <kirkland@canonical.com>
Cc: ecryptfs-devel@lists.launchpad.net
Signed-off-by: Duane Griffin <duaneg@dghda.com>
Acked-by: Michael Halcrow <mhalcrow@us.ibm.com>
Acked-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/ecryptfs/inode.c