linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* e2fsck on encrypted directories
@ 2017-07-28 10:02 Sahitya Tummala
  2017-08-01 14:33 ` Theodore Ts'o
  0 siblings, 1 reply; 4+ messages in thread
From: Sahitya Tummala @ 2017-07-28 10:02 UTC (permalink / raw)
  To: Theodore Ts'o, linux-ext4

Hi Ted,

I got a question on usage of e2fsck with -D option on EXT4 FS, where
file based encryption is enabled. Is this option supposed to work on
encrypted directories?

I have encountered a case where e2fsck gets stuck
in duplicate_search_and_fix() due to strncmp checks done in this function
on encrypted file names, which may contain NUL characters.

Also, even without -D option passed, there can be a case of duplicate 
entries (i.e.,
ctx->dirs_to_hash is not NULL). In this case too we may see the same issue
in duplicate_search_and_fix() if the directory is encrypted.
Is my understanding correct? Please share your comments.

Thanks,
Sahitya.

-- 
Qualcomm India Private Limited, on behalf of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-08-02  7:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-28 10:02 e2fsck on encrypted directories Sahitya Tummala
2017-08-01 14:33 ` Theodore Ts'o
2017-08-01 19:18   ` Eric Biggers
2017-08-02  7:13   ` Sahitya Tummala

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).