From: Herbert Xu Subject: Re: XTS Crypto Not Found In /proc/crypto Even After Compiled for 4.10.1. Date: Tue, 14 Mar 2017 17:20:25 +0800 Message-ID: <20170314092025.GC711@gondor.apana.org.au> References: <20170306173511.6w3e47v4vomu7yv4@kozik-lap> <20170308174542.2rydwxmrb3oehyrc@kozik-lap> <20170308211543.euqexxlhdgpfcdjk@kozik-lap> <20170310180640.dnacw53vqrqji2xo@kozik-lap> <20170312191322.bbux5nrkqf5klznq@kozik-lap> <20170313170601.ozolfzgixqu6aa4g@kozik-lap> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Nathan Royce , davem@davemloft.net, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, Marek Szyprowski To: Krzysztof Kozlowski Return-path: Received: from helcar.hengli.com.au ([209.40.204.226]:60535 "EHLO helcar.apana.org.au" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750749AbdCNJUj (ORCPT ); Tue, 14 Mar 2017 05:20:39 -0400 Content-Disposition: inline In-Reply-To: <20170313170601.ozolfzgixqu6aa4g@kozik-lap> Sender: linux-crypto-owner@vger.kernel.org List-ID: On Mon, Mar 13, 2017 at 07:06:01PM +0200, Krzysztof Kozlowski wrote: > > I bisected this to commit f1c131b45410 ("crypto: xts - Convert to > skcipher"). The s5p-sss driver stays the same... but the xts changes and > as a result we have a NULL pointer dereference (actually of value > 00000004): > [ 18.930195] Unable to handle kernel NULL pointer dereference at virtual address 00000004 > ... > [ 18.972325] [] (post_crypt) from [] (decrypt_done+0x4c/0x54) > [ 18.972343] [] (decrypt_done) from [] (s5p_aes_interrupt+0x1bc/0x208) > [ 18.972360] [] (s5p_aes_interrupt) from [] (irq_thread_fn+0x1c/0x54) Well that's hardly surprising since xts prior to this commit used simple AES as opposed to ecb(aes) so it couldn't have triggered this bug. > Any hints? I'll have a look when I have time but no promises. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt