From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756558AbdLOO1Z (ORCPT ); Fri, 15 Dec 2017 09:27:25 -0500 Received: from foss.arm.com ([217.140.101.70]:56906 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756074AbdLOO1X (ORCPT ); Fri, 15 Dec 2017 09:27:23 -0500 Date: Fri, 15 Dec 2017 14:27:32 +0000 From: Will Deacon To: Geert Uytterhoeven Cc: Dave Martin , Ard Biesheuvel , Catalin Marinas , Linux Kernel Mailing List , Linux-Renesas , Alex =?iso-8859-1?Q?Benn=E9e?= , "linux-arm-kernel@lists.infradead.org" Subject: Re: arm64: unhandled level 0 translation fault Message-ID: <20171215142732.GL25650@arm.com> References: <20171214152431.GC12608@e103592.cambridge.arm.com> <20171215112343.GR22781@e103592.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 15, 2017 at 02:30:00PM +0100, Geert Uytterhoeven wrote: > On Fri, Dec 15, 2017 at 12:23 PM, Dave Martin wrote: > > The two important differences here seem to be > > > > 1) Staging the state via current->thread.fpsimd_state instead of loading > > directly: > > > > - fpsimd_load_state(state); > > + current->thread.fpsimd_state = *state; > > + fpsimd_load_state(¤t->thread.fpsimd_state); > > The change above introduces the breakage. I finally managed to reproduce this, but only by using the exact same compiler as Geert: https://www.kernel.org/pub/tools/crosstool/files/bin/x86_64/4.9.0/x86_64-gcc-4.9.0-nolibc_aarch64-linux.tar.xz I then reliably see the problem if I run: # /usr/bin/update-ca-certificates from Debian Jessie. Note that my normal toolchain (Linaro 7.1.1 build) works fine and also if I use the toolchain above but disable CONFIG_ARM64_CRYPTO then things work too. So there's some toolchain-specific interaction between this change and the crypto code... Will