I sent the fixes to lkml. I will update here when they get it upstream.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1666483

Title:
  ecryptfs fails to load block cipher on ppc64el

Status in linux package in Ubuntu:
  Fix Committed
Status in linux source package in Zesty:
  Fix Committed

Bug description:
  Specifically, this is not an ecryptfs issue.  ecryptfs attempts to
  load the CBC AES block cipher and the ppc64el specific vmx_crypto
  crypto driver gets loaded. However, this is using the older blkcipher
  API rather than the newer skcipher API as introduced by the following
  commit in 4.10:

  commit 79c65d179a40e145287e59b33dc782a7c4bf0986
  Author: Herbert Xu <herb...@gondor.apana.org.au>
  Date:   Tue Nov 22 20:08:39 2016 +0800

      crypto: cbc - Convert to skcipher
      
      This patch converts cbc over to the skcipher interface.  It also
      rearranges the code to allow it to be reused by drivers.

  We see the following error:
   
  Feb 20 16:57:53 gulpin kernel: Failed to allocate transformation for 
'cbc(aes)': -2
  Feb 20 16:57:53 gulpin kernel: ecryptfs_init_crypt_ctx: cryptfs: 
init_crypt_ctx(): Error initializing cipher [cbc(aes)]
  Feb 20 16:57:53 gulpin kernel: ecryptfs_new_file_context: Error initializing 
cryptographic context for cipher [aes]: rc = [-2]
  Feb 20 16:57:53 gulpin kernel: ecryptfs_initialize_file: Error creating new 
file context; rc = [-2]
  Feb 20 16:57:53 gulpin kernel: Failed to allocate transformation for 
'cbc(aes)': -2

  Loading the software based cbc crypto before starting ecryptfs rather
  than the optimized vmx_crypto allows ecryptfs to run correctly.

  So, this core issue is that we need vmx_crypto updated to the newer
  crypto API to resolve this issue

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1666483/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to