Debian Bug report logs - #690071
ecryptfs: corrupted files on a disk full event

version graph

Package: src:linux; Maintainer for src:linux is Debian Kernel Team <debian-kernel@lists.debian.org>;

Reported by: Sebastian Heinlein <devel@glatzor.de>

Date: Tue, 9 Oct 2012 17:39:02 UTC

Severity: important

Tags: patch, upstream

Found in version linux/3.2.23-1

Forwarded to http://thread.gmane.org/gmane.comp.file-systems.ecryptfs.general/280

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian Kernel Team <debian-kernel@lists.debian.org>:
Bug#690071; Package src:linux. (Tue, 09 Oct 2012 17:39:04 GMT) (full text, mbox, link).


Acknowledgement sent to Sebastian Heinlein <devel@glatzor.de>:
New Bug report received and forwarded. Copy sent to Debian Kernel Team <debian-kernel@lists.debian.org>. (Tue, 09 Oct 2012 17:39:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Sebastian Heinlein <devel@glatzor.de>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: ecryptfs: corrupted files on a disk full event
Date: Tue, 09 Oct 2012 19:35:22 +0200
Package: src:linux
Version: 3.2.23-1
Severity: important

Dear Maintainer,

After a running into a full disk event with my ecrypts encrypted home directory
I get the following messages:

[ 1477.919780] Valid eCryptfs headers not found in file header region or
xattr region, inode 3328393
[ 1477.919788] Either the lower file is not in a valid eCryptfs format,
or the key could not be retrieved. Plaintext passthrough mode is not
enabled; returning -EIO

I see a lot of random broken files on my system:

~$ find $HOME/.Private/ -size 0c -exec ls '{}' \; | wc -l
84

See https://bugs.launchpad.net/ubuntu/+source/ecryptfs-utils/+bug/957843

It seems that there are patches available by Ubuntu.

Thanks

-- Package-specific info:
** Version:
Linux version 3.2.0-3-amd64 (Debian 3.2.23-1) (debian-kernel@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-8) ) #1 SMP Mon Jul 23 02:45:17 UTC 2012

** Command line:
BOOT_IMAGE=/boot/vmlinuz-3.2.0-3-amd64 root=UUID=797bb6e0-5087-4e85-a05b-28278b12e581 ro quiet splash pcie_aspm=force i915.i915_enable_rc6=1 i915.lvds_downclock=1

** Tainted: O (4096)
 * Out-of-tree module has been loaded.

** Kernel log:
[ 1318.082537] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1318.082548] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
[ 1318.082574] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1318.082581] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
[ 1323.076714] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1323.076725] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
[ 1323.076751] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1323.076758] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
[ 1328.071473] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1328.071484] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
[ 1328.071510] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1328.071518] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
[ 1333.065588] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1333.065599] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
[ 1333.065625] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1333.065632] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
[ 1338.060585] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1338.060597] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
[ 1338.060622] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1338.060630] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
[ 1343.055335] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1343.055347] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
[ 1343.055372] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1343.055380] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
[ 1348.050229] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1348.050240] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
[ 1348.050266] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1348.050273] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
[ 1353.045191] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1353.045203] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
[ 1353.045228] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1353.045236] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
[ 1358.040753] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1358.040764] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
[ 1358.040789] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1358.040797] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
[ 1363.035423] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1363.035434] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
[ 1363.035460] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1363.035468] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
[ 1368.030677] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1368.030688] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
[ 1368.030715] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1368.030722] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
[ 1373.025400] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1373.025411] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
[ 1373.025437] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1373.025444] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
[ 1378.020364] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1378.020375] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
[ 1378.020401] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1378.020408] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
[ 1383.015850] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1383.015861] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
[ 1383.015888] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1383.015895] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
[ 1388.010728] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1388.010739] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
[ 1388.010765] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1388.010773] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
[ 1393.005367] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1393.005377] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
[ 1393.005409] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1393.005416] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
[ 1398.000344] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1398.000355] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
[ 1398.000382] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1398.000389] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
[ 1402.995364] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1402.995375] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
[ 1402.995402] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1402.995409] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
[ 1407.990201] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1407.990212] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
[ 1407.990239] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1407.990246] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
[ 1412.984709] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1412.984720] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
[ 1412.984745] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1412.984753] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
[ 1417.979808] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1417.979819] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
[ 1417.979845] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1417.979852] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
[ 1422.975123] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1422.975134] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
[ 1422.975159] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1422.975167] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
[ 1427.970175] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1427.970187] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
[ 1427.970212] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1427.970219] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
[ 1432.965965] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1432.965976] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
[ 1432.966002] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1432.966010] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
[ 1437.960667] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1437.960678] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
[ 1437.960704] Valid eCryptfs headers not found in file header region or xattr region, inode 3328393
[ 1437.960711] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO

** Model information
sys_vendor: LENOVO
product_name: 4287CTO
product_version: ThinkPad X220
chassis_vendor: LENOVO
chassis_version: Not Available
bios_vendor: LENOVO
bios_version: 8DET52WW (1.22 )
board_vendor: LENOVO
board_name: 4287CTO
board_version: Not Available

** Loaded modules:
ecb
hidp
hid
ip6table_filter
ip6_tables
ebtable_nat
ebtables
ipt_MASQUERADE
iptable_nat
nf_nat
nf_conntrack_ipv4
nf_defrag_ipv4
xt_state
nf_conntrack
ipt_REJECT
xt_CHECKSUM
iptable_mangle
xt_tcpudp
iptable_filter
ip_tables
x_tables
bridge
stp
parport_pc
ppdev
lp
parport
rfcomm
bnep
pci_stub
vboxpci(O)
vboxnetadp(O)
cpufreq_powersave
vboxnetflt(O)
cpufreq_conservative
cpufreq_userspace
vboxdrv(O)
cpufreq_stats
xfrm_user
xfrm4_tunnel
tunnel4
ipcomp
xfrm_ipcomp
esp4
ah4
binfmt_misc
uinput
deflate
zlib_deflate
ctr
twofish_generic
twofish_x86_64_3way
twofish_x86_64
twofish_common
camellia
serpent
blowfish_generic
blowfish_x86_64
blowfish_common
cast5
des_generic
cbc
xcbc
rmd160
sha512_generic
sha256_generic
sha1_ssse3
sha1_generic
hmac
crypto_null
af_key
fuse
nfsd
nfs
nfs_acl
auth_rpcgss
fscache
lockd
sunrpc
loop
ecryptfs
dm_crypt
kvm_intel
kvm
joydev
snd_hda_codec_hdmi
snd_hda_codec_conexant
uvcvideo
videodev
cdc_wdm
v4l2_compat_ioctl32
media
cdc_ncm
usbnet
mii
cdc_acm
btusb
bluetooth
i915
snd_hda_intel
snd_hda_codec
snd_hwdep
arc4
iwlwifi
snd_pcm
snd_page_alloc
psmouse
thinkpad_acpi
drm_kms_helper
mac80211
drm
serio_raw
ac
tpm_tis
nvram
snd_seq
snd_seq_device
snd_timer
evdev
snd
battery
pcspkr
i2c_algo_bit
i2c_i801
i2c_core
tpm
iTCO_wdt
cfg80211
soundcore
coretemp
rfkill
power_supply
iTCO_vendor_support
tpm_bios
acpi_cpufreq
mperf
wmi
video
processor
button
ext4
crc16
jbd2
mbcache
dm_mod
sg
sd_mod
crc_t10dif
xhci_hcd
crc32c_intel
ghash_clmulni_intel
ahci
libahci
ehci_hcd
aesni_intel
usbcore
libata
usb_common
aes_x86_64
scsi_mod
aes_generic
cryptd
sdhci_pci
sdhci
e1000e
mmc_core
thermal
thermal_sys

** Network interface configuration:

auto lo
iface lo inet loopback

** Network status:
*** IP interfaces and addresses:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN qlen 1000
    link/ether f0:de:f1:5b:b6:7b brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether a0:88:b4:41:04:6c brd ff:ff:ff:ff:ff:ff
    inet 192.168.2.107/24 brd 192.168.2.255 scope global wlan0
    inet6 2001:4dd0:ff00:8aa6:2cad:a1b4:1377:d6f6/64 scope global temporary dynamic 
       valid_lft 86179sec preferred_lft 14179sec
    inet6 2001:4dd0:ff00:8aa6:a288:b4ff:fe41:46c/64 scope global dynamic 
       valid_lft 86179sec preferred_lft 14179sec
    inet6 fe80::a288:b4ff:fe41:46c/64 scope link 
       valid_lft forever preferred_lft forever
4: usb0: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast state DOWN qlen 1000
    link/ether 02:80:37:ec:02:00 brd ff:ff:ff:ff:ff:ff
5: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN 
    link/ether f6:b3:9f:94:a1:7a brd ff:ff:ff:ff:ff:ff
    inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0

*** Device statistics:
Inter-|   Receive                                                |  Transmit
 face |bytes    packets errs drop fifo frame compressed multicast|bytes    packets errs drop fifo colls carrier compressed
    lo:   11044     143    0    0    0     0          0         0    11044     143    0    0    0     0       0          0
  usb0:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0
virbr0:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0
 wlan0: 2633503    4214    0    0    0     0          0         0   528440    2900    0    0    0     0       0          0
  eth0:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0

*** Protocol statistics:
Ip:
    1647 total packets received
    0 forwarded
    0 incoming packets discarded
    1541 incoming packets delivered
    1636 requests sent out
    48 outgoing packets dropped
    4 dropped because of missing route
Icmp:
    56 ICMP messages received
    0 input ICMP message failed.
    ICMP input histogram:
        destination unreachable: 56
    56 ICMP messages sent
    0 ICMP messages failed
    ICMP output histogram:
        destination unreachable: 56
IcmpMsg:
        InType3: 56
        OutType3: 56
Tcp:
    100 active connections openings
    0 passive connection openings
    2 failed connection attempts
    4 connection resets received
    4 connections established
    2603 segments received
    2249 segments send out
    20 segments retransmited
    0 bad segments received.
    40 resets sent
Udp:
    661 packets received
    56 packets to unknown port received.
    0 packet receive errors
    674 packets sent
UdpLite:
TcpExt:
    50 TCP sockets finished time wait in fast timer
    47 delayed acks sent
    Quick ack mode was activated 4 times
    1752 packet headers predicted
    280 acknowledgments not containing data payload received
    150 predicted acknowledgments
    3 congestion windows recovered without slow start after partial ack
    16 retransmits in slow start
    4 other TCP timeouts
    3 DSACKs sent for old packets
    2 DSACKs received
    12 connections reset due to unexpected data
    4 connections reset due to early user close
    TCPSackShiftFallback: 5
IpExt:
    InNoRoutes: 3
    InMcastPkts: 106
    OutMcastPkts: 91
    InBcastPkts: 108
    OutBcastPkts: 105
    InOctets: 697110
    OutOctets: 237722
    InMcastOctets: 12342
    OutMcastOctets: 11051
    InBcastOctets: 15449
    OutBcastOctets: 14754


** PCI devices:
00:00.0 Host bridge [0600]: Intel Corporation 2nd Generation Core Processor Family DRAM Controller [8086:0104] (rev 09)
	Subsystem: Lenovo Device [17aa:21da]
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ >SERR- <PERR- INTx-
	Latency: 0
	Capabilities: <access denied>
	Kernel driver in use: agpgart-intel

00:02.0 VGA compatible controller [0300]: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller [8086:0126] (rev 09) (prog-if 00 [VGA controller])
	Subsystem: Lenovo Device [17aa:21da]
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Interrupt: pin A routed to IRQ 51
	Region 0: Memory at f0000000 (64-bit, non-prefetchable) [size=4M]
	Region 2: Memory at e0000000 (64-bit, prefetchable) [size=256M]
	Region 4: I/O ports at 5000 [size=64]
	Expansion ROM at <unassigned> [disabled]
	Capabilities: <access denied>
	Kernel driver in use: i915

00:16.0 Communication controller [0780]: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 [8086:1c3a] (rev 04)
	Subsystem: Lenovo Device [17aa:21da]
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx+
	Latency: 0
	Interrupt: pin A routed to IRQ 11
	Region 0: Memory at f2625000 (64-bit, non-prefetchable) [size=16]
	Capabilities: <access denied>

00:16.3 Serial controller [0700]: Intel Corporation 6 Series/C200 Series Chipset Family KT Controller [8086:1c3d] (rev 04) (prog-if 02 [16550])
	Subsystem: Lenovo Device [17aa:21da]
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Interrupt: pin B routed to IRQ 19
	Region 0: I/O ports at 50b0 [size=8]
	Region 1: Memory at f262c000 (32-bit, non-prefetchable) [size=4K]
	Capabilities: <access denied>
	Kernel driver in use: serial

00:19.0 Ethernet controller [0200]: Intel Corporation 82579LM Gigabit Network Connection [8086:1502] (rev 04)
	Subsystem: Lenovo Device [17aa:21ce]
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Interrupt: pin A routed to IRQ 42
	Region 0: Memory at f2600000 (32-bit, non-prefetchable) [size=128K]
	Region 1: Memory at f262b000 (32-bit, non-prefetchable) [size=4K]
	Region 2: I/O ports at 5080 [size=32]
	Capabilities: <access denied>
	Kernel driver in use: e1000e

00:1a.0 USB controller [0c03]: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 [8086:1c2d] (rev 04) (prog-if 20 [EHCI])
	Subsystem: Lenovo Device [17aa:21da]
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Interrupt: pin A routed to IRQ 16
	Region 0: Memory at f262a000 (32-bit, non-prefetchable) [size=1K]
	Capabilities: <access denied>
	Kernel driver in use: ehci_hcd

00:1b.0 Audio device [0403]: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller [8086:1c20] (rev 04)
	Subsystem: Lenovo Device [17aa:21da]
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Interrupt: pin A routed to IRQ 50
	Region 0: Memory at f2620000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: snd_hda_intel

00:1c.0 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 [8086:1c10] (rev b4) (prog-if 00 [Normal decode])
	Control: I/O- Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
	Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ <SERR- <PERR-
	BridgeCtl: Parity- SERR- NoISA- VGA- MAbort- >Reset- FastB2B-
		PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:1c.1 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2 [8086:1c12] (rev b4) (prog-if 00 [Normal decode])
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
	Memory behind bridge: f2500000-f25fffff
	Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ <SERR- <PERR-
	BridgeCtl: Parity- SERR- NoISA- VGA- MAbort- >Reset- FastB2B-
		PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:1c.3 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4 [8086:1c16] (rev b4) (prog-if 00 [Normal decode])
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Bus: primary=00, secondary=05, subordinate=0c, sec-latency=0
	I/O behind bridge: 00004000-00004fff
	Memory behind bridge: f1d00000-f24fffff
	Prefetchable memory behind bridge: 00000000f0400000-00000000f0bfffff
	Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-
	BridgeCtl: Parity- SERR- NoISA- VGA- MAbort- >Reset- FastB2B-
		PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:1c.4 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 5 [8086:1c18] (rev b4) (prog-if 00 [Normal decode])
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Bus: primary=00, secondary=0d, subordinate=0d, sec-latency=0
	I/O behind bridge: 00003000-00003fff
	Memory behind bridge: f1500000-f1cfffff
	Prefetchable memory behind bridge: 00000000f0c00000-00000000f13fffff
	Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-
	BridgeCtl: Parity- SERR- NoISA- VGA- MAbort- >Reset- FastB2B-
		PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:1c.6 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 7 [8086:1c1c] (rev b4) (prog-if 00 [Normal decode])
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Bus: primary=00, secondary=0e, subordinate=0e, sec-latency=0
	Memory behind bridge: f1400000-f14fffff
	Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ <SERR- <PERR-
	BridgeCtl: Parity- SERR- NoISA- VGA- MAbort- >Reset- FastB2B-
		PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:1d.0 USB controller [0c03]: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 [8086:1c26] (rev 04) (prog-if 20 [EHCI])
	Subsystem: Lenovo Device [17aa:21da]
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Interrupt: pin A routed to IRQ 23
	Region 0: Memory at f2629000 (32-bit, non-prefetchable) [size=1K]
	Capabilities: <access denied>
	Kernel driver in use: ehci_hcd

00:1f.0 ISA bridge [0601]: Intel Corporation QM67 Express Chipset Family LPC Controller [8086:1c4f] (rev 04)
	Subsystem: Lenovo Device [17aa:21da]
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Capabilities: <access denied>

00:1f.2 SATA controller [0106]: Intel Corporation 6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller [8086:1c03] (rev 04) (prog-if 01 [AHCI 1.0])
	Subsystem: Lenovo Device [17aa:21da]
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Interrupt: pin B routed to IRQ 48
	Region 0: I/O ports at 50a8 [size=8]
	Region 1: I/O ports at 50bc [size=4]
	Region 2: I/O ports at 50a0 [size=8]
	Region 3: I/O ports at 50b8 [size=4]
	Region 4: I/O ports at 5060 [size=32]
	Region 5: Memory at f2628000 (32-bit, non-prefetchable) [size=2K]
	Capabilities: <access denied>
	Kernel driver in use: ahci

00:1f.3 SMBus [0c05]: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller [8086:1c22] (rev 04)
	Subsystem: Lenovo Device [17aa:21da]
	Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Interrupt: pin C routed to IRQ 18
	Region 0: Memory at f2624000 (64-bit, non-prefetchable) [size=256]
	Region 4: I/O ports at efa0 [size=32]
	Kernel driver in use: i801_smbus

03:00.0 Network controller [0280]: Intel Corporation Centrino Advanced-N 6205 [8086:0085] (rev 34)
	Subsystem: Intel Corporation Centrino Advanced-N 6205 AGN [8086:1311]
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Interrupt: pin A routed to IRQ 49
	Region 0: Memory at f2500000 (64-bit, non-prefetchable) [size=8K]
	Capabilities: <access denied>
	Kernel driver in use: iwlwifi

0d:00.0 System peripheral [0880]: Ricoh Co Ltd MMC/SD Host Controller [1180:e822] (rev 07) (prog-if 01)
	Subsystem: Lenovo Device [17aa:21da]
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Interrupt: pin A routed to IRQ 16
	Region 0: Memory at f1500000 (32-bit, non-prefetchable) [size=256]
	Capabilities: <access denied>
	Kernel driver in use: sdhci-pci

0e:00.0 USB controller [0c03]: NEC Corporation uPD720200 USB 3.0 Host Controller [1033:0194] (rev 04) (prog-if 30 [XHCI])
	Subsystem: Lenovo Device [17aa:21da]
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Interrupt: pin A routed to IRQ 18
	Region 0: Memory at f1400000 (64-bit, non-prefetchable) [size=8K]
	Capabilities: <access denied>
	Kernel driver in use: xhci_hcd


** USB devices:
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 004 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 003: ID 147e:2016 Upek Biometric Touchchip/Touchstrip Fingerprint Sensor
Bus 003 Device 004: ID 0a5c:217f Broadcom Corp. Bluetooth Controller
Bus 003 Device 005: ID 04f2:b217 Chicony Electronics Co., Ltd Lenovo Integrated Camera (0.3MP)
Bus 004 Device 003: ID 0bdb:1911 Ericsson Business Mobile Networks BV 
Bus 004 Device 004: ID 08e6:34ec Gemplus 


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (700, 'testing'), (600, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages linux-image-3.2.0-3-amd64 depends on:
ii  debconf [debconf-2.0]                   1.5.46
ii  initramfs-tools [linux-initramfs-tool]  0.108
ii  kmod                                    9-2
ii  linux-base                              3.5
ii  module-init-tools                       9-2

Versions of packages linux-image-3.2.0-3-amd64 recommends:
ii  firmware-linux-free  3.1

Versions of packages linux-image-3.2.0-3-amd64 suggests:
pn  debian-kernel-handbook  <none>
ii  extlinux                2:4.05+dfsg-6
ii  grub-pc                 1.99-23
pn  linux-doc-3.2           <none>

Versions of packages linux-image-3.2.0-3-amd64 is related to:
pn  firmware-atheros        <none>
pn  firmware-bnx2           <none>
pn  firmware-bnx2x          <none>
pn  firmware-brcm80211      <none>
ii  firmware-intelwimax     0.36
ii  firmware-ipw2x00        0.36
pn  firmware-ivtv           <none>
ii  firmware-iwlwifi        0.36
pn  firmware-libertas       <none>
pn  firmware-linux          <none>
ii  firmware-linux-nonfree  0.36
pn  firmware-myricom        <none>
pn  firmware-netxen         <none>
pn  firmware-qlogic         <none>
pn  firmware-ralink         <none>
pn  firmware-realtek        <none>
pn  xen-hypervisor          <none>

-- debconf information:
  linux-image-3.2.0-3-amd64/postinst/depmod-error-initrd-3.2.0-3-amd64: false
  linux-image-3.2.0-3-amd64/prerm/removing-running-kernel-3.2.0-3-amd64: true
  linux-image-3.2.0-3-amd64/postinst/ignoring-ramdisk:
  linux-image-3.2.0-3-amd64/postinst/missing-firmware-3.2.0-3-amd64:



Information forwarded to debian-bugs-dist@lists.debian.org, Debian Kernel Team <debian-kernel@lists.debian.org>:
Bug#690071; Package src:linux. (Tue, 09 Oct 2012 19:36:04 GMT) (full text, mbox, link).


Acknowledgement sent to Jonathan Nieder <jrnieder@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian Kernel Team <debian-kernel@lists.debian.org>. (Tue, 09 Oct 2012 19:36:04 GMT) (full text, mbox, link).


Message #10 received at 690071@bugs.debian.org (full text, mbox, reply):

From: Jonathan Nieder <jrnieder@gmail.com>
To: Sebastian Heinlein <devel@glatzor.de>
Cc: 690071@bugs.debian.org
Subject: Re: ecryptfs: corrupted files on a disk full event
Date: Tue, 9 Oct 2012 12:33:42 -0700
[Message part 1 (text/plain, inline)]
tags 690071 + upstream patch moreinfo
quit

Hi Sebastian,

Sebastian Heinlein wrote:

> After a running into a full disk event with my ecrypts encrypted home directory
[...]
> I see a lot of random broken files on my system:
[...]
> https://bugs.launchpad.net/ubuntu/+source/ecryptfs-utils/+bug/957843

Please test the attached patches against a 3.2.y kernel, for example
using the following instructions:

 0. prerequisites

	apt-get install git build-essential

 1. get the kernel history, if you don't already have it

	git clone \
	  git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

 2. fetch point releases

	cd linux
	git remote add stable \
	  git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
	git fetch stable

 3. configure, build, test

	git checkout stable/linux-3.2.y
	cp /boot/config-$(uname -r) .config; # current configuration
	scripts/config --disable DEBUG_INFO
	make localmodconfig; # optional: minimize configuration
	make deb-pkg; # optionally with -j<num> for parallel build
	dpkg -i ../<name of package>; # as root
	reboot
	... test test test ...

    Hopefully it reproduces the bug, so

 4. try the patches

	cd linux
	git am -3sc $(ls -1 /path/to/patches/0*)
	make deb-pkg; # maybe with -j4
	dpkg -i ../<name of package>; # as root
	reboot
	... test test test ...

Hope that helps,
Jonathan
[01-eCryptfs-Unlink-lower-inode-when-ecryptfs_create-fai.patch (text/plain, attachment)]
[02-eCryptfs-Initialize-empty-lower-files-when-opening-t.patch (text/plain, attachment)]
[03-eCryptfs-Revert-to-a-writethrough-cache-model.patch (text/plain, attachment)]

Added tag(s) upstream, moreinfo, and patch. Request was from Jonathan Nieder <jrnieder@gmail.com> to control@bugs.debian.org. (Tue, 09 Oct 2012 19:36:07 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian Kernel Team <debian-kernel@lists.debian.org>:
Bug#690071; Package src:linux. (Wed, 10 Oct 2012 10:30:03 GMT) (full text, mbox, link).


Acknowledgement sent to Sebastian Heinlein <devel@glatzor.de>:
Extra info received and forwarded to list. Copy sent to Debian Kernel Team <debian-kernel@lists.debian.org>. (Wed, 10 Oct 2012 10:30:03 GMT) (full text, mbox, link).


Message #17 received at 690071@bugs.debian.org (full text, mbox, reply):

From: Sebastian Heinlein <devel@glatzor.de>
To: 690071@bugs.debian.org
Subject: Re: ecryptfs: corrupted files on a disk full event
Date: Wed, 10 Oct 2012 12:21:44 +0200
I had a short conversation with one of the upstream developers, Tyler
Hicks. It seems that there are still two other patches required: 
"For completeness, I wanted to point out two more patches which should
be added to the list I gave in comment 20. 821f749 introduced a
regression and these two patches are needed to fix the regression:

64e6651 eCryptfs: Call lower ->flush() from ecryptfs_flush()
7149f25 eCryptfs: Write out all dirty pages just before releasing the
lower file

Actually, 7149f25 is the only one required but I recommend 64e6651, as
well."

https://bugs.launchpad.net/ubuntu/+source/ecryptfs-utils/+bug/957843/comments/22


The IRC chat: 
<glatzor> tyhicks, hello
<tyhicks> glatzor: Hi
* mwhudson hat die Verbindung getrennt (Ping timeout: 246 seconds)
<glatzor> tyhicks, I run an ecryptfs protected home dir on my debian
wheezy system and run into the corrupted files on disk full error
<glatzor> tyhicks, see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=
+%09690071
* dholbach hat die Verbindung getrennt (Read error: Connection reset by
peer)
<glatzor> tyhicks, you mentioned that some patches to fix this problem
have been applied in ubuntu. but I still get the problem with the
patches applied
<glatzor> tyhicks, are there any further patches missing?
* dholbach (~daniel@ubuntu/member/dholbach) hat #ubuntu-devel betreten
<tyhicks> glatzor: You applied the 3 patches mentioned at the bottom of
that bug?
<glatzor> tyhicks, right.
<glatzor> tyhicks, with the applied patches the command to fill up the
disk failed correctly by a disk full error. I used dd if=/dev/zero
of=disk-full bs=1M
<glatzor> tyhicks, but without the patches the dd command tries to write
for ever
* babyface__ hat die Verbindung getrennt (Quit: Ex-Chat)
<tyhicks> glatzor: With the patches applied, it sounds like things are
working correctly. Why do you think there is still a problem?
* TJ- (tj@yes.iam.tj) hat #ubuntu-devel betreten
* mvo hat die Verbindung getrennt (Quit: Ex-Chat)
<glatzor> tyhicks, because I still get files of zero size in
$HOME/.Private/ that cause problems
* mvo (~egon@p5B09B69A.dip.t-dialin.net) hat #ubuntu-devel betreten
* tsdgeos hat die Verbindung getrennt (Remote host closed the
connection)
<tyhicks> glatzor: FYI, see
https://bugs.launchpad.net/ubuntu/+source/ecryptfs-utils/+bug/957843/comments/22
<ubottu> Launchpad bug 957843 in eCryptfs "files in eCryptFS Private
directory get corrupted" [High,Fix released]
<yhicks> glatzor: Those two extra patches don't fix the problem that
you're seeing, but they're needed if you carry the other three patches
<glatzor> tyhicks, Is it ok if I add this conversation to the bug? I
will try with the other two patches
<tyhicks> glatzor: Sure
<tyhicks> glatzor: I'm going to have to step away shortly. If you're
sure that you're still seing zero length files, please file an upstream
eCryptfs bug at https://bugs.launchpad.net/ecryptfs/+filebug and I'll
take a look at it tomorrow.


Am Dienstag, den 09.10.2012, 12:33 -0700 schrieb Jonathan Nieder: 
> tags 690071 + upstream patch moreinfo
> quit
> 
> Hi Sebastian,
> 
> Sebastian Heinlein wrote:
> 
> > After a running into a full disk event with my ecrypts encrypted home directory
> [...]
> > I see a lot of random broken files on my system:
> [...]
> > https://bugs.launchpad.net/ubuntu/+source/ecryptfs-utils/+bug/957843
> 
> Please test the attached patches against a 3.2.y kernel, for example
> using the following instructions:
> 
>  0. prerequisites
> 
> 	apt-get install git build-essential
> 
>  1. get the kernel history, if you don't already have it
> 
> 	git clone \
> 	  git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> 
>  2. fetch point releases
> 
> 	cd linux
> 	git remote add stable \
> 	  git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
> 	git fetch stable
> 
>  3. configure, build, test
> 
> 	git checkout stable/linux-3.2.y
> 	cp /boot/config-$(uname -r) .config; # current configuration
> 	scripts/config --disable DEBUG_INFO
> 	make localmodconfig; # optional: minimize configuration
> 	make deb-pkg; # optionally with -j<num> for parallel build
> 	dpkg -i ../<name of package>; # as root
> 	reboot
> 	... test test test ...
> 
>     Hopefully it reproduces the bug, so
> 
>  4. try the patches
> 
> 	cd linux
> 	git am -3sc $(ls -1 /path/to/patches/0*)
> 	make deb-pkg; # maybe with -j4
> 	dpkg -i ../<name of package>; # as root
> 	reboot
> 	... test test test ...
> 
> Hope that helps,
> Jonathan





Information forwarded to debian-bugs-dist@lists.debian.org, Debian Kernel Team <debian-kernel@lists.debian.org>:
Bug#690071; Package src:linux. (Wed, 10 Oct 2012 13:09:06 GMT) (full text, mbox, link).


Acknowledgement sent to Sebastian Heinlein <devel@glatzor.de>:
Extra info received and forwarded to list. Copy sent to Debian Kernel Team <debian-kernel@lists.debian.org>. (Wed, 10 Oct 2012 13:09:06 GMT) (full text, mbox, link).


Message #22 received at 690071@bugs.debian.org (full text, mbox, reply):

From: Sebastian Heinlein <devel@glatzor.de>
To: 690071@bugs.debian.org
Cc: tyhicks@canonical.com
Subject: Re: ecryptfs: corrupted files on a disk full event
Date: Wed, 10 Oct 2012 15:04:10 +0200
Hello Jonathan und Thyler,

Applying all 5 patches fixed all issues for me.

I don't get any zero sized files anymore with a full disk (find
$HOME/.Private/ -size 0c). I can even login with the user having a full
disk (before often a broken .ICEauthority made this inpossible. I could
not see any data corruptions in applications (Evolution, Iceweasel).

The dd command which fills up the disk also exits correctly.

Thanks

$ dd if=/dev/zero of=disk-full
dd: Schreiben von „disk-full“: Auf dem Gerät ist kein Speicherplatz mehr
verfügbar
6579+0 Datensätze ein
6578+0 Datensätze aus
6898343936 Bytes (6,9 GB) kopiert, 75,1908 s, 91,7 MB/s

I see a lot of errors in dmesg, but these seem to be related to the full
disk write operation:

[  554.634486] ecryptfs_encrypt_page: Error attempting to write lower
page; rc = [-28]
[  554.634492] ecryptfs_write_end: Error encrypting page (upper index
[0x0000000000000054])
[  570.567506] ecryptfs_write_metadata_to_contents: Error attempting to
write header information to lower file; rc = [-28]
[  570.567517] ecryptfs_write_metadata: Error writing metadata out to
lower file; rc = [-28]
[  570.567524] Error writing headers; rc = [-28]
[  580.071153] ecryptfs_write_metadata_to_contents: Error attempting to
write header information to lower file; rc = [-28]
[  580.071164] ecryptfs_write_metadata: Error writing metadata out to
lower file; rc = [-28]





Information forwarded to debian-bugs-dist@lists.debian.org, Debian Kernel Team <debian-kernel@lists.debian.org>:
Bug#690071; Package src:linux. (Wed, 10 Oct 2012 17:03:06 GMT) (full text, mbox, link).


Acknowledgement sent to Tyler Hicks <tyhicks@canonical.com>:
Extra info received and forwarded to list. Copy sent to Debian Kernel Team <debian-kernel@lists.debian.org>. (Wed, 10 Oct 2012 17:03:06 GMT) (full text, mbox, link).


Message #27 received at 690071@bugs.debian.org (full text, mbox, reply):

From: Tyler Hicks <tyhicks@canonical.com>
To: Sebastian Heinlein <devel@glatzor.de>
Cc: 690071@bugs.debian.org
Subject: Re: ecryptfs: corrupted files on a disk full event
Date: Wed, 10 Oct 2012 10:01:14 -0700
[Message part 1 (text/plain, inline)]
On 2012-10-10 15:04:10, Sebastian Heinlein wrote:
> Applying all 5 patches fixed all issues for me.

Good to hear!

> I see a lot of errors in dmesg, but these seem to be related to the full
> disk write operation:

This is just eCryptfs being too chatty in error situations. This is
expected at the moment, but it is something that needs to be fixed in
the future.

Tyler
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Kernel Team <debian-kernel@lists.debian.org>:
Bug#690071; Package src:linux. (Wed, 10 Oct 2012 22:03:03 GMT) (full text, mbox, link).


Acknowledgement sent to Jonathan Nieder <jrnieder@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian Kernel Team <debian-kernel@lists.debian.org>. (Wed, 10 Oct 2012 22:03:03 GMT) (full text, mbox, link).


Message #32 received at 690071@bugs.debian.org (full text, mbox, reply):

From: Jonathan Nieder <jrnieder@gmail.com>
To: Sebastian Heinlein <devel@glatzor.de>
Cc: 690071@bugs.debian.org, tyhicks@canonical.com
Subject: Re: ecryptfs: corrupted files on a disk full event
Date: Wed, 10 Oct 2012 14:58:56 -0700
tags 690071 - moreinfo
forwarded 690071 http://thread.gmane.org/gmane.comp.file-systems.ecryptfs.general/280
quit

Sebastian Heinlein wrote:

> Applying all 5 patches fixed all issues for me.

Thanks; passed upstream.  Hopefully these patches can be included in
kernel.org point releases soon so everyone benefits from them.



Removed tag(s) moreinfo. Request was from Jonathan Nieder <jrnieder@gmail.com> to control@bugs.debian.org. (Wed, 10 Oct 2012 22:03:05 GMT) (full text, mbox, link).


Set Bug forwarded-to-address to 'http://thread.gmane.org/gmane.comp.file-systems.ecryptfs.general/280'. Request was from Jonathan Nieder <jrnieder@gmail.com> to control@bugs.debian.org. (Wed, 10 Oct 2012 22:03:06 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Jan 12 16:51:17 2018; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.