e2fsprogs/e2fsck
Daniel Rosenberg 79661036b4 AOSP: ANDROID: e2fsck: Do not mutate encrypted names
We can't mutate a name without the key, as this will at best cause the
name to become gibberish, and at worst may introduce invalid characters
or even fail to be unique after decoding, so drop duplicates instead.
Files lost in this way will be reconnected to lost+found

Fixes: dbff534ec6 ("e2fsck: suppress bad name checks for encrypted directories")
Signed-off-by: Daniel Rosenberg <drosen@google.com>
Google-Bug-Id: 138322712
Test: f_dup_de_crypt
Change-Id: I8d6cc3984872868a845fafabc554abdd86351fcc
From AOSP commit: 80b85f8a0b2ba7090a927f692ff9d2097ffd8d1f
2021-01-27 23:35:15 -05:00
..
Android.bp AOSP: Make e2fsck depends on badblocks 2021-01-27 23:34:30 -05:00
badblocks.c e2fsck: fix memory leak on error path in read_bad_blocks_files() 2014-01-07 09:10:24 -05:00
CHANGES Fix historic typos in changelogs and release notes 2017-10-15 23:19:22 -04:00
dirinfo.c e2fsck: fix e2fsck_allocate_memory() overflow 2020-02-29 18:24:42 -05:00
dx_dirinfo.c e2fsck: reduce memory usage for many directories 2020-02-29 18:29:00 -05:00
e2fsck.8.in AOSP: e2fsck: imply -f when using -E unshare_blocks 2018-06-21 10:14:47 -04:00
e2fsck.c e2fsck: set E2FSCK_TIME correctly on a 32-bit arch with a 64-bit time_t 2019-07-24 22:25:11 -04:00
e2fsck.conf.5.in e2fsck: add support for saving the problem code log 2019-05-06 10:15:41 -04:00
e2fsck.h e2fsck: use size_t instead of int in string_copy() 2020-10-01 16:51:46 -04:00
ea_refcount.c e2fsck: consistently use ext2fs_get_mem() 2020-03-04 18:10:14 -05:00
ehandler.c e2fsck: on read error, don't rewrite blocks past the end of the fs 2015-01-27 13:12:37 -05:00
emptydir.c e2fsck: consistently use ext2fs_get_mem() 2020-03-04 18:10:14 -05:00
extend.c e2fsck: consistently use ext2fs_get_mem() 2020-03-04 18:10:14 -05:00
extents.c e2fsck: consistently use ext2fs_get_mem() 2020-03-04 18:10:14 -05:00
flushb.c Shorten compile commands run by the build system 2011-09-18 17:34:37 -04:00
iscan.c debugfs, e2fsck: fix s_desc_size handling 2013-12-24 22:50:19 -05:00
jfs_user.h e2fsck: declare the size of bh->b_data to be 4096 in jfs_user.h 2021-01-27 16:41:05 -05:00
journal.c e2fsck: fix kernel compat functions to use kernel error return conventions 2018-07-04 00:18:30 -04:00
logfile.c e2fsck: fix e2fsck_allocate_memory() overflow 2020-02-29 18:24:42 -05:00
Makefile.in Define MKDIR_P in the Makefile.in files instead in MCONFIG.in 2020-10-04 23:05:01 -04:00
message.c Merge branch 'maint' into next 2017-10-15 23:20:53 -04:00
mtrace.awk Many files: 1997-04-26 13:21:57 +00:00
mtrace.c Shorten compile commands run by the build system 2011-09-18 17:34:37 -04:00
mtrace.h ChangeLog, super.c: 2001-01-12 21:05:57 +00:00
pass1.c e2fsck: fix off-by-one check when validating depth of an htree 2020-04-13 21:58:21 -04:00
pass1b.c e2fsck: consistently use ext2fs_get_mem() 2020-03-04 18:10:14 -05:00
pass2.c e2fsck: avoid overflow with very large dirs 2020-03-04 18:37:29 -05:00
pass3.c e2fsck: update the quota records when the root directory is recreated 2019-09-02 20:35:14 -04:00
pass4.c e2fsck: clarify overflow link count error message 2020-03-20 11:43:12 -04:00
pass5.c e2fsck: fix overflow if more than 4B inodes 2020-02-29 18:34:54 -05:00
problem.c AOSP: ANDROID: e2fsck: Do not mutate encrypted names 2021-01-27 23:35:15 -05:00
problem.h AOSP: ANDROID: e2fsck: Do not mutate encrypted names 2021-01-27 23:35:15 -05:00
problemP.h e2fsck: add support for saving the problem code log 2019-05-06 10:15:41 -04:00
quota.c e2fsck: add proper error checking in move_quota_inode 2018-06-24 13:52:10 -04:00
readahead.c e2fsck: fix hang in readahead code if last block in fs is metadata 2018-06-28 11:10:58 -04:00
recovery.c Fix typos in code comments and developer docs 2017-10-15 23:00:11 -04:00
region.c e2fsck: consistently use ext2fs_get_mem() 2020-03-04 18:10:14 -05:00
rehash.c AOSP: ANDROID: e2fsck: Do not mutate encrypted names 2021-01-27 23:35:15 -05:00
revoke.c Fix typos in error messages and documentation 2017-10-15 23:00:03 -04:00
scantest.c e2fsck: avoid mallinfo() if over 2GB allocated 2020-02-29 18:27:49 -05:00
sigcatcher.c Eliminate unused variable and unused label warnings from Android build 2015-07-13 10:47:16 -04:00
super.c e2fsck: use proper types for variables 2020-02-29 18:26:38 -05:00
unix.c Fix clang warnings 2021-01-23 00:57:18 -05:00
util.c e2fsck: use the right conversion specifier in e2fsck_allocate_memory() 2020-10-01 16:51:46 -04:00