file name too long when creating new file (ecryptfs_lookup: lookup_one_len() returned [-36] on lower_dentry)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
eCryptfs |
Fix Released
|
High
|
Unassigned | ||
ecryptfs-utils (Ubuntu) |
Invalid
|
High
|
Unassigned | ||
Natty |
Won't Fix
|
High
|
Unassigned | ||
Oneiric |
Won't Fix
|
High
|
Unassigned | ||
Precise |
Invalid
|
High
|
Tyler Hicks | ||
linux (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Natty |
Won't Fix
|
High
|
John Johansen | ||
Oneiric |
Won't Fix
|
High
|
John Johansen | ||
Precise |
Fix Released
|
High
|
Tyler Hicks |
Bug Description
===
IMPORTANT: eCryptfs can only store filenames of up to 143 characters when filename encryption is enabled. The remaining 112 characters are used for storing metadata such as the encrypted filename prefix, the signature of the filename encryption key, and an identifier for the cipher used, as well as random bytes to make /foo/file and /bar/file encrypt to different ciphertext and padding bytes to achieve proper cipher block size alignment.
This bug is considered 'fixed' by the upstream maintainers. The eCryptfs kernel error message has been reduced to a debug level log message and eCryptfs now correctly reports its maximum supported filename length through the statfs() syscall. This is all that can be done without implementing a completely new encrypted filename design. A design that allows 255 character filenames without introducing other design limitations has not been identified and no one is currently working to come up with such a design.
Please do not add comments or create new bugs saying that mv reports 'File name too long' or that you can't create a long filename in your eCryptfs mounts. It is an unfortunate design limitation that cannot be avoided at this time.
Please do create new bugs when an application generates filenames that are too long to be stored in an eCryptfs mount. The application may be able to use the statfs() syscall to check the filename length limits of eCryptfs. Note that this does not include something like a torrent or ftp client trying to download a file with a long filename. The application is not generating the filename in those cases, it is just downloading the file that the user told it to download.
===
When trying to create a new file with a relatively long filename (f. ex. dfkmqsdgjfmqsld
I get an error: file name to long, when in fact the file name is not to long, but the encrypted name created for this file is to long, so, the file was not created.
this is no problem when I try to create a file, but when I'm copying a lot of files to my home folder I get some: filename to long error's and it's hard to fix (first locate the file, create shorter name, move again)
so, maybe you could create a check for to long filenames?
I'm using ext4 here...
mv dfkmqsdgjfmqsld
mv: cannot stat `/home/
libecryptfs0:
Installed: 71-0ubuntu2
Candidate: 71-0ubuntu2
Version table:
*** 71-0ubuntu2 0
500 http://
100 /var/lib/
Changed in ecryptfs-utils (Ubuntu): | |
status: | New → Confirmed |
Changed in ecryptfs: | |
importance: | Wishlist → High |
Changed in ecryptfs-utils (Ubuntu): | |
importance: | Undecided → High |
summary: |
- file name to long when creating new file + file name to long when creating new file (ecryptfs_lookup: + lookup_one_len() returned [-36] on lower_dentry) |
Changed in ecryptfs: | |
status: | Confirmed → Triaged |
Changed in ecryptfs-utils (Ubuntu): | |
status: | Confirmed → Triaged |
Changed in linux (Ubuntu): | |
status: | New → In Progress |
assignee: | nobody → Tim Gardner (timg-tpi) |
Changed in linux (Ubuntu): | |
assignee: | Tim Gardner (timg-tpi) → John Johansen (jjohansen) |
Changed in linux (Ubuntu): | |
milestone: | none → natty-alpha-2 |
summary: |
- file name to long when creating new file (ecryptfs_lookup: + file name too long when creating new file (ecryptfs_lookup: lookup_one_len() returned [-36] on lower_dentry) |
Changed in linux (Ubuntu): | |
importance: | Undecided → High |
Changed in linux (Ubuntu): | |
milestone: | natty-alpha-2 → natty-alpha-3 |
Changed in linux (Ubuntu Natty): | |
milestone: | natty-alpha-3 → ubuntu-11.04-beta-1 |
Changed in linux (Ubuntu Natty): | |
milestone: | ubuntu-11.04-beta-1 → none |
status: | In Progress → Won't Fix |
Changed in ecryptfs-utils (Ubuntu Natty): | |
status: | Triaged → Won't Fix |
Changed in linux (Ubuntu): | |
assignee: | John Johansen (jjohansen) → nobody |
importance: | High → Undecided |
status: | In Progress → Invalid |
Changed in ecryptfs-utils (Ubuntu Oneiric): | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in linux (Ubuntu Oneiric): | |
importance: | Undecided → Medium |
tags: | added: rls-mgr-o-tracking |
Changed in ecryptfs-utils (Ubuntu Oneiric): | |
status: | Triaged → Won't Fix |
Changed in linux (Ubuntu Oneiric): | |
importance: | Medium → High |
status: | In Progress → Won't Fix |
tags: |
added: rls-mgr-p-tracking removed: rls-mgr-o-tracking |
tags: |
added: rls-p-tracking removed: rls-mgr-p-tracking |
Changed in ecryptfs-utils (Ubuntu Precise): | |
milestone: | none → precise-alpha-2 |
Changed in linux (Ubuntu Precise): | |
milestone: | none → precise-alpha-2 |
tags: | added: bjf-debug |
tags: | removed: bjf-debug |
Changed in linux (Ubuntu Precise): | |
status: | In Progress → Fix Released |
Changed in ecryptfs: | |
status: | Triaged → In Progress |
Changed in ecryptfs-utils (Ubuntu Precise): | |
status: | Triaged → Invalid |
Changed in ecryptfs-utils (Ubuntu Precise): | |
status: | Invalid → Confirmed |
Changed in ecryptfs-utils (Ubuntu Precise): | |
status: | Confirmed → Invalid |
description: | updated |
description: | updated |
To clarify:
When I enter perfectly valid names (for my filesystem) some "become" to invalid after encryption, and thus I get an error...