file corruption -- init_crypt_ctx(): Error initializing cipher [aes]

Bug #604064 reported by janand
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
eCryptfs
Incomplete
High
Unassigned
ecryptfs-utils (Ubuntu)
Expired
High
Unassigned

Bug Description

I am using Linux lapp 2.6.32-23-generic #37-Ubuntu SMP x86_64 GNU/Linux

I have a encrypted fs mounted under ~/Private. I can browse files and most of the time everything works just fine. The only anomaly I have found is that sometimes git will discover changes in files that I have not touched. A "git diff" shows no changes in the file and I have been content by solving it using git checkout. However, today I create a new file under ~/Private/dokument. When I later tried to open the newly created file, emacs freezed and dmesg reports the following:

[ 198.390073] ecryptfs_init_crypt_ctx: cryptfs: init_crypt_ctx(): Error initializing cipher [aes]
[ 198.390086] ecryptfs_new_file_context: Error initializing cryptographic context for cipher [aes]: rc = [-4]
[ 198.390093] ecryptfs_initialize_file: Error creating new file context; rc = [-4]
[ 198.390493] ------------[ cut here ]------------
[ 198.390500] kernel BUG at /build/buildd/linux-2.6.32/fs/ecryptfs/read_write.c:239!
[ 198.390507] invalid opcode: 0000 [#1] SMP
[ 198.390515] last sysfs file: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0A:00/power_supply/BAT0/voltage_now
[ 198.390522] CPU 0
[ 198.390527] Modules linked in: cryptd aes_x86_64 aes_generic rfcomm sco bnep binfmt_misc l2cap ppdev ipt_MASQUERADE iptable_nat nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_state nf_conntrack ipt_REJECT xt_tcpudp iptable_filter ip_tables x_tables bridge stp hso snd_hda_codec_realtek 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 tpm_infineon fbcon tileblit font bitblit softcursor vga16fb vgastate snd_rawmidi snd_seq_midi_event uvcvideo pcmcia arc4 iwlagn nouveau snd_seq joydev iwlcore snd_timer videodev ttm i915 snd_seq_device yenta_socket tpm_tis sdhci_pci snd drm_kms_helper v4l1_compat btusb psmouse rsrc_nonstatic mac80211 sdhci tpm soundcore v4l2_compat_ioctl32 drm video bluetooth lp parport serio_raw i2c_algo_bit pcmcia_core dummy snd_page_alloc tpm_bios led_class intel_agp cfg80211 output sony_laptop ohci1394 e1000e ieee1394 ahci [last unloaded: kvm]
[ 198.390694] Pid: 2477, comm: emacs Not tainted 2.6.32-23-generic #37-Ubuntu VGN-Z21WN_B
[ 198.390700] RIP: 0010:[<ffffffff8122b37d>] [<ffffffff8122b37d>] ecryptfs_read_lower+0xad/0xc0
[ 198.390718] RSP: 0018:ffff88011e3bfbc8 EFLAGS: 00010246
[ 198.390724] RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff88012b992c00
[ 198.390730] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88012b992e60
[ 198.390735] RBP: ffff88011e3bfc08 R08: ffff880028212180 R09: 0000000000001000
[ 198.390741] R10: 0000000000000000 R11: 0000000000000200 R12: ffff88012b992e60
[ 198.390747] R13: ffff8801068326c0 R14: ffff880138f66000 R15: 0000000000001000
[ 198.390754] FS: 00007fb4bcec67e0(0000) GS:ffff880028200000(0000) knlGS:0000000000000000
[ 198.390760] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 198.390766] CR2: 00007fd18c186000 CR3: 0000000115c78000 CR4: 00000000000006f0
[ 198.390772] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 198.390778] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[ 198.390785] Process emacs (pid: 2477, threadinfo ffff88011e3be000, task ffff88012c068000)
[ 198.390790] Stack:
[ 198.390793] ffff88011e3bfbf8 ffff88012b992c00 ffff88011e3bfbf8 ffff880138f66000
[ 198.390803] <0> ffff88012b992c00 ffff8801068326c0 ffff88012b992e80 ffff880106b780d0
[ 198.390813] <0> ffff88011e3bfc48 ffffffff8122c36c ffff88011e3bfc78 ffff88012b992c00
[ 198.390824] Call Trace:
[ 198.390833] [<ffffffff8122c36c>] ecryptfs_read_metadata+0x7c/0x240
[ 198.390845] [<ffffffff81228991>] ecryptfs_setattr+0x151/0x220
[ 198.390855] [<ffffffff8115cc3b>] notify_change+0x16b/0x350
[ 198.390864] [<ffffffff8125330f>] ? security_inode_permission+0x1f/0x30
[ 198.390874] [<ffffffff81142bd4>] do_truncate+0x64/0xa0
[ 198.390882] [<ffffffff8125330f>] ? security_inode_permission+0x1f/0x30
[ 198.390891] [<ffffffff8114d745>] ? get_write_access+0x45/0x70
[ 198.390899] [<ffffffff8114e2a6>] may_open+0x1e6/0x220
[ 198.390907] [<ffffffff81152000>] do_filp_open+0x160/0xba0
[ 198.390919] [<ffffffff8101bbbc>] ? init_fpu+0x5c/0xc0
[ 198.390926] [<ffffffff8115dcfa>] ? alloc_fd+0x10a/0x150
[ 198.390936] [<ffffffff81141919>] do_sys_open+0x69/0x170
[ 198.390944] [<ffffffff81141a60>] sys_open+0x20/0x30
[ 198.390953] [<ffffffff810131b2>] system_call_fastpath+0x16/0x1b
[ 198.390958] Code: 4c 89 ab 48 e0 ff ff 49 89 c6 4c 89 e7 e8 1c 69 31 00 44 89 f0 48 8b 5d d8 4c 8b 65 e0 4c 8b 6d e8 4c 8b 75 f0 4c 8b 7d f8 c9 c3 <0f> 0b eb fe 66 66 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 55 48
[ 198.391044] RIP [<ffffffff8122b37d>] ecryptfs_read_lower+0xad/0xc0
[ 198.391053] RSP <ffff88011e3bfbc8>
[ 198.391060] ---[ end trace 8a4b62ae26fd3966 ]---

I can still access other files on the encrypted file system (and today git status does not show any mysterious changes :-)).. Please let me know what I can do to help..

description: updated
affects: ubuntu → ecryptfs-utils (Ubuntu)
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

I believe that this is a duplicate of Bug #509180.

Tyler, can you take a quick look at this and tell me if you think this is a dupe?

Changed in ecryptfs:
status: New → Incomplete
Changed in ecryptfs-utils (Ubuntu):
status: New → Incomplete
Changed in ecryptfs:
importance: Undecided → High
Changed in ecryptfs-utils (Ubuntu):
importance: Undecided → High
summary: - init_crypt_ctx(): Error initializing cipher [aes]
+ file corruption -- init_crypt_ctx(): Error initializing cipher [aes]
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for ecryptfs-utils (Ubuntu) because there has been no activity for 60 days.]

Changed in ecryptfs-utils (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Tyler Hicks (tyhicks) wrote :

Yes, this is/was a dupe of Bug #509180, which has a fix released.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.