Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752397AbdCMRGR (ORCPT ); Mon, 13 Mar 2017 13:06:17 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:33017 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932099AbdCMRGH (ORCPT ); Mon, 13 Mar 2017 13:06:07 -0400 Date: Mon, 13 Mar 2017 19:06:01 +0200 From: Krzysztof Kozlowski To: Nathan Royce , Herbert Xu Cc: davem@davemloft.net, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, Marek Szyprowski Subject: Re: XTS Crypto Not Found In /proc/crypto Even After Compiled for 4.10.1. Message-ID: <20170313170601.ozolfzgixqu6aa4g@kozik-lap> References: <20170306173511.6w3e47v4vomu7yv4@kozik-lap> <20170308174542.2rydwxmrb3oehyrc@kozik-lap> <20170308211543.euqexxlhdgpfcdjk@kozik-lap> <20170310180640.dnacw53vqrqji2xo@kozik-lap> <20170312191322.bbux5nrkqf5klznq@kozik-lap> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20170312191322.bbux5nrkqf5klznq@kozik-lap> User-Agent: Mutt/1.6.2-neo (2016-08-21) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1346 Lines: 31 On Sun, Mar 12, 2017 at 09:13:22PM +0200, Krzysztof Kozlowski wrote: > On Fri, Mar 10, 2017 at 03:44:45PM -0600, Nathan Royce wrote: > > Sure, I went ahead and rebuilt it just using the bare exynos_defconfig > > and adding XTS and ECB and no other changes. > > > > No flags were used. No patches were used other than the 2 you > > provided. Just the barest of bears, the barest of bones, the barest of > > deserts, the barest of hairless cats. > > > > Okay, I reproduced it. Beside enabling crypto tests, ECB and XTS, the > important step is to disable the "ARM Accelerated Cryptographic > Algorithms" so S5P-SSS will be used with XTS. The xts(ecb-aes-s5p)) > itself passes TCRYPT tests but oopses on cryptswap. Hi Herbert, 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) Any hints? Best regards, Krzysztof