New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

Cryptsetup and the 3.18.27-1 Kernel

Discuss development on Bubba
hooper35
Posts: 23
Joined: 13 Sep 2007, 04:43

Cryptsetup and the 3.18.27-1 Kernel

Post by hooper35 »

I'm using the great B3 install by MouettE. Thanks MouettE!!

I'm trying to encrypt a partition with cryptsetup but get the error.

=========
Failed to setup dm-crypt key mapping for device /dev/sda3.
Check that kernel supports aes-xts-plain64 cipher (check syslog for more info).
Command failed with code 22: Failed to setup dm-crypt key mapping for device /dev/sda3.
Check that kernel supports aes-xts-plain64 cipher (check syslog for more info)
=========

Has anyone seen this error and solved it? I have searched various groups and it looks like I may need to change kernel version, but that seems quite drastic.

https://bugzilla.kernel.org/show_bug.cgi?id=112631

Any help gratefully received.

Charles
MouettE
Site admin
Posts: 341
Joined: 06 Oct 2011, 19:45

Re: Cryptsetup and the 3.18.27-1 Kernel

Post by MouettE »

Hello,

The option is probably missing from the kernel configuration. I'm on holiday right now but I will take a look when I get back and make a new release if possible.
hooper35
Posts: 23
Joined: 13 Sep 2007, 04:43

Re: Cryptsetup and the 3.18.27-1 Kernel

Post by hooper35 »

Thanks MouettE
MouettE
Site admin
Posts: 341
Joined: 06 Oct 2011, 19:45

Re: Cryptsetup and the 3.18.27-1 Kernel

Post by MouettE »

Good news I did some tests on a newer 3.18.44 kernel and it seems to work (I previously tried with 3.18.27 and did reproduce the problem). It was a kernel bug.

I'm currently compiling the new versions of the kernel packages for the B2 and the B3 and they will be pushed to the repo in a couple of days. You will be able to do an apt-get upgrade and reboot to correct the problem.
hooper35
Posts: 23
Joined: 13 Sep 2007, 04:43

Re: Cryptsetup and the 3.18.27-1 Kernel

Post by hooper35 »

That's great. Thanks very much. I'll be able to do my backups again!

Charles
hooper35
Posts: 23
Joined: 13 Sep 2007, 04:43

Re: Cryptsetup and the 3.18.27-1 Kernel

Post by hooper35 »

I tried it today and the update came through. The bug has gone!

Thanks MouettE
MouettE
Site admin
Posts: 341
Joined: 06 Oct 2011, 19:45

Re: Cryptsetup and the 3.18.27-1 Kernel

Post by MouettE »

Both B2 and B3 now have a new 3.18.44-1 kernel available.
hooper35
Posts: 23
Joined: 13 Sep 2007, 04:43

Re: Cryptsetup and the 3.18.27-1 Kernel

Post by hooper35 »

MouettE,

Me again, with the same issue, but with the Stretch install for B3.

Enter passphrase for /dev/sda3:
device-mapper: reload ioctl on temporary-cryptsetup-10055 failed: Invalid argument
Failed to setup dm-crypt key mapping for device /dev/sda3.
Check that kernel supports aes-xts-plain64 cipher (check syslog for more info).

Is this the kernel again? If so, would it be possible to update it again?

Thanks

Charles
MouettE
Site admin
Posts: 341
Joined: 06 Oct 2011, 19:45

Re: Cryptsetup and the 3.18.27-1 Kernel

Post by MouettE »

I am very busy at the moment but I have created an issue on the github repo and I will take a look as soon as I can.

Best,
hooper35
Posts: 23
Joined: 13 Sep 2007, 04:43

Re: Cryptsetup and the 3.18.27-1 Kernel

Post by hooper35 »

Thanks. Very kind of you.

Charles
MouettE
Site admin
Posts: 341
Joined: 06 Oct 2011, 19:45

Re: Cryptsetup and the 3.18.27-1 Kernel

Post by MouettE »

I've compiled a new kernel with added crypto modules, I've managed to boot my b3 with so it should work OK, can you validate if it fixes your issue ? You just need to download it at http://repo.excito.org/testing/bubba3-k ... _armel.deb and manually install it with dpkg -i bubba3-kernel_4.9.88-1_armel.deb.

Let me know, if it's OK I'll release it on the official repository.
hooper35
Posts: 23
Joined: 13 Sep 2007, 04:43

Re: Cryptsetup and the 3.18.27-1 Kernel

Post by hooper35 »

MouettE,

That has worked. Thanks!

Charles
MouettE
Site admin
Posts: 341
Joined: 06 Oct 2011, 19:45

Re: Cryptsetup and the 3.18.27-1 Kernel

Post by MouettE »

Good to know. Let me know if there is any issue. I will make an official release in the next couple of weeks.
hooper35
Posts: 23
Joined: 13 Sep 2007, 04:43

Re: Cryptsetup and the 3.18.27-1 Kernel

Post by hooper35 »

MouettE,

I've just had to reinstall my stretch partition and have got the kernel error again.

device-mapper: reload ioctl on temporary-cryptsetup-17520 failed: Invalid argument
Failed to setup dm-crypt key mapping for device /dev/sda3.
Check that kernel supports aes-xts-plain64 cipher (check syslog for more info).

Is this the same thing as before?

Charles
hooper35
Posts: 23
Joined: 13 Sep 2007, 04:43

Re: Cryptsetup and the 3.18.27-1 Kernel

Post by hooper35 »

MouettE,

I installed your previous fix - which worked - but it did this:

dpkg: warning: downgrading bubba3-kernel from 1:4.9.135-1 to 1:4.9.88-1
(Reading database ... 23515 files and directories currently installed.)
Preparing to unpack bubba3-kernel_4.9.88-1_armel.deb ...
Unpacking bubba3-kernel (1:4.9.88-1) over (1:4.9.135-1) ...
Setting up bubba3-kernel (1:4.9.88-1) ...

Charles
Post Reply