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_kernel.h
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
keystore.c
kthread.c
main.c eCryptfs: Force RO mount when encrypted view is enabled 2015-01-08 09:58:17 -08:00
Makefile
messaging.c
miscdev.c
mmap.c
read_write.c
super.c