Return-Path: Received: from mps1.wohnheimg.uni-frankfurt.de (mps1.wohnheimg.uni-frankfurt.de [141.2.118.239]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.server123.net (Postfix) with ESMTPS for ; Fri, 5 Sep 2014 00:54:36 +0200 (CEST) Received: from localhost ([127.0.0.1] helo=ssl.verfeiert.org) by mps1.wohnheimg.uni-frankfurt.de via ESMTP (Exim) (envelope-from ) id 1XPfvG-0001ac-I9 for dm-crypt@saout.de; Fri, 05 Sep 2014 00:54:34 +0200 Message-ID: <6899887c4cbe94228dea5619a57f64aa.squirrel@ssl.verfeiert.org> In-Reply-To: <54081391.6000003@gmail.com> References: <27d5e048ef3f17501e9e92019b4c7643.squirrel@ssl.verfeiert.org> <5404D045.5020002@gmail.com> <8eb220aa5096641f9144b1128d117ed4.squirrel@ssl.verfeiert.org> <5404DA01.2050507@gmail.com> <57348c6a4168767613f999ddabe9a54f.squirrel@ssl.verfeiert.org> <5407482C.1060902@gmail.com> <3ff26a70ae9179ea3c37012459998cf4.squirrel@ssl.verfeiert.org> <54081391.6000003@gmail.com> Date: Fri, 5 Sep 2014 00:54:34 +0200 From: "Sven Eschenberg" Reply-To: sven@whgl.uni-frankfurt.de MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [dm-crypt] cryptsetup upgrade to 1.6.x unlocking problem in initramfs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de Hi Milan, still looking at an strace output flood (PDBKF2 I guess), but it looks like the change from modular to builtin for HMAC did the trick. Thank you so much for your effort. For me two major questions remain though: 1.) Why did an older version of cryptsetup work without these modules? 2.) Why is HMAC needed? It is not obvious and if some other kernel module needs it, why is the dependecy missing? 4.) if HMAC dependecy is owed to cryptsetup specificly, is that documented already? With best Regards A delighted and happy user -Sven On Thu, September 4, 2014 09:24, Milan Broz wrote: > On 09/03/2014 11:03 PM, Sven Eschenberg wrote: >> Will mail that in a bit directly to you. I looked at the strace again >> and >> realized the following: >> the call to initialize the backend with the fixed values in sockaddr_alg >> (AF_ALG,"hash","sha1") obviously succeeds, the one after entering the >> passphrase, which is filled with AF_ALG, "hash", and the hashname, which >> should be sha1 again, seems to fail. > > I tried your config (just added hw drivers so it boots on my VM) > and for my non-initram i386 system it works. > > The only module it requires to load (all other are compiled in) is hmac, > so try CONFIG_CRYPTO_HMAC=y or check it is in initramfs. > > And obviously, removing this module so kernel cannot find it causes > ... > socket(PF_ALG, SOCK_SEQPACKET, 0) = 6 > bind(6, {sa_family=AF_ALG, sa_data="hash\0\0\0\0\0\0\0\0\0\0"}, 88) = -1 > ENOENT (No such file or directory) > = 0 > I will probably try to add some better debug messages here > (but you did not send me --debug output anyway :-) > > Milan > _______________________________________________ > dm-crypt mailing list > dm-crypt@saout.de > http://www.saout.de/mailman/listinfo/dm-crypt >