* [gentoo-commits] gentoo-x86 commit in dev-libs/libgcrypt/files: libgcrypt-1.5.0-aesni.patch
@ 2012-12-04 4:16 Tim Harder (radhermit)
0 siblings, 0 replies; only message in thread
From: Tim Harder (radhermit) @ 2012-12-04 4:16 UTC (permalink / raw
To: gentoo-commits
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 <wk@gnupg.org>
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-12-04 4:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-04 4:16 [gentoo-commits] gentoo-x86 commit in dev-libs/libgcrypt/files: libgcrypt-1.5.0-aesni.patch Tim Harder (radhermit)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox