From nobody Mon May 11 00:45:32 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 81289C433EF for ; Tue, 19 Apr 2022 20:08:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357574AbiDSULh (ORCPT ); Tue, 19 Apr 2022 16:11:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356926AbiDSULW (ORCPT ); Tue, 19 Apr 2022 16:11:22 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 605723B017; Tue, 19 Apr 2022 13:08:39 -0700 (PDT) Date: Tue, 19 Apr 2022 20:08:36 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1650398918; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KGixIIVK11UN71F9hsjipeVRAdDqQ6PbGBA5GynwXF0=; b=QF7ONBLk6nCHTCgpcArUDjj+8G7kv3pN75z0+FQ0NDIUM0j3inQNAUCuqTqO0sd2R6RoOX HMEiTbQ1WFggsSRvfSJpz0Krj4wd/QbEfy3705tpCKTFE2jnK+CNwT1nOcOsEDRVMmsPCI L8Jy3kd+DW9C0yGr6DJVHTIp5zMZcGKypvY+NyiIpWPhTA5ZpMdBfobwQ0A2Q3xoBmJ8b7 XmGRsGQLAWBf0fkEdxoGxXb3NvTWCqq4eB6Di0N4pYP+JRc+5VvtKAJPOPQVbyHBTOPG31 FARM90Hj9KMtT3hgiF4wkye+BYxvcVIi3HmzQxEZdAJNoziMpYWajo1kei5KGw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1650398918; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KGixIIVK11UN71F9hsjipeVRAdDqQ6PbGBA5GynwXF0=; b=qfxQ8/aeYhEAbJ+Q658fC3jy2i7Fv5p3oVZVy1gOMMXb7OSmPBwttadD6+Vkqda9/QtDNo +TjBqT3vRBlnpKAA== From: "tip-bot2 for Josh Poimboeuf" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/urgent] x86/xen: Add ANNOTATE_NOENDBR to startup_xen() Cc: Josh Poimboeuf , "Peter Zijlstra (Intel)" , Andrew Cooper , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: References: MIME-Version: 1.0 Message-ID: <165039891679.4207.9559148503286018502.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/urgent branch of tip: Commit-ID: 1ab80a0da4c4a4dd496fc14faabbc8bde61a605c Gitweb: https://git.kernel.org/tip/1ab80a0da4c4a4dd496fc14faabbc8bde= 61a605c Author: Josh Poimboeuf AuthorDate: Mon, 18 Apr 2022 09:50:25 -07:00 Committer: Peter Zijlstra CommitterDate: Tue, 19 Apr 2022 21:58:49 +02:00 x86/xen: Add ANNOTATE_NOENDBR to startup_xen() The startup_xen() kernel entry point is referenced by the ".note.Xen" section, and is the real entry point of the VM. Control transfer is through IRET, which *could* set NEED_ENDBR, however Xen currently does no such thing. Add ANNOTATE_NOENDBR to silence future objtool warnings. Fixes: ed53a0d97192 ("x86/alternative: Use .ibt_endbr_seal to seal indirect= calls") Signed-off-by: Josh Poimboeuf Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Andrew Cooper Link: https://lkml.kernel.org/r/a87bd48b06d11ec4b98122a429e71e489b4e48c3.16= 50300597.git.jpoimboe@redhat.com --- arch/x86/xen/xen-head.S | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/xen/xen-head.S b/arch/x86/xen/xen-head.S index ac17196..3a2cd93 100644 --- a/arch/x86/xen/xen-head.S +++ b/arch/x86/xen/xen-head.S @@ -45,6 +45,7 @@ SYM_CODE_END(hypercall_page) __INIT SYM_CODE_START(startup_xen) UNWIND_HINT_EMPTY + ANNOTATE_NOENDBR cld =20 /* Clear .bss */