From: David Miller Subject: Re: [PATCH] crypto: aesni - fix XTS mode on x86-32, add wrapper function for asmlinkage aesni_enc() Date: Thu, 18 Oct 2012 16:34:24 -0400 (EDT) Message-ID: <20121018.163424.1410529294638285773.davem@davemloft.net> References: <20121018202457.30712.52079.stgit@localhost6.localdomain6> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: linux-crypto@vger.kernel.org, stable@vger.kernel.org, torvalds@linux-foundation.org, herbert@gondor.apana.org.au, kkolasa@winsoft.pl, ying.huang@intel.com To: jussi.kivilinna@mbnet.fi Return-path: Received: from shards.monkeyblade.net ([149.20.54.216]:54479 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754441Ab2JRUe1 (ORCPT ); Thu, 18 Oct 2012 16:34:27 -0400 In-Reply-To: <20121018202457.30712.52079.stgit@localhost6.localdomain6> Sender: linux-crypto-owner@vger.kernel.org List-ID: From: Jussi Kivilinna Date: Thu, 18 Oct 2012 23:24:57 +0300 > Calling convention for internal functions and 'asmlinkage' functions is > different on x86-32. Therefore do not directly cast aesni_enc as XTS tweak > function, but use wrapper function in between. Fixes crash with "XTS + > aesni_intel + x86-32" combination. > > Cc: stable@vger.kernel.org > Reported-by: Krzysztof Kolasa > Signed-off-by: Jussi Kivilinna Acked-by: David S. Miller