Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759365AbYAJXYz (ORCPT ); Thu, 10 Jan 2008 18:24:55 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755885AbYAJXYq (ORCPT ); Thu, 10 Jan 2008 18:24:46 -0500 Received: from fmmailgate02.web.de ([217.72.192.227]:34100 "EHLO fmmailgate02.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755096AbYAJXYp (ORCPT ); Thu, 10 Jan 2008 18:24:45 -0500 Message-ID: <4786A88E.4020503@web.de> Date: Fri, 11 Jan 2008 00:21:50 +0100 From: Torben Viets User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: Herbert Xu CC: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: LRW/XTS + Via Padlock Bug in 2.6.24-rc7? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX180uTtsgq2UGv8ktwVth6smqTIcO7i13NUAvXcV FwsndG79PDprZbOPG1GCW9DJgFM6k8ldr5RQbNvmaVW/QIHHL/ ELZpDal6o= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1583 Lines: 45 Woot, it works, in XTS and LRW mode thanks, but I have one last question (it sounds like I'm columbo ;) ) Why I can't see both in /proc/crypto and of course not use in int cryptsetup, till I make a /etc/init.d/udev restart ist ths a kernel bug, or a ubuntu bug? Thanks Torben Viets Herbert Xu wrote: > Torben Viets wrote: > >> After rebuilding the kernel, I tried: cryptsetup -c aes-xts-plain -s 256 luksFormat /dev/raid/test >> >> It does the same as before, dmesg says: >> >> general protection fault: 0000 [#1] >> Modules linked in: xt_TCPMSS xt_tcpmss iptable_mangle ipt_MASQUERADE xt_tcpudp pppoe pppox xt_mark xt_state iptable_nat nf_nat nf_conntrack_ipv4 iptable_filter ip_tables x_tables af_packet ppp_generic slhc aes_i586 dm_crypt dm_mod >> >> Pid: 4409, comm: kcryptd Not tainted (2.6.24-rc7 #2) >> EIP: 0060:[] EFLAGS: 00010282 CPU: 0 >> EIP is at aes_crypt_copy+0x2c/0x50 >> EAX: f62e1ff0 EBX: f60ab850 ECX: 00000001 EDX: f60ab830 >> ESI: f620dda8 EDI: f620dda8 EBP: f62e1ff0 ESP: f620dda8 >> > > Oh I see. I misdiagnosed the problem. The problem is that for some > reason gcc cannot guarantee 16-byte alignment for variables on the > stack in the kernel. As you can see from ESI/EDI above the temporary > buffer is unaligned. > > Please try this patch instead. > > Thanks, > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/