title: error inserting a module in Linux  -- 1 Cannot allocate memory
body: <p>eCryptfs is a POSIX-compliant encrypted filesystem that has been part of the mainline Linux Kernel since version 2.6.19.</p>
  
  <p>When I try to insert the module (ecryptfs.ko), I get the following error:</p>
  
  <blockquote>
    <p>insmod: error inserting 'ecryptfs.ko': -1 Cannot allocate memory</p>
  </blockquote>
  
  <p>Can some one please help me out?</p>
  
  <p>below is the <code>dmesg</code></p>
  
  <pre><code>Failed to allocate one or more kmem_cache objects
  
  kmem_cache_create: duplicate cache ecryptfs_auth_tok_list_item
  
  Pid: 3332, comm: insmod Tainted: G           O 3.2.2+ #1
  
  Call Trace:
  
  [&lt;c102bfe0&gt;] ? printk+0x15/0x17
  
  [&lt;c10878b6&gt;] kmem_cache_create+0x41c/0x458
  
  [&lt;d0ebd038&gt;] ecryptfs_init+0x38/0x1b1 [ecryptfs]
  
  [&lt;c1001071&gt;] do_one_initcall+0x71/0x118
  
  [&lt;d0ebd000&gt;] ? 0xd0ebcfff
  
  [&lt;c1055703&gt;] sys_init_module+0x60/0x18c
  
  [&lt;c12db9b0&gt;] sysenter_do_call+0x12/0x36
  
  ecryptfs_init_kmem_caches: ecryptfs_auth_tok_list_item: kmem_cache_create 
  failed
  
   Failed to allocate one or more kmem_cache objects
  </code></pre>