Hi again,

When using ecryptfs to encrypt a home directory under Gnome/Ubuntu, I am seeing ecryptfs crash. Excerpt from dmesg below. Here is the procedure that I followed:

  * login as root

  * create a new account called "tadm"

  * remove the created home directory and recreate

    % rm -rf /home/tadm /home/tadm.encrypted
    % mkdir  /home/tadm /home/tadm.encrypted
    % chown tadm.tadm /home/tadm /home/tadm.encrypted

  * mount the new home directory:

    % mount -t ecryptfs /home/tadm.encrypted /home/tadm \
      -o cipher=aes,ecryptfs_key_bytes=32

  * logout

  * login as tadm (from the gdm)

  * open a terminal and run "dmesg"

* at this point the system is still "alive", but /home/tadm cannot be unmounted and the system hangs if a reboot is attempted - only way out is to hit the power button.

This specific dump was created running 2.6.21.7, but I see the same behavior under other kernel versions.

Any idea on what might be going on here? Has anyone else succeeded in using an encrypted home directory under Gnome without seeing this bug?

/Stefan

-------------------------------------------------------------
[drm] writeback test succeeded in 2 usecs
BUG: unable to handle kernel NULL pointer dereference at virtual address 00000000
printing eip:
00000000
*pde = 00000000
Oops: 0000 [#1]
PREEMPT
Modules linked in: ecryptfs binfmt_misc cisco_ipsec(P) ipv6 nvram cpufreq_ondemand ibm_acpi iptable_filter ip_tables x_tables ehci_hcd ndiswrapper ide_cd cdrom radeonfb fb_ddc i2c_algo_bit i2c_core pcmcia irtty_sir sir_dev nsc_ircc 8250_pnp parport_pc snd_intel8x0 snd_ac97_codec ac97_bus 8250_pci 8250 yenta_socket rsrc_nonstatic pcmcia_core serial_core uhci_hcd dm_mod
CPU:    0
EIP:    0060:[<00000000>]    Tainted: P       VLI
EFLAGS: 00010246   (2.6.21.7 #2)
EIP is at _stext+0x3feff000/0x14
eax: f2b80ec0   ebx: 00000000   ecx: c18625a0   edx: c18625a0
esi: c18625a0   edi: d00686a0   ebp: 00000000   esp: f50ffdfc
ds: 007b   es: 007b   fs: 00d8  gs: 0033  ss: 0068
Process mkfontscale (pid: 20028, ti=f50fe000 task=f645b5b0 task.ti=f50fe000)
Stack: c013bf4c 000000d0 00000000 f2b80ec0 00000000 f6928094 c18d3360 f9b68bd7 f2b80ec0 c20efb80 00000000 000201d2 c04ce954 f645b5b0 00000000 00000000 f6928094 c18d3360 f9b69635 f9b70737 f9b6e936 f6928094 f6e60d80 f6928128
Call Trace:
[<c013bf4c>] read_cache_page+0x83/0x120
[<f9b68bd7>] ecryptfs_do_readpage+0x36/0xce [ecryptfs]
[<f9b69635>] ecryptfs_readpage+0x69/0x1c0 [ecryptfs]
[<c013a250>] add_to_page_cache+0x33/0xa0
[<c013f9c3>] __do_page_cache_readahead+0x1b2/0x20f
[<f9b66191>] ecryptfs_open_lower_file+0x38/0x6f [ecryptfs]
[<f9b672fb>] ecryptfs_permission+0x3d/0x47 [ecryptfs]
[<f9b664fc>] ecryptfs_open+0x167/0x27d [ecryptfs]
[<c013c384>] filemap_nopage+0x167/0x31f
[<c0256902>] prio_tree_insert+0x1d/0x1e3
[<c0145231>] __handle_mm_fault+0x132/0x864
[<c014242a>] vma_prio_tree_insert+0x17/0x2a
[<c01479a1>] vma_link+0xaa/0xe9
[<c01109b9>] do_page_fault+0x20d/0x4e8
[<c01107ac>] do_page_fault+0x0/0x4e8
[<c03eb87c>] error_code+0x74/0x7c
[<c03e0000>] svc_sendto+0x22d/0x29a
=======================
Code:  Bad EIP value.
EIP: [<00000000>] _stext+0x3feff000/0x14 SS:ESP 0068:f50ffdfc

--

Stefan Farestam, PhD  Regional Director    Customer Marketing, EMEA
   [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>  TIBCO Software Inc.  
Stockholm, Sweden
      www.tibco.com <http://www.tibco.com>  Cell: +46 70 649 6838


--
Stefan Farestam
Mobile: +46 70 649 6838

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
eCryptfs-users mailing list
eCryptfs-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecryptfs-users

Reply via email to