android_kernel_samsung_msm8976/fs/ecryptfs
Michael Halcrow 66012982c8 eCryptfs: Remove buggy and unnecessary write in file name decode routine
commit 942080643bce061c3dd9d5718d3b745dcb39a8bc upstream.

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 <mhalcrow@google.com>
Reported-by: Dmitry Chernenkov <dmitryc@google.com>
Suggested-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-01-08 09:58:17 -08:00
..
crypto.c eCryptfs: Remove buggy and unnecessary write in file name decode routine 2015-01-08 09:58:17 -08:00
debug.c
dentry.c eCryptfs: Fix -Wunused-but-set-variable warnings 2013-01-17 11:36:10 -08:00
ecryptfs_kernel.h eCryptfs: Use the ablkcipher crypto API 2013-05-09 16:55:07 -07:00
file.c eCryptfs: Force RO mount when encrypted view is enabled 2015-01-08 09:58:17 -08:00
inode.c ecryptfs: avoid to access NULL pointer when write metadata in xattr 2014-10-30 09:35:13 -07:00
Kconfig Minor code cleanups and new Kconfig option to disable /dev/ecryptfs 2013-03-07 12:47:24 -08:00
keystore.c ecryptfs: Fix memory leakage in keystore.c 2013-11-13 12:05:31 +09:00
kthread.c eCryptfs: fix to use list_for_each_entry_safe() when delete items 2012-12-18 10:07:29 -06:00
main.c eCryptfs: Force RO mount when encrypted view is enabled 2015-01-08 09:58:17 -08:00
Makefile eCryptfs: allow userspace messaging to be disabled 2013-03-03 23:59:59 -08:00
messaging.c Minor code cleanups and new Kconfig option to disable /dev/ecryptfs 2013-03-07 12:47:24 -08:00
miscdev.c ecryptfs: close rmmod race 2013-04-09 14:08:16 -04:00
mmap.c eCryptfs: Avoid unnecessary disk read and data decryption during writing 2012-11-07 17:56:16 -08:00
read_write.c ecryptfs: don't open-code kernel_read() 2013-05-09 13:39:58 -04:00
super.c vfs: Rename end_writeback() to clear_inode() 2012-05-06 13:43:41 +08:00