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

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


OriginalAuthor: Michael Halcrow <mhalcrow at us.ibm.com>
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
architecture.

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

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

The raw diff is attached

Jim
-- 
Jim Lieb
Ubuntu Kernel Team
Canonical Ltd.
jim.lieb at canonical.com



-------------- 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 : https://lists.ubuntu.com/archives/kernel-team/attachments/20081117/e06bbe73/attachment-0001.bin 


More information about the kernel-team mailing list