From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 27D02C4332D for ; Tue, 16 Mar 2021 19:59:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id ED7BB64F75 for ; Tue, 16 Mar 2021 19:59:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240730AbhCPT6r (ORCPT ); Tue, 16 Mar 2021 15:58:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233506AbhCPT6U (ORCPT ); Tue, 16 Mar 2021 15:58:20 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC298C06174A; Tue, 16 Mar 2021 12:58:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; 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=KkZwEPUQCMwOivHO6m7Z9239lBaUNqbxUKZ6UDSVFWY=; b=X5oOAwBnqFKCT2F+1ptWGWXzlC J+05EeH3R5PZAymU4r1zQjaCX27P1TpJ9FYvTkoKe9oj+5GENdr+vSSmcjL4h43qamaTIZ9/50wYs ET+iGhFylz8fZ4gMAsgPpRcpq0GPuU8OX/iKVvD1RyVxSUUDhR3t1ZF/P1rD6n41PwsYl36O7EZum bXFkTsm661rBnfNSEVGrL0mZAlnrgJC2YveF95TKG0PTZa6p+ClYVHwr6I4nDcS+rlwG0y+VzLcAY koOnNTC1PdRjnrgCBnHxEMIC5naZSQ7l61PyM5LSKc7vTEmOz40Oahjx4PiPLbs/KWPOmdkB2IiOj FFlgk68w==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lMFpA-001lEm-11; Tue, 16 Mar 2021 19:57:52 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 48299301124; Tue, 16 Mar 2021 20:57:50 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 3752520B05D79; Tue, 16 Mar 2021 20:57:50 +0100 (CET) Date: Tue, 16 Mar 2021 20:57:50 +0100 From: Peter Zijlstra To: "Yu, Yu-cheng" Cc: Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-api@vger.kernel.org, Arnd Bergmann , Andy Lutomirski , Balbir Singh , Borislav Petkov , Cyrill Gorcunov , Dave Hansen , Eugene Syromiatnikov , Florian Weimer , "H.J. Lu" , Jann Horn , Jonathan Corbet , Kees Cook , Mike Kravetz , Nadav Amit , Oleg Nesterov , Pavel Machek , Randy Dunlap , "Ravi V. Shankar" , Vedvyas Shanbhogue , Dave Martin , Weijiang Yang , Pengfei Xu , Haitao Huang , Jarkko Sakkinen Subject: Re: [PATCH v23 6/9] x86/entry: Introduce ENDBR macro Message-ID: References: <20210316151320.6123-1-yu-cheng.yu@intel.com> <20210316151320.6123-7-yu-cheng.yu@intel.com> <15966857-9be7-3029-7e93-e40596b4649a@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15966857-9be7-3029-7e93-e40596b4649a@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 16, 2021 at 10:12:39AM -0700, Yu, Yu-cheng wrote: > Alternatively, there is another compiler-defined macro _CET_ENDBR that can > be used. We can put the following in calling.h: > > #ifdef __CET__ > #include > #else > #define _CET_ENDBR > #endif > > and then use _CET_ENDBR in other files. How is that? > > In the future, in case we have kernel-mode IBT, ENDBR macros are also needed > for other assembly files. Can we please call it IBT_ENDBR or just ENDBR. CET is a horrible name, seeing how it is not specific.