From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 79E4A1381F3 for ; Tue, 4 Dec 2012 04:16:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 87C2321C01A; Tue, 4 Dec 2012 04:16:45 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D3ABD21C041 for ; Tue, 4 Dec 2012 04:16:44 +0000 (UTC) Received: from flycatcher.gentoo.org (flycatcher.gentoo.org [81.93.255.6]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BBF9F33DA02 for ; Tue, 4 Dec 2012 04:16:43 +0000 (UTC) Received: by flycatcher.gentoo.org (Postfix, from userid 2274) id 736E321622; Tue, 4 Dec 2012 04:16:42 +0000 (UTC) From: "Tim Harder (radhermit)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, radhermit@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/libgcrypt/files: libgcrypt-1.5.0-aesni.patch X-VCS-Repository: gentoo-x86 X-VCS-Files: libgcrypt-1.5.0-aesni.patch X-VCS-Directories: dev-libs/libgcrypt/files X-VCS-Committer: radhermit X-VCS-Committer-Name: Tim Harder Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Message-Id: <20121204041642.736E321622@flycatcher.gentoo.org> Date: Tue, 4 Dec 2012 04:16:42 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 593c9e31-7e2b-4f16-9b3e-652e110525a8 X-Archives-Hash: 981c67198aa682be4bbd8487eb62cc75 radhermit 12/12/04 04:16:42 Added: libgcrypt-1.5.0-aesni.patch Log: Revbump to fix segfault issue with aes-ni support and add epatch_user support (bugs #442568 and #442630 by Toralf Förster). (Portage version: 2.2.0_alpha144/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3) Revision Changes Path 1.1 dev-libs/libgcrypt/files/libgcrypt-1.5.0-aesni.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libgcrypt/files/libgcrypt-1.5.0-aesni.patch?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libgcrypt/files/libgcrypt-1.5.0-aesni.patch?rev=1.1&content-type=text/plain Index: libgcrypt-1.5.0-aesni.patch =================================================================== >From a96974de734beb51a733a89b3283bcf7b433b54c Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 21 Nov 2012 10:35:28 +0100 Subject: [PATCH] Fix segv with AES-NI on some platforms. * cipher/rijndael.c (RIJNDAEL_context): Align on 16 bytes. -- The trigger for this problem is the allocation of the context in the selftest functions. The other code paths use a 16 byte alignment anyway by means of the allocation of the context in cipher.c Thanks to Gentoo hacker Joakim Tjernlund for figuring out the reason of this problem. GnuPG-bug-id: 1452 --- cipher/rijndael.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cipher/rijndael.c b/cipher/rijndael.c index d9a95cb..a2aedf0 100644 --- a/cipher/rijndael.c +++ b/cipher/rijndael.c @@ -126,7 +126,7 @@ typedef struct #ifdef USE_AESNI int use_aesni; /* AES-NI shall be used. */ #endif /*USE_AESNI*/ -} RIJNDAEL_context; +} RIJNDAEL_context ATTR_ALIGNED_16; /* Macros defining alias for the keyschedules. */ #define keyschenc u1.keyschedule -- 1.8.0