Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp156637rwb; Thu, 18 Aug 2022 01:08:26 -0700 (PDT) X-Google-Smtp-Source: AA6agR7hYNCEsMXAirOEDidsSqEtR8xSierLcAV+8nbNVGRDevfiHoEfaDC8UjaEieyTfawNWQ6S X-Received: by 2002:a17:902:e5cf:b0:171:4f8d:228e with SMTP id u15-20020a170902e5cf00b001714f8d228emr1626509plf.99.1660810106056; Thu, 18 Aug 2022 01:08:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660810106; cv=none; d=google.com; s=arc-20160816; b=vhANKkxvSe0COv6pmEPvNug+AQJ8NCCkDQv/Boumud6dNX7lWV5C3ZOBYp1wIfEH+W At7g9AudKqqFCyJsLFV7ADviTyaVK7G+RaOE6nSNCQtJ1Cfso3hV7FvlALYr9s+VFFAq gxIRebiVgROa6Jth7QYiaYfOlyz3oCv/NmOd0UthSrJY9sAM3+0+s7OLDOZU1tjykZXr S1+mIMKiXRwrh571J+ND2zBVau+ojRiNTFELAjLNYiHNcMWGpvgoEB9iOd/tUIkPAR98 Bj6YvY++1vU2H4Asx0Xi3RkNvkAGvDWCpVHKgruGoitx5Ic+1jtZLeBHhNdAFQGz7q3r Ftsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=B0FOqbOjjD5Eu6hMGkx4/QaR7cvvJoyR6LldMiptjZA=; b=dp5ElnfT1hGUmBHcwaRHWEs6FvI0YREIVJtQF3xjz3gqw/XQDDZNAs6P4rRD4mcowh ok3/8eelY2lj5NMWZfYb9PuxaPk68LcDZuXzBIFoAu4DF9/G4+WnyoZ7aXDUj+Tp0Oqv P0dzQ0PlZnwGn9T5bY2k2+sCzG3t4ghk6oT1M8TB0THSAS5DLxFEBtKU2Tr6mDCogAWJ MExdK7JJ4RwMyw59Lhq9SRUfk57BEEikm3J8tURJp50zhjLc+68QSptHq9GRe8SLROsB XsSBr6YQB5lJtplGA5vOzGJUwZALqkBtsl1jlq1mLPBsUMMFK6HU3j5Io7NvYVGU+gK+ 3pgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=lAbemeTj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l134-20020a633e8c000000b004298f3f8562si1024012pga.2.2022.08.18.01.08.14; Thu, 18 Aug 2022 01:08:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=lAbemeTj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235189AbiHRHtW (ORCPT + 99 others); Thu, 18 Aug 2022 03:49:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229760AbiHRHtV (ORCPT ); Thu, 18 Aug 2022 03:49:21 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A03AAAE22C for ; Thu, 18 Aug 2022 00:49:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=B0FOqbOjjD5Eu6hMGkx4/QaR7cvvJoyR6LldMiptjZA=; b=lAbemeTjjG7Zib6AJtOPKEYNsf uTj3+j1lm1WaMG3Dz2qNfFUxF5PX10h5Lg5dGz9GpMVCsuufeXp0I7106UGddGWKfz8PBbJJgvE7l q5xNYe6NFBmq3KguAH5zB37sUHkQPSmI9pYeaGt6Qt6oIXV6T/Uyt6JB9GT1p/ulDRP8BVO2v74jM KGbiQnvExQ1OmJIMLnFSfptlyTUDFhDgeFSgS/RSREY/8/rtTE+JhoMWtQO96aypVElR4K4/Bfld4 LTgVsjlSN5CktdTCY1U2f/cfMlsJZT3RClH7MXmcq0HCGV7YpCKJQ70mRd57Ob8c2lp9kLxp6xMQ0 3h0Lt9hA==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=worktop.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1oOaH2-009U3g-9s; Thu, 18 Aug 2022 07:49:04 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id 5DD9C980135; Thu, 18 Aug 2022 09:49:01 +0200 (CEST) Date: Thu, 18 Aug 2022 09:49:01 +0200 From: Peter Zijlstra To: Nathan Chancellor Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, Nick Desaulniers , linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH] x86/build: Move '-mindirect-branch-cs-prefix' out of GCC-only block Message-ID: References: <20220817185410.1174782-1-nathan@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220817185410.1174782-1-nathan@kernel.org> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 17, 2022 at 11:54:11AM -0700, Nathan Chancellor wrote: > LLVM 16 will have support for this flag so move it out of the GCC-only > block to allow LLVM builds to take advantage of it. > > Link: https://github.com/ClangBuiltLinux/linux/issues/1665 > Link: https://github.com/llvm/llvm-project/commit/6f867f9102838ebe314c1f3661fdf95700386e5a > Signed-off-by: Nathan Chancellor Acked-by: Peter Zijlstra (Intel) > --- > > I was not sure if this information is relevant for the commit message > but I can boot without any issues on my test machines (two Intel and one > AMD). > > arch/x86/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/x86/Makefile b/arch/x86/Makefile > index 7854685c5f25..987da87c7778 100644 > --- a/arch/x86/Makefile > +++ b/arch/x86/Makefile > @@ -14,13 +14,13 @@ endif > > ifdef CONFIG_CC_IS_GCC > RETPOLINE_CFLAGS := $(call cc-option,-mindirect-branch=thunk-extern -mindirect-branch-register) > -RETPOLINE_CFLAGS += $(call cc-option,-mindirect-branch-cs-prefix) > RETPOLINE_VDSO_CFLAGS := $(call cc-option,-mindirect-branch=thunk-inline -mindirect-branch-register) > endif > ifdef CONFIG_CC_IS_CLANG > RETPOLINE_CFLAGS := -mretpoline-external-thunk > RETPOLINE_VDSO_CFLAGS := -mretpoline > endif > +RETPOLINE_CFLAGS += $(call cc-option,-mindirect-branch-cs-prefix) Thanks for using the same option!