android_kernel_google_msm/fs/ecryptfs
Michael Halcrow 04fb28bc51 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: Zefan Li <lizefan@huawei.com>
2015-04-14 17:33:43 +08:00
..
crypto.c eCryptfs: Remove buggy and unnecessary write in file name decode routine 2015-04-14 17:33:43 +08:00
debug.c
dentry.c
ecryptfs_kernel.h eCryptfs: Initialize empty lower files when opening them 2012-10-21 09:28:01 -07:00
file.c eCryptfs: Force RO mount when encrypted view is enabled 2015-04-14 17:33:40 +08:00
inode.c ecryptfs: avoid to access NULL pointer when write metadata in xattr 2015-02-02 17:04:47 +08:00
Kconfig
keystore.c ecryptfs: Fix memory leakage in keystore.c 2014-06-07 16:02:04 -07:00
kthread.c eCryptfs: Properly check for O_RDONLY flag before doing privileged open 2012-07-16 09:04:26 -07:00
main.c eCryptfs: Force RO mount when encrypted view is enabled 2015-04-14 17:33:40 +08:00
Makefile
messaging.c
miscdev.c
mmap.c eCryptfs: Revert to a writethrough cache model 2012-10-21 09:28:01 -07:00
read_write.c
super.c