From: Herbert Xu Subject: Re: [PATCH] crypto: aesni_intel - fix accessing of unaligned memory Date: Thu, 13 Jun 2013 14:58:38 +0800 Message-ID: <20130613065838.GA1691@gondor.apana.org.au> References: <20130611191746.GA31945@redhat.com> <20130611192522.12995.57979.stgit@localhost6.localdomain6> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-crypto@vger.kernel.org, Dave Jones , "David S. Miller" , linux-kernel@vger.kernel.org To: Jussi Kivilinna Return-path: Content-Disposition: inline In-Reply-To: <20130611192522.12995.57979.stgit@localhost6.localdomain6> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-crypto.vger.kernel.org On Tue, Jun 11, 2013 at 10:25:22PM +0300, Jussi Kivilinna wrote: > The new XTS code for aesni_intel uses input buffers directly as memory operands > for pxor instructions, which causes crash if those buffers are not aligned to > 16 bytes. > > Patch changes XTS code to handle unaligned memory correctly, by loading memory > with movdqu instead. > > Reported-by: Dave Jones > Tested-by: Dave Jones > Signed-off-by: Jussi Kivilinna Applied to crypto. Thanks! -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt