kernel-fxtec-pro1x/fs/f2fs
Daniel Rosenberg 2787c00032 FROMLIST: f2fs: Handle casefolding with Encryption
This expands f2fs's casefolding support to include encrypted
directories. For encrypted directories, we use the siphash of the
casefolded name. This ensures there is no direct way to go from an
unencrypted name to the stored hash on disk without knowledge of the
encryption policy keys.

Additionally, we switch to using the vfs layer's casefolding support
instead of storing this information inside of f2fs's private data.

Signed-off-by: Daniel Rosenberg <drosen@google.com>
Note: Fixed some missing type conversions, crypto length issue
      and hash check for ciphertext name
Test: Boots, /data/media is case insensitive
Bug: 138322712
Link: https://lore.kernel.org/linux-f2fs-devel/20200208013552.241832-1-drosen@google.com/T/#t
Change-Id: I8f1e324472668e27d3e059cc80e4c981ce89dd9b
2020-02-28 03:36:20 +00:00
..
acl.c f2fs: Replace spaces with tab 2019-05-08 21:35:15 -07:00
acl.h f2fs: add SPDX license identifiers 2018-11-20 13:58:35 -08:00
checkpoint.c f2fs: don't keep META_MAPPING pages used for moving verity file blocks 2020-01-28 10:36:47 -08:00
compress.c ANDROID: f2fs: fix missing blk-crypto changes 2020-02-13 21:28:09 +00:00
data.c ANDROID: f2fs: fix missing blk-crypto changes 2020-02-13 21:28:09 +00:00
debug.c f2fs: Add f2fs stats to sysfs 2020-01-28 10:36:50 -08:00
dir.c FROMLIST: f2fs: Handle casefolding with Encryption 2020-02-28 03:36:20 +00:00
extent_cache.c f2fs: introduce f2fs_<level> macros to wrap f2fs_printk() 2019-07-11 18:47:33 -07:00
f2fs.h FROMLIST: f2fs: Handle casefolding with Encryption 2020-02-28 03:36:20 +00:00
file.c ANDROID: f2fs: remove unused function 2020-02-19 03:08:01 +00:00
gc.c f2fs: Add f2fs stats to sysfs 2020-01-28 10:36:50 -08:00
gc.h f2fs: add SPDX license identifiers 2018-11-20 13:58:35 -08:00
hash.c FROMLIST: f2fs: Handle casefolding with Encryption 2020-02-28 03:36:20 +00:00
inline.c FROMLIST: f2fs: Handle casefolding with Encryption 2020-02-28 03:36:20 +00:00
inode.c f2fs: support data compression 2020-01-28 10:36:48 -08:00
Kconfig fscrypt: Allow modular crypto algorithms 2020-02-13 15:03:58 -08:00
Makefile f2fs: support data compression 2020-01-28 10:36:48 -08:00
namei.c FROMLIST: fscrypt: Have filesystems handle their d_ops 2020-02-28 03:36:12 +00:00
node.c f2fs: show f2fs instance in printk_ratelimited 2019-12-02 15:05:28 -08:00
node.h f2fs: check PageWriteback flag for ordered case 2019-01-02 15:38:01 -08:00
recovery.c f2fs: support aligned pinned file 2019-12-02 15:04:08 -08:00
segment.c f2fs: change to use rwsem for gc_mutex 2020-01-28 10:36:50 -08:00
segment.h f2fs: update f2fs document regarding to fsync_mode 2020-01-28 10:36:50 -08:00
shrinker.c f2fs: fix sbi->extent_list corruption issue 2019-02-12 19:47:17 +01:00
super.c FROMLIST: f2fs: Handle casefolding with Encryption 2020-02-28 03:36:20 +00:00
sysfs.c FROMLIST: f2fs: Use generic casefolding support 2020-02-28 03:35:57 +00:00
trace.c f2fs: do not use mutex lock in atomic context 2019-04-05 22:32:59 +02:00
trace.h f2fs: add SPDX license identifiers 2018-11-20 13:58:35 -08:00
verity.c fs-verity: implement readahead of Merkle tree pages 2020-02-13 15:14:14 -08:00
xattr.c f2fs: fix to avoid memory leakage in f2fs_listxattr 2019-12-02 15:04:04 -08:00
xattr.h f2fs: add fs-verity support 2019-09-23 14:11:57 -07:00