ecryptfs corrupts files over 4GB size on i686
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
eCryptfs |
Fix Released
|
Critical
|
Tyler Hicks | ||
linux (Ubuntu) |
Fix Released
|
Critical
|
Tyler Hicks |
Bug Description
[SRU Justification]
Commit 24d15266bd86b79
regression on 32 bit architectures when writing past the 4 GB.
[Impact]
32 bit users experience corruption of large files.
[Fix]
A cast is needed when shifting the page's index. Colin and I independently
identified the problem. It is a simple fix that has been merged upstream:
http://
[Test Case]
Inside of an eCryptfs mount on an i686 Ubuntu install, create a file containing
4 GB + 1 page worth (4096 bytes) of zeros. Then inspect the file for non-zero
bytes.
$ rm zeros
$ dd if=/dev/zero of=zeros bs=4096 count=$
1052672+0 records in
1052672+0 records out
4311744512 bytes (4.3 GB) copied, 226.133 s, 19.1 MB/s
$ hexdump -C zeros
00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
101000000
The hexdump output should show all zeros. A non patched kernel will show
non-zero bytes.
[Original Bug Report]
on extracting files with extracted size >4 GB files are getting currupted.
interestingly file gets currupted in the very moment the file size gets more than 4GB.
ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: linux-image-
ProcVersionSign
Uname: Linux 3.11.0-12-generic i686
ApportVersion: 2.12.5-0ubuntu2
Architecture: i386
Date: Wed Oct 23 12:11:43 2013
EcryptfsInUse: Yes
InstallationDate: Installed on 2013-07-20 (94 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release i386 (20130424)
MarkForUpload: True
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
XDG_RUNTIME_
LANG=de_DE.UTF-8
SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: linux
UpgradeStatus: Upgraded to saucy on 2013-09-08 (45 days ago)
CVE References
tags: | added: kernel-bug-exists-upstream |
Changed in ecryptfs: | |
status: | New → Triaged |
Changed in linux (Ubuntu): | |
status: | Incomplete → Triaged |
Changed in ecryptfs: | |
importance: | Undecided → Critical |
assignee: | nobody → Tyler Hicks (tyhicks) |
Changed in linux (Ubuntu): | |
importance: | High → Critical |
tags: | added: kernel-da-key |
tags: |
added: kernel-key removed: kernel-da-key |
summary: |
- ecryptfs currupts files over 4GB size + ecryptfs currupts files over 4GB size on i686 |
Changed in ecryptfs: | |
status: | Triaged → In Progress |
Changed in linux (Ubuntu): | |
status: | Triaged → In Progress |
tags: | added: tasty |
tags: | added: patch |
description: | updated |
summary: |
- ecryptfs currupts files over 4GB size on i686 + ecryptfs corrupts files over 4GB size on i686 |
description: | updated |
Changed in ecryptfs: | |
status: | In Progress → Fix Committed |
tags: | removed: kernel-key |
Changed in linux (Ubuntu): | |
status: | In Progress → Fix Committed |
Changed in ecryptfs: | |
status: | Fix Committed → Fix Released |
This change was made by a bot.