Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp14106668ybl; Mon, 30 Dec 2019 04:13:41 -0800 (PST) X-Google-Smtp-Source: APXvYqz+ecHaE6iqwiR+VJHoi8CvsBiskBhYm9AE3coUDw4inCJwwD7EF9rttRM9M5NmX2isLj/7 X-Received: by 2002:a05:6830:1d5b:: with SMTP id p27mr54171932oth.263.1577708021246; Mon, 30 Dec 2019 04:13:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577708021; cv=none; d=google.com; s=arc-20160816; b=MRVIN8OF6zkpMm5h1wstXCTbMNaCkgSCVKPQoV4uEIsAMdKaowVRuw8XfjQZJoVMrL hsDWqeGZV8JHIYG0KVFy6Lhc+BDUlxet64V3r89b66DFluYZN1tjFoGSyBtOvOM2uf6K z2UIR00+I8uJKtAFJcd0bO5rIMDGvnA/tyn5GZO8MDpmke6KnB/Q/1C7XJ+1qVuwn0M8 IdOvx+OLX8znVdRMzYC6iytRzxXcpxvH0NdImSFlIy3Zu3T5l1X1CSfDsJCX3pZqTISr DdW4c5ZDvlTRzuiYoloiBTE7drfX5UKvjNpRk714mQ3D19ypYWjNUjn3z1PJsY8nB3uO TUHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=JP4DEDzF6CESum5mihtCRwYv1YaxspG84wOVX9MzsJ4=; b=tRstdubV7Ig/ArFrjBjBcAo5FpdOpiD24gN+Iq2CWqVh+PJEDHWinM3HhYi2W2ygUD qs4ozuo0YaybdWTFSPQeavJci9WRkrXgUDqQ8RuAW4euEF1P2iz7VI7KaUsxELGTE4dv JBnNhtPVoaJXKlVEnOuoK68Ie1l9J5f15Wz/uy7m5XFnaNnIfVZpDCfYq9yKMTYmqGtW n+7C1Eo6OGDHT1kiKx5lTVzmAecE/LRnz2SziPvEWTEcgKZTdix0CzOUbgVGbUr1ShRw PHQ2wPCqA7x5NbK8bJbb1i486PzT0Ah4+YNB1lz3+Ga6RKByLwHqhE/Vs9Y0ANvDp1yY iEyg== 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 o17si18896328otk.135.2019.12.30.04.13.30; Mon, 30 Dec 2019 04:13:41 -0800 (PST) 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 S1727416AbfL3MMu (ORCPT + 99 others); Mon, 30 Dec 2019 07:12:50 -0500 Received: from mout.kundenserver.de ([212.227.126.134]:50105 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727376AbfL3MMu (ORCPT ); Mon, 30 Dec 2019 07:12:50 -0500 Received: from mail-qv1-f54.google.com ([209.85.219.54]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.129]) with ESMTPSA (Nemesis) id 1MYedH-1jGtAx3zRD-00Vgx9 for ; Mon, 30 Dec 2019 13:12:49 +0100 Received: by mail-qv1-f54.google.com with SMTP id z3so12299932qvn.0 for ; Mon, 30 Dec 2019 04:12:48 -0800 (PST) X-Gm-Message-State: APjAAAXGnDArELTodPYK/RY1RLdo30HZ7Ubahjj/nVek6eLeyXjjBjJx 4wsPmsLjt9stJgIGyDWbh4X0mgbX8zkSX247hpA= X-Received: by 2002:a0c:ead1:: with SMTP id y17mr48048227qvp.210.1577707967870; Mon, 30 Dec 2019 04:12:47 -0800 (PST) MIME-Version: 1.0 References: <20191221151813.1573450-1-raj.khem@gmail.com> <20191223171043.g54secptjtqkhuve@box> <20191223230857.eafab52y5erfmgab@box> In-Reply-To: <20191223230857.eafab52y5erfmgab@box> From: Arnd Bergmann Date: Mon, 30 Dec 2019 13:12:31 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] x86/boot/compressed/64: Define __force_order only when CONFIG_RANDOMIZE_BASE is unset To: "Kirill A. Shutemov" Cc: Khem Raj , "linux-kernel@vger.kernel.org" , "Kirill A . Shutemov" , Kees Cook , "H. Peter Anvin" , Ingo Molnar , Thomas Gleixner , x86-ml Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:yfG3rEOsgnCooNFoVGydWC/2tYS6ZUZVD0VMsbciMFhnOqu6W90 hW2VBVbDL/UuJSYrylZ64HTnfE3YyoHkKHit5OWRiyohF9RjN1sA1ismWG70Gs6X6kRrLLw oGUWkQQGe2AnhVoBbXPgGAzlyrCsoZytlOnSby063L9jijtO12Ck9alO+RQ4Qq9IkwfiDAN P9bThBb311lQx8NKy6McA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:U73m9w9Hp7M=:5QMdNHd8jcQyxssHkFtwOH IR9+kiHkK7VcBi8lEngZ3a/Dh8qIWg7m9oP1uUU7J3VoZSVaOZcrtQHhxmSXsUc1NYvr6M8Ls xSDiQtxRF+Kre1hmfp182bFLI0rtpPe57MJR4IBJn1r7y4ArYWEK2aoA1usRJ3G59fwz7p8Ps /ifTmjkKxlBZ0C0pRCV7QxgtyYs720MRM95iV2rAvF6XOQ1n32i0hkQvzypml8X0UD8GUQ21c 4EV3kc28ijYQo7rfnyX2v9H5LKUIX/GeElL8Id1WxlJWBxRMwoG9W8ijiehoY4AAp6+o7KuaZ bTTm2wkIDlTmBsQgbknmCUl7CEG2TdumSSCX+PhoVqXHjvhPDemXw/cReRfcG7oGtoVbzhrj1 vawr06p+dRn848EWYuCIrcqCvpwjwiT8R/j2rQ2dCJvXhapXMsBFHqw9BKOwyR5y5M3M+4X94 ip3jyq0c8yqBMjbpNkdPrbTI8FrRwx2/nuCGGKSgWSiTfnE3cGycAETHVbLe+d5CDQVyhMd0E qtGFuYt9dsTgNEGkk+Bz/dTYvMYg/VYWf+JLh5+V+gRLtK1wkxI9eB5YX389MXBlmJtPWL+cb exrRrQTvrJyTyevdiOBu3t5/4KmeMvUS/c8gpScxQWbiTIcIsDLwCCC0TdC7OnCbcdnK/EZpf pLDyV/FQJxMiswe0YM4y18v8ilptjYoGjmMEug0Sx06uOA7gcGl5qtQqUlU4bFWoi2YyPxl9y eblEIv1GGtefYl/n3tQTc6gh5G1lPwPsG8J3JfOvnX/yiCWmrTHEtoUW7iFaV1u1qEgIs1eQs iC54xDsAdbDO06ZyQ462v2PVzehAG8693gk71sBE4pzeg6k+osY8zR6jnwlK4MVPuDfwLCE5d IkmQneZspN1JdfRwVAsw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 24, 2019 at 12:08 AM Kirill A. Shutemov wrote: > On Mon, Dec 23, 2019 at 02:25:02PM -0800, Khem Raj wrote: > > On Mon, Dec 23, 2019 at 9:10 AM Kirill A. Shutemov wrote: > > > > > > On Sat, Dec 21, 2019 at 07:18:13AM -0800, Khem Raj wrote: > > > > Since arch/x86/boot/compressed/Makefile overrides global CFLAGS it loses > > > > -fno-common option which would have caught this > > > > > > If this doesn't cause any visible problems, why bother? > > > > > > > it does break builds with gcc trunk as of now e.g. > > > > > Hopefully, we will be able to drop it altogether once we ditch GCC 4.X > > > support. > > > > > > > gcc10 is switching defaults to -fno-common so we need to solve this one way or > > other, I am not sure if gcc 4.x will be dropped before gcc10 release > > which would be > > in mid of 2020 > > Okay, it makes sense then. Please include this info into the commit > message. > > Also, I wounder if it would be cleaner to define both of them as __weak? Or maybe make the #ifdef check for gcc < 5 instead of checking for CONFIG_RANDOMIZE_BASE? That way it will be found by whoever cleans up the code when we increase the minimum compiler version to one that doesn't require the hack. Arnd