Cutting or copying files on btrfs to ecryptfs results in data loss
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linux |
Unknown
|
Unknown
|
|||
eCryptfs |
Fix Released
|
Critical
|
Tyler Hicks | ||
linux (Ubuntu) |
Fix Released
|
Critical
|
Tyler Hicks | ||
Bug Description
I've installed a fresh copy of 14.04 beta 2 on a brand-new SSD. I used btrfs as the filesystem.
I set up a Private folder usying ecryptfs-
I copied a few folders into the Private folder, and the entire directory structure and subfolders are copied, including the files themselves, yet every file contains 0 bytes.
However, I can create and save new files in the Private directory.
Also, folders and files can be correctly copied if I use the command line cp -R.
Thanks,
Damon
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: nautilus 1:3.10.1-0ubuntu8
ProcVersionSign
Uname: Linux 3.13.0-23-generic x86_64
ApportVersion: 2.14.1-0ubuntu1
Architecture: amd64
CurrentDesktop: Unity
Date: Wed Apr 9 18:12:56 2014
EcryptfsInUse: Yes
GsettingsChanges: b'org.gnome.
InstallationDate: Installed on 2014-04-05 (4 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Beta amd64 (20140326)
ProcEnviron:
LANGUAGE=en_CA:en
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_CA.UTF-8
SHELL=/bin/bash
SourcePackage: nautilus
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in ecryptfs: | |
status: | New → Confirmed |
affects: | linux-meta (Ubuntu) → linux (Ubuntu) |
Changed in linux (Ubuntu): | |
status: | New → Confirmed |
tags: | added: kernel-bug-exists-upstream |
Changed in linux (Ubuntu): | |
assignee: | nobody → Tyler Hicks (tyhicks) |
Changed in ecryptfs: | |
assignee: | nobody → Tyler Hicks (tyhicks) |
importance: | Undecided → Critical |
tags: |
added: kernel-da-key removed: kernel-key |
no longer affects: | nautilus (Ubuntu) |
tags: | added: kernel-fs |
Changed in linux (Ubuntu): | |
status: | Confirmed → Triaged |
Changed in ecryptfs: | |
status: | Confirmed → Opinion |
Changed in ecryptfs: | |
status: | Opinion → Fix Released |
Changed in linux (Ubuntu): | |
status: | Triaged → Fix Released |
I can see that this bug still exists in the final release 14.04.
To replicate this bug, setup-private to install the Private subdirectory.
1.set up an SSD with BTRFS for root and home (all default settings).
2. Install 14.04.
3. Use ecryptfs-
4. Create a text file on the desktop (or any directory outside Private) with any text inside.
5. Use nautilus to copy the file (either ctrl-c, ctrl-v, or right-click menus) to the private directory.
6. File will show as copied, but will contain no text (0 bytes).
I just checked and this problem also occurs if the file is cut/pasted, meaning that anyone who tries to cut/paste files into the Private directory will lose that data. I think that's a somewhat serious issue. Ouch.