From: Michael Halcrow Date: Wed, 26 Nov 2014 17:09:16 +0000 (-0800) Subject: eCryptfs: Remove buggy and unnecessary write in file name decode routine X-Git-Tag: omap-for-v3.19/fixes-rc1~16^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=942080643bce061c3dd9d5718d3b745dcb39a8bc;p=pandora-kernel.git eCryptfs: Remove buggy and unnecessary write in file name decode routine Dmitry Chernenkov used KASAN to discover that eCryptfs writes past the end of the allocated buffer during encrypted filename decoding. This fix corrects the issue by getting rid of the unnecessary 0 write when the current bit offset is 2. Signed-off-by: Michael Halcrow Reported-by: Dmitry Chernenkov Suggested-by: Kees Cook Cc: stable@vger.kernel.org # v2.6.29+: 51ca58d eCryptfs: Filename Encryption: Encoding and encryption functions Signed-off-by: Tyler Hicks --- Reading git-diff-tree failed