SRU LP292429 Error when copying directory tree with Nautilus to ~/Private using ecryptfs

Jim Lieb jim.lieb at
Tue Nov 18 02:13:24 GMT 2008

OriginalAuthor: Michael Halcrow <mhalcrow at>
Bug: #292429

On Wed, Nov 12, 2008 at 12:36:10PM -0600, Michael Halcrow wrote:
> Looks like crypt_stat->key is not page-aligned on this older AMD
> architecture. This is a legitimate bug in eCryptfs and needs to be
> fixed upstream. I think I will just grab a page via page_alloc() to
> use as a temporary buffer for the crypto API scatterlist ops.

On second thought, it might make more sense just to allocate a couple
of scatterlist structs on the stack every time instead. See if this
patch resolves the problem. It tests fine for me on my Intel
processor, and I expect it will resolve the problem on the AMD

This patch is not in the upstream yet. We expect it may appear
in a different form later.

Committer: Jim Lieb <lieb at>
Signed-off-by: Michael Halcrow <mhalcrow at>
Signed-off-by: Jim Lieb <jim.lieb at>
 fs/ecryptfs/keystore.c |   31 ++++++++++++++-----------------
 1 files changed, 14 insertions(+), 17 deletions(-)

The raw diff is attached

Jim Lieb
Ubuntu Kernel Team
Canonical Ltd.
jim.lieb at

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-UBUNTU-SAUCE-Error-when-copying-directory-tree-wit.patch
Type: text/x-patch
Size: 4972 bytes
Desc: not available
Url : 

More information about the kernel-team mailing list