← Back to team overview

kernel-packages team mailing list archive

[Bug 1558079] Re: cryptsetup tcryptOpen doesn't work anymore

 

With Ubuntu 14.04 and linux-image-3.13.0-83 it is caused by a kernel<->userland breakage. See:
https://lkml.org/lkml/2015/12/29/383
It is caused by [crypto: af_alg - Disallow bind/setkey/... after accept(2)] added to 3.13.0-80.124 with [ Upstream Kernel Changes ].

I've patched cryptsetup-1.6.1 to handle it. See attached patch.

The cryptsetup bundled with Ubuntu 14.04 tries to change the socket
after accepting it while the newer kernel doesn't allow changes after
accepting the connection.

Se6 seems using a newer Ubuntu version, so maybe it's a different cause
there. Or maybe the newer 4.5 kernel reverts those upstream patches!?

-- 
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/1558079

Title:
  cryptsetup tcryptOpen doesn't work anymore

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  I'm using cryptsetup to open TrueCrypt encrypted NTFS filesystems:
  cryptsetup tcryptOpen /dev/sdf2 tcrypt

  At least until linux-image-3.13.0-79-generic this work fine. 
  Booting linux-image-3.13.0-83-generic and running cryptsetup results in:

  Required kernel crypto interface not available.
  Ensure you have algif_skcipher kernel module loaded.

  The module algif_skcipher is loaded, so the tenor of the error message
  is wrong, but cryptsetup cannot open the container, so at least there
  _is_ some error. Probably it's related to some unsupported instruction
  set. With  linux-image-3.13.0-83 there are errors in dmesg which are
  not present with linux-image-3.13.0-79:

  AVX instructions are not detected

  System information:

  OS: Ubuntu 14.04.4 LTS
  CPU: Phenom II X6

  TCRYPT header information for /dev/sdf2
  Version:       	5
  Driver req.:	7
  Sector size:	512
  MK offset:	131072
  PBKDF2 hash:	ripemd160
  Cipher chain:	aes
  Cipher mode:	xts-plain64
  MK bits:       	512

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


References