Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2194863iob; Fri, 20 May 2022 04:20:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXX8JFDON+4qgBF5GKqTdC6XtB9mScHGg6KT2qDhINz4fEC9Zeb+/yNZqGQNGbNot7UsE4 X-Received: by 2002:a05:6402:1cc1:b0:413:2cfb:b6ca with SMTP id ds1-20020a0564021cc100b004132cfbb6camr10423340edb.265.1653045624259; Fri, 20 May 2022 04:20:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653045624; cv=none; d=google.com; s=arc-20160816; b=WNJa39pD9H/LJucOGF3u5wV4gwAW465wHmS+WreofcgnChu6RwGmX++PdpdBn3ErJa mlkh2+tRw/nQYzGb/n/Y0uAlZW5EcdHhaZ482fMGLaMgIDwWU5b7C1kFZ+pNdprJUgAi xnYQx/UUel6YC5/QCv6y+IXeLyR9wE5Sq4NKmlaIciIYZyAH5hmfFK+dc75TzuBgCfYs kKOrQq85Onj8OeNAv14ldl+FN9FvOx4PZ0mOMW6YrT9AG9FLctuUiOPsRcwlGrBBYznA DqjxpCi5ZLcGrB5wZQDsPiV5IKpLvxFwvzNu+QqwgrWinL1g5bi5BSuuPEq7BMIxSO8d gshA== 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=OfHvb3fruLU2Rg+3l/c/ckZU21HNHw7WDZW9HPhwKk0=; b=0avrbERNkkvX7x0INho6kJmU+0ew0oiVlJBC+mHzhlG0x6+4621WPeEr57Djb6wJQ2 5Zro02FJoQU8Y2gcv7OdDij8evZaJ3KEGpmADQBiwpT40W6EeN4sbcLJ3+zZ4JvTcWQQ txe4loP/WcSpasLbx/dWBNUbcd+wh4L4VNJkzkScyHnVkSiFbna+hKJ5sGT1ZnzUOhAX 59zHfdWi7deoiOXnIX2lIMSHJ36VEN3jSK8X/9nTs4VnQiZ10AGU+I5AHsri3c5oSMhS rZHIh0Ljwfynj7Yet6ogBocCKD6iIzGFNWHaRRpXAtcaEylmqNhNvi8tqmpgPPHvQr5y AXHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Dg3al9ne; dkim=neutral (no key) header.i=@linutronix.de header.b=YAxvw4U6; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hv16-20020a17090760d000b006e7fe2af1d6si8357176ejc.161.2022.05.20.04.19.58; Fri, 20 May 2022 04:20:24 -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=@linutronix.de header.s=2020 header.b=Dg3al9ne; dkim=neutral (no key) header.i=@linutronix.de header.b=YAxvw4U6; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348250AbiETLAx (ORCPT + 99 others); Fri, 20 May 2022 07:00:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235945AbiETLAv (ORCPT ); Fri, 20 May 2022 07:00:51 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D34DDB7CA; Fri, 20 May 2022 04:00:49 -0700 (PDT) Date: Fri, 20 May 2022 11:00:46 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1653044448; 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=OfHvb3fruLU2Rg+3l/c/ckZU21HNHw7WDZW9HPhwKk0=; b=Dg3al9neC57Puv7RlGzOlDLp6OBN9jS/QlsLJSmyYVhYnCDYAwJWAaEzVLvM1tkTFUFXOt ZzzzW0YI9YrG2l+SUtvw+WfiaZhdWZQ1DWzG0fOqUQw673EqTNv0cVVzHLt1vwFWxlFsCr fl1FqYwGxM7KxSxmSm9BPmIZ+K7QLoLeW+uBd5kQb1J+6BOeExD37eSV3GBNlxD0CqeYNf kLTUIA3VHbJ37Me4nUKMJDqLxFh0/n2bXh6apnQsMtmU18+lVinu45y3mnKqEvVzU6IZfI yXrow1YpEFbJwkSVmDOo4BptUfjqelpQJRoLCN21BqGyfPlSl3vHEHhbVxpokQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1653044448; 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=OfHvb3fruLU2Rg+3l/c/ckZU21HNHw7WDZW9HPhwKk0=; b=YAxvw4U6dlfDaGOaoYObAEL0yq8lLnf72uhg5gz7rkN5qlTzbsqSvXL1CA6e68UCIrzXXp m06UmvTiQzB5SzCA== From: "tip-bot2 for Peter Zijlstra" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/tdx] x86/tdx: Fix RETs in TDX asm Cc: "Peter Zijlstra (Intel)" , Borislav Petkov , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20220520083839.GR2578@worktop.programming.kicks-ass.net> References: <20220520083839.GR2578@worktop.programming.kicks-ass.net> MIME-Version: 1.0 Message-ID: <165304444691.4207.14334435844427241995.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=-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_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 The following commit has been merged into the x86/tdx branch of tip: Commit-ID: c796f02162e428b595ff70196dca161ee46b163b Gitweb: https://git.kernel.org/tip/c796f02162e428b595ff70196dca161ee46b163b Author: Peter Zijlstra AuthorDate: Fri, 20 May 2022 10:38:39 +02:00 Committer: Borislav Petkov CommitterDate: Fri, 20 May 2022 12:53:22 +02:00 x86/tdx: Fix RETs in TDX asm Because build-testing is over-rated, fix a few trivial objtool complaints: vmlinux.o: warning: objtool: __tdx_module_call+0x3e: missing int3 after ret vmlinux.o: warning: objtool: __tdx_hypercall+0x6e: missing int3 after ret Fixes: eb94f1b6a70a ("x86/tdx: Add __tdx_module_call() and __tdx_hypercall() helper functions") Signed-off-by: Peter Zijlstra (Intel) Signed-off-by: Borislav Petkov Link: https://lore.kernel.org/r/20220520083839.GR2578@worktop.programming.kicks-ass.net --- arch/x86/coco/tdx/tdcall.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/coco/tdx/tdcall.S b/arch/x86/coco/tdx/tdcall.S index eeb4511..f9eb113 100644 --- a/arch/x86/coco/tdx/tdcall.S +++ b/arch/x86/coco/tdx/tdcall.S @@ -73,7 +73,7 @@ SYM_FUNC_START(__tdx_module_call) FRAME_BEGIN TDX_MODULE_CALL host=0 FRAME_END - ret + RET SYM_FUNC_END(__tdx_module_call) /* @@ -196,7 +196,7 @@ SYM_FUNC_START(__tdx_hypercall) FRAME_END - retq + RET .Lpanic: call __tdx_hypercall_failed /* __tdx_hypercall_failed never returns */