From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965344AbdKPQdE (ORCPT ); Thu, 16 Nov 2017 11:33:04 -0500 Received: from mail-it0-f42.google.com ([209.85.214.42]:39917 "EHLO mail-it0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965304AbdKPQcy (ORCPT ); Thu, 16 Nov 2017 11:32:54 -0500 X-Google-Smtp-Source: AGs4zMb5vJ89oL9MzrUTA1wczeNQjkmue63JM3E2YwzsSQ9vxKwLBoQEDKu27fJzFjnm95Pnuru2xg== Date: Thu, 16 Nov 2017 08:32:50 -0800 From: Sami Tolvanen To: Will Deacon Cc: Ard Biesheuvel , Mark Rutland , Andi Kleen , Kees Cook , linux-kbuild@vger.kernel.org, Nick Desaulniers , "linux-kernel@vger.kernel.org" , Greg Hackmann , Masahiro Yamada , Michal Marek , Yury Norov , Alex Matveev , Matthias Kaehlcke , "linux-arm-kernel@lists.infradead.org" , Maxim Kuvyrkov Subject: Re: [PATCH v2 08/18] arm64: don't disable ADR_PREL_PG_HI21* with ARM64_ERRATUM_843419 Message-ID: <20171116163132.GC94341@samitolvanen.mtv.corp.google.com> References: <20171115213428.22559-1-samitolvanen@google.com> <20171115213428.22559-9-samitolvanen@google.com> <20171116114406.GB9361@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171116114406.GB9361@arm.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 16, 2017 at 11:44:06AM +0000, Will Deacon wrote: > Right, and this would also mean that we silently load vulnerable > modules that are linked with either LD that doesn't support > --fix-cortex-a53-843419 or simply wasn't passed. You'll see a warning at least if the linker doesn't support the flag, but yes, you're correct. In v1 of this patch set, LTO depended on this erratum not being selected, but I changed it in v2 based on Ard's suggestion. I'm fine with not being able to use LTO on devices that are affected by this erratum, so either option works for me. I can even change this so the user must explicitly disable the erratum in order to use LTO. Thoughts? Sami