lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5084551E.5040304@ursulin.net>
Date:	Sun, 21 Oct 2012 21:03:42 +0100
From:	Tvrtko Ursulin <tvrtko@...ulin.net>
To:	Milan Broz <gmazyland@...il.com>
CC:	dm-crypt@...ut.de, linux-kernel@...r.kernel.org
Subject: Re: cryptsetup not working under 3.6 - regression from 3.4?

On 21/10/12 20:29, Milan Broz wrote:
> On 10/21/2012 02:36 PM, Tvrtko Ursulin wrote:
>> On 21/10/12 13:20, Zdenek Kaspar wrote:
>>>>> I would say you are still missing some modules.
>>>>>
>>>>>> Kernel says this:
>>>>>>      device-mapper: table: 252:1: crypt: Error allocating crypto tfm
>>>>>>      device-mapper: ioctl: error adding target to table
>>>>>
>>>>> It complains about aes-cbc-essiv:sha256.
>>>>>
>>>>> It can be missing CBC od SHA256, but according the message I bet
>>>>> you have no "cbc" block cipher mode module compiled.
>>>>>
>>>>> Can you grep your final .config for CONFIG_CRYPTO_CBC and
>>>>> CONFIG_CRYPTO_SHA256 a paste it here?
>>>>
>>>> I both working 3.4 and non-working 3.6 situation is the same:
>>>>
>>>> CONFIG_CRYPTO_CBC=y
>>>> CONFIG_CRYPTO_SHA256=m
>>>
>>> Compare please:
>>> grep CONFIG_CRYPTO /boot/config-3.4
>>> grep CONFIG_CRYPTO /boot/config-3.6
>>>
>>> One of the problem could be that your configuration misses something
>>> like: CONFIG_CRYPTO_BLKCIPHER, CONFIG_CRYPTO_MANAGER, etc.. or some of
>>> those could changed into modules and are not getting loaded..
>>
>> Here it is:
>
> Hm, so it should work without problem. Can you paste full output of failing
> cryptsetup command (with added --debug switch) and your full kernel .config?

Attached.

> Cryptsetup itself has regression tests which test almost all common
> combinations of ciphers so the problem is almost surely in some kernel
> part misconfiguration.
> Any other related messages in syslog beside two lines you posted?

No just those two.

Thanks,
Tvrtko


View attachment ".config" of type "text/plain" (84156 bytes)

View attachment "cryptsetup.debug" of type "text/plain" (2629 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ