[Bug 842647] Re: [git] file blocks duplicated at the end of the file
The Precise Pangolin has reached end of life, so this bug will not be fixed for that release ** Changed in: ecryptfs-utils (Ubuntu Precise) Status: Triaged => Won't Fix -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/842647 Title: [git] file blocks duplicated at the end of the file To manage notifications about this bug go to: https://bugs.launchpad.net/ecryptfs/+bug/842647/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 842647] Re: [git] file blocks duplicated at the end of the file
Any news? The oldest bug insofar. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/842647 Title: [git] file blocks duplicated at the end of the file To manage notifications about this bug go to: https://bugs.launchpad.net/ecryptfs/+bug/842647/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 842647] Re: [git] file blocks duplicated at the end of the file
It looks like the same problem is present also in Ubuntu 14.04 LTS. After stating a 190k files with `find` and `grep`, the kernel log is full of ecryptfs_decrypt_page: Error attempting to read lower page; rc = [-4] ecryptfs_readpage: Error decrypting page; rc = [-4] Couldn't these printk from ecryptfs be augmented with some additional information? At least to make sure that we are all hitting the same bug. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/842647 Title: [git] file blocks duplicated at the end of the file To manage notifications about this bug go to: https://bugs.launchpad.net/ecryptfs/+bug/842647/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 842647] Re: [git] file blocks duplicated at the end of the file
I can confirm that the following error message still happens on 3.11.0-19-generic (x86_64) [66675.577535] ecryptfs_decrypt_page: Error attempting to read lower page; rc = [-4] [66675.577540] ecryptfs_readpage: Error decrypting page; rc = [-4] My workload is mostly git based -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/842647 Title: [git] file blocks duplicated at the end of the file To manage notifications about this bug go to: https://bugs.launchpad.net/ecryptfs/+bug/842647/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 842647] Re: [git] file blocks duplicated at the end of the file
3.11.0-13-generic (i386), same problem. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/842647 Title: [git] file blocks duplicated at the end of the file To manage notifications about this bug go to: https://bugs.launchpad.net/ecryptfs/+bug/842647/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 842647] Re: [git] file blocks duplicated at the end of the file
I still get this [1] running 3.10rc7 without using git. Is there a way to find out which files are/got corrupted ? [1] ecryptfs_decrypt_page: Error attempting to read lower page; rc = [-4] ecryptfs_readpage: Error decrypting page; rc = [-4] -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/842647 Title: [git] file blocks duplicated at the end of the file To manage notifications about this bug go to: https://bugs.launchpad.net/ecryptfs/+bug/842647/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 842647] Re: [git] file blocks duplicated at the end of the file
** Changed in: ecryptfs-utils (Ubuntu Precise) Milestone: ubuntu-12.04 => None ** Tags removed: rls-mgr-p-tracking rls-p-tracking -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/842647 Title: [git] file blocks duplicated at the end of the file To manage notifications about this bug go to: https://bugs.launchpad.net/ecryptfs/+bug/842647/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 842647] Re: [git] file blocks duplicated at the end of the file
The attachment "[PATCH] eCryptfs: Ensure i_size is set in ecryptfs_getattr()" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report. [This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.] ** Tags added: patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/842647 Title: [git] file blocks duplicated at the end of the file To manage notifications about this bug go to: https://bugs.launchpad.net/ecryptfs/+bug/842647/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 842647] Re: [git] file blocks duplicated at the end of the file
I'm still not able to consistently reproduce this issue anymore. I've built amd64 test kernels for Oneiric and Precise. For those affected, please give the kernels a try and leave a comment as to whether or not the bug is fixed. http://people.canonical.com/~tyhicks/ecryptfs/842647/ -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/842647 Title: [git] file blocks duplicated at the end of the file To manage notifications about this bug go to: https://bugs.launchpad.net/ecryptfs/+bug/842647/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 842647] Re: [git] file blocks duplicated at the end of the file
Proposed fix against the current upstream kernel (3.4-rc0). ** Patch added: "[PATCH] eCryptfs: Ensure i_size is set in ecryptfs_getattr()" https://bugs.launchpad.net/ecryptfs/+bug/842647/+attachment/2942156/+files/0001-eCryptfs-Ensure-i_size-is-set-in-ecryptfs_getattr.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/842647 Title: [git] file blocks duplicated at the end of the file To manage notifications about this bug go to: https://bugs.launchpad.net/ecryptfs/+bug/842647/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 842647] Re: [git] file blocks duplicated at the end of the file
** Changed in: ecryptfs-utils (Ubuntu Precise) Milestone: ubuntu-12.04-beta-2 => ubuntu-12.04 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/842647 Title: [git] file blocks duplicated at the end of the file To manage notifications about this bug go to: https://bugs.launchpad.net/ecryptfs/+bug/842647/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 842647] Re: [git] file blocks duplicated at the end of the file
Plaintext passthrough has been broken by design for a very long time, and practically impossible to support. I'm in favor of deprecating the current implementation and hopefully replacing it with a better approach eventually. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/842647 Title: [git] file blocks duplicated at the end of the file To manage notifications about this bug go to: https://bugs.launchpad.net/ecryptfs/+bug/842647/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 842647] Re: [git] file blocks duplicated at the end of the file
The patch I linked to in comment 10 breaks plaintext passthrough support. The logic around handling plaintext passthrough and the metadata-in-xattrs feature is very delicate in this part of the code. I'd love to deprecate/remove those two "features" in future kernels, as they're rarely used by anyone, but we need a fix that is backportable. I'm going to think this through a little more and I hope to have a new patch this later this evening. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/842647 Title: [git] file blocks duplicated at the end of the file To manage notifications about this bug go to: https://bugs.launchpad.net/ecryptfs/+bug/842647/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 842647] Re: [git] file blocks duplicated at the end of the file
Unfortunately, I'm not able to consistently reproduce this anymore. I can trigger it once every so often, but not consistent enough to give me much confidence. I've developed a proposed patch and pushed it to a temporary location here: http://git.kernel.org/?p=linux/kernel/git/tyhicks/ecryptfs.git;a=commitdiff;h=4b08d9cf379be83641b8d7e0eea56e14a8e20cc3 I'm in the process of building test kernels for Precise and 11.10 in hopes that I can get some testing from iroli and others affected before I push the fix upstream. I'll provide links to the test kernels when they're done building. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/842647 Title: [git] file blocks duplicated at the end of the file To manage notifications about this bug go to: https://bugs.launchpad.net/ecryptfs/+bug/842647/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 842647] Re: [git] file blocks duplicated at the end of the file
** Changed in: ecryptfs-utils (Ubuntu Precise) Milestone: ubuntu-12.04-beta-1 => ubuntu-12.04-beta-2 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/842647 Title: [git] file blocks duplicated at the end of the file To manage notifications about this bug go to: https://bugs.launchpad.net/ecryptfs/+bug/842647/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 842647] Re: [git] file blocks duplicated at the end of the file
** Tags added: rls-mgr-p-tracking -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/842647 Title: [git] file blocks duplicated at the end of the file To manage notifications about this bug go to: https://bugs.launchpad.net/ecryptfs/+bug/842647/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 842647] Re: [git] file blocks duplicated at the end of the file
** Also affects: ecryptfs-utils (Ubuntu Precise) Importance: High Assignee: Tyler Hicks (tyhicks) Status: Triaged ** Tags added: rls-p-tracking ** Changed in: ecryptfs-utils (Ubuntu Precise) Milestone: None => ubuntu-12.04-beta-1 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/842647 Title: [git] file blocks duplicated at the end of the file To manage notifications about this bug go to: https://bugs.launchpad.net/ecryptfs/+bug/842647/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 842647] Re: [git] file blocks duplicated at the end of the file
Confirmed with current 3.2-rc7 kernel. ** Changed in: ecryptfs Importance: Undecided => High ** Changed in: ecryptfs Status: New => In Progress ** Changed in: ecryptfs Assignee: (unassigned) => Tyler Hicks (tyhicks) ** Changed in: ecryptfs-utils (Ubuntu) Status: In Progress => Triaged -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/842647 Title: [git] file blocks duplicated at the end of the file To manage notifications about this bug go to: https://bugs.launchpad.net/ecryptfs/+bug/842647/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 842647] Re: [git] file blocks duplicated at the end of the file
Thanks - I can reproduce this and have tracked down the problem. We're missing an eCryptfs metadata read, in the ecryptfs_getattr() path, after a metadata read in the lookup() path fails. This results in a stat() call returning an incorrect inode size and then subsequent read()'s not adding up to the correct file size. I've started on a fix, but will need a bit more time, as this code is fragile and needs improvements outside of this bug. ** Changed in: ecryptfs-utils (Ubuntu) Status: Confirmed => In Progress ** Also affects: ecryptfs Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/842647 Title: [git] file blocks duplicated at the end of the file To manage notifications about this bug go to: https://bugs.launchpad.net/ecryptfs/+bug/842647/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 842647] Re: [git] file blocks duplicated at the end of the file
just ran into the short read again -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/842647 Title: [git] file blocks duplicated at the end of the file To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ecryptfs-utils/+bug/842647/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs