Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp4300238pxb; Tue, 19 Apr 2022 23:25:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzhK/EGs/Dz0e91PltQYP6+dce6iRRITghkncUxjsxT5XYH2n3OQu7wbliE51iedG87LpY X-Received: by 2002:a65:460d:0:b0:39d:13e0:d571 with SMTP id v13-20020a65460d000000b0039d13e0d571mr17759455pgq.596.1650435945878; Tue, 19 Apr 2022 23:25:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650435945; cv=none; d=google.com; s=arc-20160816; b=HBx3YMCv/FCL0x0c3VOGMV26oOvbHZ8rIjY/1ZGoLlS5PeVctrqmqUnG+NeBLor+cq x7Tovamwv3Ib8yi1oIc0a66ctNiCdZ8v2EDiUEWwL3hQ8+Nb2Am8wr0ao3JjvY13CGfN jsOa2w7Uyj9pBBQw3PiKC4h10CfABuq81ZBnSV5N6oc8rtvB34//Tzg4yVi7SlOxh/9q WTf0770n5MbMJwaD8hsB3xtXI8i+haFbwpEYflD9yQQgwHEvyfp6xjAllhWW23R+KMvh BhFlgNt6TCcbnEbiupZNT5VQVPzmJbCT9xR1Td2aWaoXN9XFryLJqqFfUwpFRUkTpVBY NxFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=KMl0JTMhZTL1x6jDWh0PLFZFam32NWb8lAVUfzaacRA=; b=xZmxpRZslgttqs63KK6HcS24UzHRGS53urdrQ9Hh9Q4X5Pr8EfepFrO497+qwr4GY8 84rLF5HWqrhfavy/E2GnH9kx2t/2IIjjYf6lnd4gOOfFUvlVeLRKZEGLIuEQrSv/98Hg 7rvjL1XIFgNQ0HmEPqVzSXlrir7yMHj7YgzQjdfFdJEyIxgXJYf70XjKIoRbGXjEaDyt 3RG0d5FX9gQ8wWs/nzyVZCMbCW7u3qPN5hOpCWWgDf58C+ZcxWKBs5QiSuLSLHrZkXqA jC4fZO9yGuSMrbhy/neqwWPjCX31LFB/RnA9MoCzVYAa79LZAw/ixBPkXz+Ivu73NrE+ 5DkQ== ARC-Authentication-Results: i=1; mx.google.com; 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 l190-20020a6388c7000000b003aa7028bc98si152773pgd.418.2022.04.19.23.25.30; Tue, 19 Apr 2022 23:25:45 -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; 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 S1347677AbiDSMii (ORCPT + 99 others); Tue, 19 Apr 2022 08:38:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231152AbiDSMig (ORCPT ); Tue, 19 Apr 2022 08:38:36 -0400 X-Greylist: delayed 1387 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 19 Apr 2022 05:35:51 PDT Received: from ppsw-41.csi.cam.ac.uk (ppsw-41.csi.cam.ac.uk [131.111.8.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCC4E1573B for ; Tue, 19 Apr 2022 05:35:51 -0700 (PDT) X-Cam-AntiVirus: no malware found X-Cam-ScannerInfo: https://help.uis.cam.ac.uk/email-scanner-virus Received: from hades.srcf.societies.cam.ac.uk ([131.111.179.67]:56344) by ppsw-41.csi.cam.ac.uk (ppsw.cam.ac.uk [131.111.8.139]:25) with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1ngmiN-000usy-QF (Exim 4.95) (return-path ); Tue, 19 Apr 2022 13:12:15 +0100 Received: from [192.168.1.10] (host-92-26-109-251.as13285.net [92.26.109.251]) (Authenticated sender: amc96) by hades.srcf.societies.cam.ac.uk (Postfix) with ESMTPSA id 7565F1FAD5; Tue, 19 Apr 2022 13:12:14 +0100 (BST) Message-ID: <8fbbd4ca-54b1-8c1c-19bc-3d0e6044ff5d@srcf.net> Date: Tue, 19 Apr 2022 13:12:14 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [PATCH v2 06/25] x86/xen: Add ANNOTATE_ENDBR to startup_xen() Content-Language: en-GB To: Peter Zijlstra , Andrew Cooper Cc: Josh Poimboeuf , "x86@kernel.org" , "linux-kernel@vger.kernel.org" , Miroslav Benes , Boris Ostrovsky , Juergen Gross , Stefano Stabellini , "xen-devel@lists.xenproject.org" References: <20220419115737.GU2731@worktop.programming.kicks-ass.net> From: Andrew Cooper In-Reply-To: <20220419115737.GU2731@worktop.programming.kicks-ass.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 19/04/2022 12:57, Peter Zijlstra wrote: > On Tue, Apr 19, 2022 at 11:42:12AM +0000, Andrew Cooper wrote: >> On 18/04/2022 17:50, Josh Poimboeuf wrote: >>> The startup_xen() kernel entry point is referenced by the ".note.Xen" >>> section, but is presumably not indirect-branched to. >> It's the real entrypoint of the VM.  It's "got to" by setting %rip >> during vcpu setup. >> >> We could in principle support starting a PV VM with CET active, but that >> sounds like an enormous quantity of effort for very little gain.  CET >> for Xen PV requires paravirt anyway (because the kernel runs in CPL!=0) >> so decisions like this can wait until someone feels like doing the work. >> >>> Add ANNOTATE_ENDBR >>> to silence future objtool warnings. >>> >>> Cc: Boris Ostrovsky >>> Cc: Juergen Gross >>> Cc: Stefano Stabellini >>> Cc: xen-devel@lists.xenproject.org >>> Signed-off-by: Josh Poimboeuf >> FWIW, Reviewed-by: Andrew Cooper , preferably >> with the commit message tweaked to remove the uncertainty. > Something like so then? > > --- > Subject: x86/xen: Add ANNOTATE_ENDBR to startup_xen() > From: Josh Poimboeuf > Date: Mon, 18 Apr 2022 09:50:25 -0700 > > From: Josh Poimboeuf > > The startup_xen() kernel entry point is referenced by the ".note.Xen" > section, and is the real entry point of the VM. It *will* be > indirectly branched to, *however* currently Xen doesn't support PV VM > with CET active. Technically it's always IRET'd to, but the point is that it's never "branched to" by the execution context of the VM. So it would be better to say that it's never indirectly branched to.  That's what the IBT checks care about. > > Add ANNOTATE_ENDBR to silence future objtool warnings. Only just spotted.  All text in the subject and commit message needs s/ENDBR/NOENDBR/ ~Andrew