ecryptfs sometimes seems to add trailing garbage to encrypted files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
eCryptfs |
Fix Released
|
High
|
Tyler Hicks | ||
linux (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Lucid |
Fix Released
|
Undecided
|
Colin Ian King | ||
Maverick |
Won't Fix
|
Undecided
|
Tim Gardner | ||
Natty |
Fix Released
|
Undecided
|
Tim Gardner | ||
Oneiric |
Fix Released
|
Medium
|
Unassigned | ||
Precise |
Fix Released
|
Undecided
|
Unassigned | ||
Quantal |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Quite frequently (about once per month), a file in my ecryptfs-encrypted home directory gets a few KiBs of extra trailing garbage bytes (it's usually padded up to about 12 KiB). I have only noticed the error in git repositories so far, probably because git creates a huge number of files, and because it doesn't tend to ignore trailing garbage anywhere.
The trailing garbage usually consists mostly of zero bytes; sometimes I have also seen it contain a copy of parts of the original file.
If I re-mount the ecryptfs volume (by logging out and logging in again), the trailing garbage always disappears; this is why I think it's caused by an ecryptfs bug. I cannot rule out a faulty RAM, either (I have only reproduced it on my laptop, which doesn't have ECC RAM).
I'm using x86-64 Ubuntu 9.10, my ecryptfs volume resides on an ext4 partition.
I understand that it's impossible for you to reproduce the problem given this report, but I'm willing to put some effort in tracking down the cause of this. Do you have any ideas on how I can extract useful debugging information the next time the problem occurs?
Related branches
tags: | added: kj-triage |
tags: | added: acpi-method-return |
Changed in ecryptfs: | |
status: | Triaged → In Progress |
tags: |
added: kernel-key removed: needs-kernel-logs needs-upstream-testing |
Changed in linux (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Medium |
assignee: | nobody → Andy Whitcroft (apw) |
Changed in linux (Ubuntu): | |
assignee: | Andy Whitcroft (apw) → John Johansen (jjohansen) |
Changed in linux (Ubuntu): | |
status: | Triaged → Incomplete |
Changed in ecryptfs: | |
status: | In Progress → Fix Committed |
Changed in ecryptfs: | |
status: | Fix Committed → Fix Released |
tags: | added: b73a1py79 |
Changed in linux (Ubuntu): | |
status: | Incomplete → Won't Fix |
Changed in linux (Ubuntu Oneiric): | |
status: | Won't Fix → Fix Released |
Changed in linux (Ubuntu Lucid): | |
assignee: | nobody → John Johansen (jjohansen) |
status: | New → In Progress |
Changed in linux (Ubuntu Maverick): | |
assignee: | nobody → John Johansen (jjohansen) |
status: | New → In Progress |
Changed in linux (Ubuntu Natty): | |
assignee: | nobody → John Johansen (jjohansen) |
status: | New → In Progress |
Changed in linux (Ubuntu Natty): | |
assignee: | John Johansen (jjohansen) → Tim Gardner (timg-tpi) |
Changed in linux (Ubuntu Maverick): | |
assignee: | John Johansen (jjohansen) → Tim Gardner (timg-tpi) |
Changed in linux (Ubuntu Oneiric): | |
assignee: | John Johansen (jjohansen) → nobody |
Changed in linux (Ubuntu Natty): | |
status: | In Progress → Fix Committed |
Changed in linux (Ubuntu Maverick): | |
status: | In Progress → Fix Committed |
Changed in linux (Ubuntu Lucid): | |
status: | In Progress → Fix Committed |
tags: | added: verification-needed-maverick |
tags: | added: verification-needed-lucid |
tags: |
added: verification-reverted-lucid removed: verification-needed-lucid |
tags: | added: verification-needed-natty |
tags: |
added: verification-reverted-maverick removed: verification-needed-maverick |
Changed in linux (Ubuntu Maverick): | |
status: | Fix Committed → Fix Released |
tags: |
added: verification-reverted-natty removed: verification-needed-natty |
Changed in linux (Ubuntu Maverick): | |
status: | Fix Released → Incomplete |
Changed in linux (Ubuntu Lucid): | |
status: | Fix Committed → Incomplete |
Changed in linux (Ubuntu Natty): | |
status: | Fix Committed → Incomplete |
Changed in linux (Ubuntu Natty): | |
status: | Incomplete → Fix Released |
Changed in linux (Ubuntu Lucid): | |
status: | Incomplete → Fix Released |
affects: | linux (Ubuntu Lucid) → nautilus (Ubuntu Lucid) |
affects: | nautilus (Ubuntu) → linux (Ubuntu) |
tags: | removed: verification-reverted-lucid |
Tyler-
You've chased down a few of this git-and- bzr-on- ecryptfs issues before... Any chance you can take a look at this?