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 ; Mon, 1 Sep 2014 22:12:53 +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 1XOXy8-0003Dz-Pm for dm-crypt@saout.de; Mon, 01 Sep 2014 22:12:52 +0200 Message-ID: <8eb220aa5096641f9144b1128d117ed4.squirrel@ssl.verfeiert.org> In-Reply-To: <5404D045.5020002@gmail.com> References: <27d5e048ef3f17501e9e92019b4c7643.squirrel@ssl.verfeiert.org> <5404D045.5020002@gmail.com> Date: Mon, 1 Sep 2014 22:12:52 +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 On Mon, September 1, 2014 22:00, Milan Broz wrote: > On 09/01/2014 09:32 PM, Sven Eschenberg wrote: >> I recently upgraded one of my systems and after cryptsetup was updated, >> included into my initramfs it fails to open the LUKS container. >> >> In the very beginning I ended up with a 'Cannot initialize crypto >> backend' >> error. After some debugging I managed to add the missing kernel modules >> to >> get AF_ALGO. Now I am getting to a password prompt, enter my passphrase >> and get a failure. I cannot recall the exact error msg, I remember >> though >> it said something about a missing option. >> >> Anyway, I traced the whole thing, and I think it's the following call >> that >> creates the fatal error: >> bind(,{sa_family=AF_ALG,SA_data=hash\0,88})=ENOENT) >> >> First I had a failure on the socket() call, which I managed to get rid >> off, now the actual bind() fails. I can see the problem is hash related, >> but further assistance is appreciated. > > Hi, > > the dependence on AF_ALG (for LUKS) is optional and there is fallback > to old way. So in your described scenario it should still work. > (The ENOENT error above is not fatal error, it is indication that some > function > is not available and code should simple use old way how to decrypt > keyslot.) I see, well, the trace does some close() after the failed bind(), munmap() munlockall(), setpriority() and the exit_group() and I see an exited with 1 message, anyway, let'S check the other stuff .. > > Which exact version you are using? Be sure that you have the last 1.6.6 > where I fixed some problems related to crypto API interface. Okay, I am using 1.6.4, will upgrade it and check again... > > Can you post output with added --debug of command which fails? > > If you are compiling cryptsetup yourself, which crypto backend are you > using? > (If it is kernel API, then kernel must have required support, AF_ALG > API and all relevant crypto modules.) Always used the kernel backend. I reused the kernel config (just minor upgrade) which worked with the old cryptsetup. > > Thanks, > Milan > _______________________________________________ > dm-crypt mailing list > dm-crypt@saout.de > http://www.saout.de/mailman/listinfo/dm-crypt > Regards -Sven