Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp765315pxb; Fri, 22 Apr 2022 10:40:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRgU3sCq6102CPICDPLsM6UlHNPDgn8wGClGeCBhNjduSekB4fy0Fjp4ZhxmjWDm47PvOv X-Received: by 2002:a63:9a11:0:b0:3a3:3a8a:1006 with SMTP id o17-20020a639a11000000b003a33a8a1006mr4926026pge.116.1650649217668; Fri, 22 Apr 2022 10:40:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650649217; cv=none; d=google.com; s=arc-20160816; b=StVIy36qtbTMa3xjiCCuXYQFvWvKp5JVKUXZURT0onxjrh62aMIpY+4wrOa23/hzAU NWwrLM9bzgYHjaHi3EB9giAC62rIcrhK8LIWyFj9ICAoVcuamqmMetGBerVaew6WKepj kwuLzfJm8FCgWGRw/UZT2No9tG9yjURj0RFpa9NPVIvN2B8hhbDXPI2Fgrb4D+cJX4ye HSws/cKAFKZ3YSE2UIK45glGuQSG7mHoKLWG4TAXvCaQ9HeTUUCeBPA/pr+iFR/22dzR eHJ9gyPPGHSFW4hszRboUe4l35uY3jo9P51gAEMCj320dZN6ZFcM238MKIe9h0Dgyo4G fMKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=5Ct27rlk9vRQy/2CJxZFmvJDBBEkkwk8EXsnivkaF7U=; b=iEfo/u7AkMOMR7RK2R1K4/+12CcwmQ12gzsrpvH6r2VsJd0MpZWWPHMtYy3r1XfxyL 1IJv3dFbk3TeLK6TtRhYBW0a3lCNo+5Su7/EJHZT4xgfjkxM31WqSoh1rtXICfno5PF8 52TsFfzibakdLsk3rybBIp3Xlx+oAbPPP/1faqYdmXivba72CkZV5Krh9+fklpVF5ywy CjrSfC6OuR/+dRO6vnw/BsoQ2DrHLwWyVic5JIVv9Rn9AbLam7N4lFQiEyB0mKAIxrtm 2HMjdk+8IRhMx1Yo8odQcHGRsn3jMfKen0WB0oMEVezLmPdtFxE7EHBSMl8ivQnKeLle QUkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=ZyWH4oaF; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=A9hOkBsJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id g3-20020a6544c3000000b003816043f063si8319928pgs.600.2022.04.22.10.40.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 10:40:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=ZyWH4oaF; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=A9hOkBsJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1E10FF3A4F; Fri, 22 Apr 2022 10:29:26 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357612AbiDSULy (ORCPT + 99 others); Tue, 19 Apr 2022 16:11:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357134AbiDSUL3 (ORCPT ); Tue, 19 Apr 2022 16:11:29 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25B1B3BFA5; Tue, 19 Apr 2022 13:08:42 -0700 (PDT) Date: Tue, 19 Apr 2022 20:08:39 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1650398920; 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=5Ct27rlk9vRQy/2CJxZFmvJDBBEkkwk8EXsnivkaF7U=; b=ZyWH4oaFsqZT/08ouWGKkMVAvlAX7Tbt6ri3YB4MYm3uSvXqc8Odp0XCBOTTftQY3wLUm5 Qc27uYT5JXsNwPMI9re35lP1dj9cH6iP7BPAaNeyOs9rZ7o2mYRci8ZPxsBf8S2JvKLcs+ uMCd/J68v3zkAuvtXSRgG7YNrEh6V1UfuG9jtyezZ/SKz5eRhvYvDcUyjkxNgYMuSrmsC7 v2vTk5eL+6p6VZoBBPopKrlsKu4s4k/gxTyVBjJ13sxKa7wTkjXCAA80kyCHBKzHTKz74v TpDEzLJljkpcz+5ApZGdZol7UcHkeS2y5f6BlbK4zE7SBGhDJca+6IKoqUKqrw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1650398920; 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=5Ct27rlk9vRQy/2CJxZFmvJDBBEkkwk8EXsnivkaF7U=; b=A9hOkBsJ7PNFQapQdcsKiesNOwheJEr0fC4on/ojVbybv0aooUBslWhM6TnMTzH5MpjKWc BShYT+ME+LDffsDw== 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/static_call: Add ANNOTATE_NOENDBR to static call trampoline Cc: Josh Poimboeuf , "Peter Zijlstra (Intel)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <1b5b54aad7d81241dabe5e0c9b40dea64b540b00.1650300597.git.jpoimboe@redhat.com> References: <1b5b54aad7d81241dabe5e0c9b40dea64b540b00.1650300597.git.jpoimboe@redhat.com> MIME-Version: 1.0 Message-ID: <165039891962.4207.8534671021109525259.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: 7bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=no 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 The following commit has been merged into the x86/urgent branch of tip: Commit-ID: 613871cd665ab26290c5ff531dd06c3789d31319 Gitweb: https://git.kernel.org/tip/613871cd665ab26290c5ff531dd06c3789d31319 Author: Josh Poimboeuf AuthorDate: Mon, 18 Apr 2022 09:50:22 -07:00 Committer: Peter Zijlstra CommitterDate: Tue, 19 Apr 2022 21:58:48 +02:00 x86/static_call: Add ANNOTATE_NOENDBR to static call trampoline The static call trampoline is never indirect-branched to, but is referenced by the static call key. Add ANNOTATE_NOENDBR. Fixes: ed53a0d97192 ("x86/alternative: Use .ibt_endbr_seal to seal indirect calls") Signed-off-by: Josh Poimboeuf Signed-off-by: Peter Zijlstra (Intel) Link: https://lkml.kernel.org/r/1b5b54aad7d81241dabe5e0c9b40dea64b540b00.1650300597.git.jpoimboe@redhat.com --- arch/x86/include/asm/static_call.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/include/asm/static_call.h b/arch/x86/include/asm/static_call.h index 2455d72..2d8dacd 100644 --- a/arch/x86/include/asm/static_call.h +++ b/arch/x86/include/asm/static_call.h @@ -26,6 +26,7 @@ ".align 4 \n" \ ".globl " STATIC_CALL_TRAMP_STR(name) " \n" \ STATIC_CALL_TRAMP_STR(name) ": \n" \ + ANNOTATE_NOENDBR \ insns " \n" \ ".byte 0x53, 0x43, 0x54 \n" \ ".type " STATIC_CALL_TRAMP_STR(name) ", @function \n" \