Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp756922ybh; Tue, 10 Mar 2020 07:42:43 -0700 (PDT) X-Google-Smtp-Source: ADFU+vusqj0Uiynmag9iK+6Z3CfOpJ3fEZ9uIbm/axLOcHHtQNaXHVokI+OVVNbhymKaLwhfS8s8 X-Received: by 2002:a05:6830:1684:: with SMTP id k4mr17852074otr.75.1583851363770; Tue, 10 Mar 2020 07:42:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583851363; cv=none; d=google.com; s=arc-20160816; b=lclwyL6Z6Zo9OcfoGxpOMxUQYjG9hOPFv3TiUfiJILcxKQd2QBlTQX+N1rOlyx96zS wqQTdlJkQktk7N80RWsKe03VJdnWgASUQiJq/5YDGp6u2qzPqEPlL5QaSmO4m4W4Zlk7 Dv7lp7OOB1H7YhNWV+F97FgQJuLVTySI8oQoN/Jrkcz9uS6xOWzGfaUf0SNb7H6ODaiH yZE1z9VoQCs7uC7FqiDnYDUiJmrnBvPPPyQyknydKBJ1T+HusElWZe2SPGWsWoYqazw1 15mXGZZC+zWGNbptCmaRoKS7kG/g69+JKRa5ZwfEBmgnWe2HHc1JRC3TR4L/8m6g1m20 +PuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=bODH7mny6HRrAj1fPRlJVPb79Wve3op7rKNi5ELoKaY=; b=ANtdlRq4NtXzXKUxEKiVMz7Yk7vB+t7R0oAXJDW9gG5Hmk7Np/54X6MswOBnl69DAN YPo0iprZ3jZHLCkzYMBeIZgIou3G6/33LykWW/KDGkXGKlPnl59MvYCZDP/D5GFeyran iY6oXN1UNUKx5pYA4ARKaLforQsGeS65WK2Kt8HdtIB6dh1tKHKzxWrZa1UjsZcdw3du RyC2eaEUOa2QVg8XxfKfaqFFY1nImjoScWrtrsxTH7bZNbDdMVOLE6llenGMEPTHXtjW RZq4uuUfhwu81IWddReJ7if0GeP7vin9kH/ooawi4KrC9112LdQEKSGMlK3lwz+PqyYs y16Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s24si8675832otp.86.2020.03.10.07.42.31; Tue, 10 Mar 2020 07:42:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727430AbgCJOmH (ORCPT + 99 others); Tue, 10 Mar 2020 10:42:07 -0400 Received: from er-systems.de ([148.251.68.21]:44986 "EHLO er-systems.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726391AbgCJOmH (ORCPT ); Tue, 10 Mar 2020 10:42:07 -0400 X-Greylist: delayed 486 seconds by postgrey-1.27 at vger.kernel.org; Tue, 10 Mar 2020 10:42:06 EDT Received: from localhost.localdomain (localhost [127.0.0.1]) by er-systems.de (Postfix) with ESMTP id BD688D6006F; Tue, 10 Mar 2020 15:33:58 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on er-systems.de X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by er-systems.de (Postfix) with ESMTPS id 9DF71D6006D; Tue, 10 Mar 2020 15:33:58 +0100 (CET) Date: Tue, 10 Mar 2020 15:33:57 +0100 (CET) From: Thomas Voegtle X-X-Sender: thomas@er-systems.de To: Greg Kroah-Hartman cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, "H.J. Lu" , Borislav Petkov , Sasha Levin Subject: Re: [PATCH 4.9 62/88] x86/boot/compressed: Dont declare __force_order in kaslr_64.c In-Reply-To: <20200310123621.868809541@linuxfoundation.org> Message-ID: References: <20200310123606.543939933@linuxfoundation.org> <20200310123621.868809541@linuxfoundation.org> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Virus-Status: No X-Virus-Checker-Version: clamassassin 1.2.4 with clamdscan / ClamAV 0.102.2/25747/Tue Mar 10 12:06:29 2020 signatures . Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 10 Mar 2020, Greg Kroah-Hartman wrote: > From: H.J. Lu > > [ Upstream commit df6d4f9db79c1a5d6f48b59db35ccd1e9ff9adfc ] > > GCC 10 changed the default to -fno-common, which leads to > > LD arch/x86/boot/compressed/vmlinux > ld: arch/x86/boot/compressed/pgtable_64.o:(.bss+0x0): multiple definition of `__force_order'; \ > arch/x86/boot/compressed/kaslr_64.o:(.bss+0x0): first defined here > make[2]: *** [arch/x86/boot/compressed/Makefile:119: arch/x86/boot/compressed/vmlinux] Error 1 > > Since __force_order is already provided in pgtable_64.c, there is no > need to declare __force_order in kaslr_64.c. > > Signed-off-by: H.J. Lu > Signed-off-by: Borislav Petkov > Link: https://lkml.kernel.org/r/20200124181811.4780-1-hjl.tools@gmail.com > Signed-off-by: Sasha Levin > --- > arch/x86/boot/compressed/pagetable.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/arch/x86/boot/compressed/pagetable.c b/arch/x86/boot/compressed/pagetable.c > index 56589d0a804b1..2591f8f6d45f2 100644 > --- a/arch/x86/boot/compressed/pagetable.c > +++ b/arch/x86/boot/compressed/pagetable.c > @@ -25,9 +25,6 @@ > #define __PAGE_OFFSET __PAGE_OFFSET_BASE > #include "../../mm/ident_map.c" > > -/* Used by pgtable.h asm code to force instruction serialization. */ > -unsigned long __force_order; > - > /* Used to track our page table allocation area. */ > struct alloc_pgt_data { > unsigned char *pgt_buf; > This ends up for me in: arch/x86/boot/compressed/pagetable.o: In function `initialize_identity_maps': pagetable.c:(.text+0x309): undefined reference to `__force_order' arch/x86/boot/compressed/pagetable.o: In function `finalize_identity_maps': pagetable.c:(.text+0x41a): undefined reference to `__force_order' pgtable_64.c doesn't exist in v4.9 for x86. So I guess it's not correct to remove __force_order from pagetable.c? Thomas