[Bug 509180] Re: ecryptfs sometimes seems to add trailing garbage to encrypted files

Erik Carstensen mandolaerik at gmail.com
Tue Jun 22 08:35:54 UTC 2010


I got this traceback in syslog today, together with a different set of
symptoms (no signs of padded files, but a process is helplessly hung;
when I try to inspect the process with gdb or strace they hang too and
must be SIGKILL:ed. And I cannot suspend). ecryptfs appears in the
traceback so I thought it might be another symptom of the same problem.
Using the standard lucid kernel.

Jun 22 09:12:05 ockeghem kernel: [220132.893407] general protection fault: 0000 
[#1] SMP 
Jun 22 09:12:05 ockeghem kernel: [220132.893412] last sysfs file: /sys/devices/L
NXSYSTM:00/LNXSYBUS:00/PNP0C0A:00/power_supply/BAT0/charge_full
Jun 22 09:12:05 ockeghem kernel: [220132.893414] CPU 0 
Jun 22 09:12:05 ockeghem kernel: [220132.893416] Modules linked in: ppp_deflate 
zlib_deflate bsd_comp ppp_async crc_ccitt option usbserial nls_utf8 isofs usb_st
orage usbhid hid cryptd aes_x86_64 aes_generic binfmt_misc ppdev dm_crypt snd_hd
a_codec_idt snd_hda_intel snd_hda_codec snd_hwdep snd_pcm_oss snd_mixer_oss snd_
pcm snd_seq_dummy snd_seq_oss snd_seq_midi snd_rawmidi snd_seq_midi_event joydev
 snd_seq snd_timer snd_seq_device arc4 psmouse snd pcmcia soundcore snd_page_all
oc serio_raw dell_wmi iwl3945 dell_laptop dcdbas iwlcore mac80211 led_class cfg8
0211 lp parport yenta_socket rsrc_nonstatic pcmcia_core fbcon tileblit font bitb
lit softcursor vga16fb vgastate i915 drm_kms_helper ohci1394 tg3 ieee1394 ahci i
ntel_agp drm i2c_algo_bit video output
Jun 22 09:12:05 ockeghem kernel: [220132.893466] Pid: 28411, comm: simics-common
 Not tainted 2.6.32-22-generic #36-Ubuntu Latitude D830                   
Jun 22 09:12:05 ockeghem kernel: [220132.893469] RIP: 0010:[<ffffffff810f3859>] 
 [<ffffffff810f3859>] find_get_page+0x39/0xa0
Jun 22 09:12:05 ockeghem kernel: [220132.893477] RSP: 0018:ffff880001c81918  EFL
AGS: 00010203
Jun 22 09:12:05 ockeghem kernel: [220132.893479] RAX: 07371f01fffe00ff RBX: ffff
88009b8be600 RCX: ffff8800bf6813c8
Jun 22 09:12:05 ockeghem kernel: [220132.893481] RDX: 0000000000000000 RSI: 0000
000000000040 RDI: 07371f01fffe0100
Jun 22 09:12:05 ockeghem kernel: [220132.893483] RBP: ffff880001c81928 R08: 0000000000001000 R09: 0000000000000001
Jun 22 09:12:05 ockeghem kernel: [220132.893485] R10: ffff880001c81fd8 R11: 0000000000000000 R12: 0000000000000040
Jun 22 09:12:05 ockeghem kernel: [220132.893487] R13: 0000000000000040 R14: ffff880073b69d80 R15: 0000000000000000
Jun 22 09:12:05 ockeghem kernel: [220132.893490] FS:  00007f905ffaa700(0000) GS:ffff880028200000(0000) knlGS:0000000000000000
Jun 22 09:12:05 ockeghem kernel: [220132.893492] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
Jun 22 09:12:05 ockeghem kernel: [220132.893494] CR2: 00007f905b31b008 CR3: 000000009228d000 CR4: 00000000000006f0
Jun 22 09:12:05 ockeghem kernel: [220132.893496] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
Jun 22 09:12:05 ockeghem kernel: [220132.893498] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Jun 22 09:12:05 ockeghem kernel: [220132.893501] Process simics-common (pid: 28411, threadinfo ffff880001c80000, task ffff88008fd2dbc0)
Jun 22 09:12:05 ockeghem kernel: [220132.893502] Stack:
Jun 22 09:12:05 ockeghem kernel: [220132.893504]  0000000000000000 ffff88009b8be5f8 ffff880001c819b8 ffffffff810f4a11
Jun 22 09:12:05 ockeghem kernel: [220132.893507] <0> 00000000ffffffff 0000000000001000 ffff880001c81ad8 000000008153e798
Jun 22 09:12:05 ockeghem kernel: [220132.893511] <0> 0000000000000041 ffff880073b69df0 000000000000003f ffff88009b8be4e0
Jun 22 09:12:05 ockeghem kernel: [220132.893515] Call Trace:
Jun 22 09:12:05 ockeghem kernel: [220132.893519]  [<ffffffff810f4a11>] T.804+0x151/0x410
Jun 22 09:12:05 ockeghem kernel: [220132.893523]  [<ffffffff810f4d86>] generic_file_aio_read+0xb6/0x1d0
Jun 22 09:12:05 ockeghem kernel: [220132.893527]  [<ffffffff8114284a>] do_sync_read+0xfa/0x140
Jun 22 09:12:05 ockeghem kernel: [220132.893531]  [<ffffffff81085320>] ? autoremove_wake_function+0x0/0x40
Jun 22 09:12:05 ockeghem kernel: [220132.893536]  [<ffffffff81250ba6>] ? security_file_permission+0x16/0x20
Jun 22 09:12:05 ockeghem kernel: [220132.893539]  [<ffffffff81143165>] vfs_read+0xb5/0x1a0
Jun 22 09:12:05 ockeghem kernel: [220132.893544]  [<ffffffff81229df2>] ecryptfs_read_lower+0x82/0xc0
Jun 22 09:12:05 ockeghem kernel: [220132.893547]  [<ffffffff8122bdcc>] ecryptfs_decrypt_page+0x10c/0x190
Jun 22 09:12:05 ockeghem kernel: [220132.893550]  [<ffffffff81229498>] ecryptfs_readpage+0xe8/0x150
Jun 22 09:12:05 ockeghem kernel: [220132.893554]  [<ffffffff810fd6a2>] __do_page_cache_readahead+0x172/0x210
Jun 22 09:12:05 ockeghem kernel: [220132.893557]  [<ffffffff810fd761>] ra_submit+0x21/0x30
Jun 22 09:12:05 ockeghem kernel: [220132.893560]  [<ffffffff810fdaf5>] ondemand_readahead+0x115/0x240
Jun 22 09:12:05 ockeghem kernel: [220132.893563]  [<ffffffff810fdd1e>] page_cache_sync_readahead+0x2e/0x40
Jun 22 09:12:05 ockeghem kernel: [220132.893565]  [<ffffffff810f559c>] filemap_fault+0x42c/0x460
Jun 22 09:12:05 ockeghem kernel: [220132.893569]  [<ffffffff81111a44>] __do_fault+0x54/0x500
Jun 22 09:12:05 ockeghem kernel: [220132.893573]  [<ffffffff8101179c>] ? __switch_to+0x1ac/0x320
Jun 22 09:12:05 ockeghem kernel: [220132.893576]  [<ffffffff81114f88>] handle_mm_fault+0x1a8/0x3c0
Jun 22 09:12:05 ockeghem kernel: [220132.893581]  [<ffffffff810397a9>] ? default_spin_lock_flags+0x9/0x10
Jun 22 09:12:05 ockeghem kernel: [220132.893586]  [<ffffffff8154386a>] do_page_fault+0x12a/0x3b0
Jun 22 09:12:05 ockeghem kernel: [220132.893589]  [<ffffffff815411c5>] page_fault+0x25/0x30
Jun 22 09:12:05 ockeghem kernel: [220132.893591] Code: 5f 08 49 89 f4 4c 89 e6 48 89 df e8 62 20 1c 00 48 85 c0 48 89 c1 74 4a 48 8b 38 40 f6 c7 01 75 e4 48 8d 47 ff 48 83 f8 fd 77 da <8b> 57 08 85 d2 74 d3 44 8d 42 01 48 63 c2 4c 8d 4f 08 4d 63 c0 
Jun 22 09:12:05 ockeghem kernel: [220132.893621] RIP  [<ffffffff810f3859>] find_get_page+0x39/0xa0
Jun 22 09:12:05 ockeghem kernel: [220132.893624]  RSP <ffff880001c81918>
Jun 22 09:12:05 ockeghem kernel: [220132.893627] ---[ end trace fff8f06f577692af ]---

-- 
ecryptfs sometimes seems to add trailing garbage to encrypted files
https://bugs.launchpad.net/bugs/509180
You received this bug notification because you are a member of Kernel
Bugs, which is subscribed to linux in ubuntu.




More information about the kernel-bugs mailing list