From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mail.saout.de (Postfix) with ESMTP for ; Sun, 11 Oct 2009 23:56:35 +0200 (CEST) Message-ID: <4AD2548B.7020703@redhat.com> Date: Sun, 11 Oct 2009 23:56:27 +0200 From: Milan Broz MIME-Version: 1.0 References: <200910051934.53231.massimo@burcheri.de> <4ACF97EE.2050509@gmail.com> <200910112205.18769.massimo@burcheri.de> In-Reply-To: <200910112205.18769.massimo@burcheri.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [dm-crypt] Fwd: Incompatible LRW changes from 2.6.27 to 2.6.29? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Massimo Burcheri Cc: dm-crypt@saout.de, Moji On 10/11/2009 10:05 PM, Massimo Burcheri wrote: > On Fr Oktober 9 2009 at 22:07, Moji wrote: > >> I am running Gentoo 2.6.30-r4 and I don't seem to be able to >> reproduce the problem, maybe I am not understanding it correctly. >> >> Here is what I tried. > ... > > Hi, thanks for your efforts. This also works for me on 2.6.30, but did > you try to create the LUKS Device on 2.6.27 and then switching to > 2.6.30 to open it? That's what is failing here. > Even creating on 2.6.30 and opening on 2.6.27 doesn't work. > > Then the platform here is PPC. Short searching in git log show this patch http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=8eb2dfac41c71701bb741f496f0cb7b7e4a3c3f6 "It turns out that LRW has never worked properly on big endian." and maybe also http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=fd4609a8e00a867303783ade62d67953fb72adc8 So I think since 2.6.29-rc6 it "work properly" and in previous kernel all ciphers in LRW mode on big-endian arch produce wrong output. Can you try to apply this simple patch(es) to old kernel and then check if it works in new one? Milan -- mbroz@redhat.com