Page 1 of 2
Cryptsetup and the 3.18.27-1 Kernel
Posted: 29 Oct 2016, 17:49
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
Re: Cryptsetup and the 3.18.27-1 Kernel
Posted: 01 Nov 2016, 18:08
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.
Re: Cryptsetup and the 3.18.27-1 Kernel
Posted: 05 Nov 2016, 08:16
by hooper35
Thanks MouettE
Re: Cryptsetup and the 3.18.27-1 Kernel
Posted: 08 Nov 2016, 15:40
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.
Re: Cryptsetup and the 3.18.27-1 Kernel
Posted: 08 Nov 2016, 17:17
by hooper35
That's great. Thanks very much. I'll be able to do my backups again!
Charles
Re: Cryptsetup and the 3.18.27-1 Kernel
Posted: 09 Nov 2016, 02:46
by hooper35
I tried it today and the update came through. The bug has gone!
Thanks MouettE
Re: Cryptsetup and the 3.18.27-1 Kernel
Posted: 09 Nov 2016, 10:01
by MouettE
Both B2 and B3 now have a new 3.18.44-1 kernel available.
Re: Cryptsetup and the 3.18.27-1 Kernel
Posted: 19 Mar 2018, 09:51
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
Re: Cryptsetup and the 3.18.27-1 Kernel
Posted: 19 Mar 2018, 12:38
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,
Re: Cryptsetup and the 3.18.27-1 Kernel
Posted: 19 Mar 2018, 13:15
by hooper35
Thanks. Very kind of you.
Charles
Re: Cryptsetup and the 3.18.27-1 Kernel
Posted: 20 Mar 2018, 23:25
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.
Re: Cryptsetup and the 3.18.27-1 Kernel
Posted: 21 Mar 2018, 04:26
by hooper35
MouettE,
That has worked. Thanks!
Charles
Re: Cryptsetup and the 3.18.27-1 Kernel
Posted: 21 Mar 2018, 09:40
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.
Re: Cryptsetup and the 3.18.27-1 Kernel
Posted: 08 Dec 2018, 16:25
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
Re: Cryptsetup and the 3.18.27-1 Kernel
Posted: 08 Dec 2018, 16:44
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