From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935335AbdKPQgC (ORCPT ); Thu, 16 Nov 2017 11:36:02 -0500 Received: from mail-io0-f193.google.com ([209.85.223.193]:44534 "EHLO mail-io0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757965AbdKPQfx (ORCPT ); Thu, 16 Nov 2017 11:35:53 -0500 X-Google-Smtp-Source: AGs4zMbvyTiMSPD+Pv5FhHwuc6mnEFEmwwDcCEROhfQXStXk3p4bHxXCmC4VpPxYUC7JPTzWbgQNbg== Date: Thu, 16 Nov 2017 08:35:49 -0800 From: Sami Tolvanen To: Will Deacon 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 09/18] arm64: explicitly pass --no-fix-cortex-a53-843419 to GNU gold Message-ID: <20171116163549.GD94341@samitolvanen.mtv.corp.google.com> References: <20171115213428.22559-1-samitolvanen@google.com> <20171115213428.22559-10-samitolvanen@google.com> <20171116114722.GD9361@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171116114722.GD9361@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:47:23AM +0000, Will Deacon wrote: > But if ARM64_ERRATUM_843419 is enabled, we'll go ahead and generate > broken code? This bug has been fixed in all current versions of GNU gold, but of course, if someone is using a broken linker, it will generate broken code. We can't do anything about that in the kernel. The reason for this patch is that the linker can be configured to enable the erratum fix by default, and we must explicitly disable it if we don't want the fix, whether it's because of a broken linker, or in our case, because of issues with kernel modules. Sami