android_kernel_google_msm/fs/f2fs
Jaegeuk Kim 84d0f07b55 f2fs crypto: check for too-short encrypted file names
This patch adopts:
	ext4 crypto: check for too-short encrypted file names

An encrypted file name should never be shorter than an 16 bytes, the
AES block size.  The 3.10 crypto layer will oops and crash the kernel
if ciphertext shorter than the block size is passed to it.

Fortunately, in modern kernels the crypto layer will not crash the
kernel in this scenario, but nevertheless, it represents a corrupted
directory, and we should detect it and mark the file system as
corrupted so that e2fsck can fix this.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2016-10-29 23:12:30 +08:00
..
acl.c
acl.h
checkpoint.c f2fs: fix missing skip pages info 2016-10-29 23:12:30 +08:00
crypto.c f2fs crypto: f2fs_page_crypto() doesn't need a encryption context 2016-10-29 23:12:30 +08:00
crypto_fname.c f2fs crypto: check for too-short encrypted file names 2016-10-29 23:12:30 +08:00
crypto_key.c f2fs crypto: fix spelling typo in comment 2016-10-29 23:12:30 +08:00
crypto_policy.c
data.c f2fs crypto: f2fs_page_crypto() doesn't need a encryption context 2016-10-29 23:12:30 +08:00
debug.c f2fs: monitor the number of background checkpoint 2016-10-29 23:12:25 +08:00
dir.c f2fs: use wait_for_stable_page to avoid contention 2016-10-29 23:12:28 +08:00
extent_cache.c f2fs: remove unneeded pointer conversion 2016-10-29 23:12:29 +08:00
f2fs.h f2fs crypto: f2fs_page_crypto() doesn't need a encryption context 2016-10-29 23:12:30 +08:00
f2fs_crypto.h
file.c f2fs: increase i_size to avoid missing data 2016-10-29 23:12:30 +08:00
gc.c f2fs: remove unneeded pointer conversion 2016-10-29 23:12:29 +08:00
gc.h f2fs: detect idle time depending on user behavior 2016-10-29 23:12:25 +08:00
hash.c
inline.c f2fs: delete unnecessary wait for page writeback 2016-10-29 23:12:28 +08:00
inode.c f2fs: use wait_for_stable_page to avoid contention 2016-10-29 23:12:28 +08:00
Kconfig
Makefile
namei.c f2fs: clean up f2fs_balance_fs 2016-10-29 23:12:25 +08:00
node.c f2fs: fix missing skip pages info 2016-10-29 23:12:30 +08:00
node.h f2fs: use wait_for_stable_page to avoid contention 2016-10-29 23:12:28 +08:00
recovery.c f2fs: remove unneeded pointer conversion 2016-10-29 23:12:29 +08:00
segment.c f2fs: introduce f2fs_submit_merged_bio_cond 2016-10-29 23:12:30 +08:00
segment.h f2fs: fix conflict on page->private usage 2016-10-29 23:12:30 +08:00
shrinker.c f2fs: speed up shrinking extent tree entries 2016-10-29 23:12:22 +08:00
super.c f2fs: flush bios to handle cp_error in put_super 2016-10-29 23:12:29 +08:00
trace.c
trace.h
xattr.c f2fs: use wait_for_stable_page to avoid contention 2016-10-29 23:12:28 +08:00
xattr.h