FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu Kernel Team

 
 
LinkBack Thread Tools
 
Old 08-22-2012, 10:44 AM
Colin King
 
Default eCryptfs: Initialize empty lower files when opening them

From: Colin Ian King <colin.king@canonical.com>

BugLink: https://launchpad.net/bugs/911507

SRU justification:

Impact:

eCryptfs only initialized lower files in the ecryptfs_create() path.
A number of users have reported empty lower files in beneath their
eCryptfs mounts. The presence of empty files causes problems due to
the lack of proper cryptographic metadata.

Fix:

Backport upstream commit e3ccaa9761200952cc269b1f4b7d7bb77a5e071b

Testcase:

http://bazaar.launchpad.net/~colin-king/ecryptfs/test-fixes/revision/723

sudo ./tests/run_tests.sh -K -c safe -b 1000000 -D /tmp/image -l /lower -u /upper
-f ext2,ext3,ext4,xfs,btrfs -t lp-911507.sh

Without the fix, this test fails. With the fix, it passes.

Note: Tested this against all other eCryptfs tests to ensure we don't regress
plus did 1+ hour soak test of multiple parallel builds.

Colin Ian King (1):
eCryptfs: Initialize empty lower files when opening them

fs/ecryptfs/ecryptfs_kernel.h | 1 +
fs/ecryptfs/file.c | 71 ++++++++++++++++++++++++++---------------
fs/ecryptfs/inode.c | 2 +-
3 files changed, 47 insertions(+), 27 deletions(-)

--
1.7.9.5


--
kernel-team mailing list
kernel-team@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kernel-team
 
Old 08-22-2012, 10:44 AM
Colin King
 
Default eCryptfs: Initialize empty lower files when opening them

From: Colin Ian King <colin.king@canonical.com>

BugLink: https://launchpad.net/bugs/911507

SRU justification:

Impact:

eCryptfs only initialized lower files in the ecryptfs_create() path.
A number of users have reported empty lower files in beneath their
eCryptfs mounts. The presence of empty files causes problems due to
the lack of proper cryptographic metadata.

Fix:

Backport upstream commit e3ccaa9761200952cc269b1f4b7d7bb77a5e071b

Testcase:

http://bazaar.launchpad.net/~colin-king/ecryptfs/test-fixes/revision/723

sudo ./tests/run_tests.sh -K -c safe -b 1000000 -D /tmp/image -l /lower -u /upper
-f ext2,ext3,ext4,xfs,btrfs -t lp-911507.sh

Without the fix, this test fails. With the fix, it passes.

Note: Tested this against all other eCryptfs tests to ensure we don't regress
plus did 1+ hour soak test of multiple parallel builds.

Colin Ian King (1):
eCryptfs: Initialize empty lower files when opening them

fs/ecryptfs/ecryptfs_kernel.h | 1 +
fs/ecryptfs/file.c | 70 ++++++++++++++++++++++++++---------------
fs/ecryptfs/inode.c | 2 +-
3 files changed, 47 insertions(+), 26 deletions(-)

--
1.7.9.5


--
kernel-team mailing list
kernel-team@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kernel-team
 

Thread Tools




All times are GMT. The time now is 11:37 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org