From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934420AbdKPLqR (ORCPT ); Thu, 16 Nov 2017 06:46:17 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:49934 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753382AbdKPLqJ (ORCPT ); Thu, 16 Nov 2017 06:46:09 -0500 Date: Thu, 16 Nov 2017 11:46:17 +0000 From: Will Deacon To: Sami Tolvanen Cc: Alex Matveev , Andi Kleen , Ard Biesheuvel , Greg Hackmann , Kees Cook , linux-arm-kernel@lists.infradead.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Rutland , Masahiro Yamada , Maxim Kuvyrkov , Michal Marek , Nick Desaulniers , Yury Norov , Matthias Kaehlcke Subject: Re: [PATCH v2 06/18] arm64: kvm: use -fno-jump-tables with clang Message-ID: <20171116114616.GC9361@arm.com> References: <20171115213428.22559-1-samitolvanen@google.com> <20171115213428.22559-7-samitolvanen@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171115213428.22559-7-samitolvanen@google.com> 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 Wed, Nov 15, 2017 at 01:34:16PM -0800, Sami Tolvanen wrote: > Use -fno-jump-tables to make sure clang doesn't generate branches > to EL1 virtual addresses. Can you elaborate a bit more on exactly what you saw failing here, please? Whilst it's obviously broken to jump to EL1 from EL2 w/o VHE, the commit message is a bit cryptic. Will