From patchwork Mon Jan 22 14:57:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 190202 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp2638782dyb; Mon, 22 Jan 2024 07:17:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IH1rbQcRtgreY1go8p+wqyEUo4aX5iP79EIvQ2/97HjCh12ymWKoemp2IWYD+pqr/z9DvPJ X-Received: by 2002:a05:6a00:9389:b0:6db:eccd:c756 with SMTP id ka9-20020a056a00938900b006dbeccdc756mr382669pfb.57.1705936633065; Mon, 22 Jan 2024 07:17:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705936633; cv=pass; d=google.com; s=arc-20160816; b=WlzCeAaz36v3nNUtCRlKsEVJSlwYC3MlJJNRgrL/RuAqjpS+oBz/0PAyJgBsfPh56K nnqjOTpA+4KC+m4lFMvWjOlPjNWzPhRGXgyEtFutbpw9DI0FyXiBaHiVJJ0UB7gWvNgJ XKkP7ccJ9JUZxuj8vbshUwXMBGK/PaJICXXh1Fn/9bKOE9NW3VrwKCPgAEUTI7IwRcCK wTK4nwZIGY6CRsRG1HrX2XHx6dnAsl78a7BsEDuB8bM1uRzpDw3uaIiO1O6SVge0eifU 4BFBpKsrShFf+vu9Lm9pa8M9JbVRVfMmP/Ab2N+ulMDCC4BpcXbmhr+hfQ7Bmf2Q14G/ ezbg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=4DR3PbmSSFhDPtVAJMCA6aWJKnqAenCkYLK+/zUp6Dw=; fh=MB1OGtNRBplph5KUelnyqw3hKcbErqf3c1mK+KDVBH0=; b=0sy/NtG0yDumNqGTK3RMBiTHz44FAYySaSAFR3jY4pYsm3HkavYMpp8+ebRkBTI28Q FMlWgo8se130Ige3j/MryV16Iz0XHkszP9PTOAzZ1oTBzjigs96d/IEhm24ti7B29WIo 33QQMl/n/h12o56wjb2kxWtia4f7tjCDKyAqCztdLdggbu2b8U8kwsL9ztT0qj9e1pRY WN/jHVIhCHcJr56jhCAjjY7P03nzNigwq8iOq10Do6XUk+a9eymiSunu1W/T33GeoA0g PXOuQB9UTkrj2TnZ5nudQOoD+cImzUYB6fLoVxLmp8UNT0IfGnOdaSy/FTGAxphCjDoJ SctA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=CdIMdjp2; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-33236-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33236-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id t8-20020a63dd08000000b005c65eb2bc63si8142141pgg.608.2024.01.22.07.17.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 07:17:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33236-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=CdIMdjp2; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-33236-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33236-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 5661728CB3F for ; Mon, 22 Jan 2024 15:10:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 054374CE1A; Mon, 22 Jan 2024 14:57:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="CdIMdjp2"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="nT9jg+l7" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CF1B44CB4E; Mon, 22 Jan 2024 14:57:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705935457; cv=none; b=jDtq3kN1KW31JcMjqKJ4a9l8ZqllrnuQAMRRdGzGlkgw67Q7jfwrAkeVXRPsugTTNM6ag0C3FElq6GUL8xf3Sb8DoeDXTtU4wN8LA+O+6DQ2AURi9AdfBS59NINKTTYvjqXnWhr8mCC0YzGKlSgfU4hIGR1SQELmuMHv9M6IEfg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705935457; c=relaxed/simple; bh=OxFCdAXFTSASqxSgbwdHInjXQZEaWm2MUdInMwaX3bU=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=FQsEMWFJe55xscbk/mk8boKT04jhKOpVvfvuCuyFN87906oOeq65gr4r2/S52ZKWsIzUKj1M8jd7sSxQMbyAo4pghQtzHTBB/o4p8G4xtBGvgDjuNxC0fK+ZI3I6LYIf/6JGBMIQwQAXQvYOIPrPUsHPylR1qtK5Vd3Tkp8QeiA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=CdIMdjp2; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=nT9jg+l7; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Mon, 22 Jan 2024 14:57:32 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1705935453; 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=4DR3PbmSSFhDPtVAJMCA6aWJKnqAenCkYLK+/zUp6Dw=; b=CdIMdjp22qqMK2koK/3+wvj8suelxfMB9XuUSiiUEdjw1AhabwfmmvU6gKnfNL34seridC FF3mU5TP/a1pkQut8FSPu+UcyrteVL18X1szOmSudBZlLbhy3unnnwzogXMg7pnBppMRj8 UVgHWLePFz3XE6e+gftLFPsXNiNTjeIeyrLSrjzgYdFxv2jWenfL/AyyynpZY6jv3P+c+T G+vCH4CZCPE2yRQmwPyUo42rdpPxYq2N7kuzwagK6zPZYXye/v5AsHLJrvysLirP2M/K5e iSY/0PXaVw6amgZ4TXfMZp64v5Tem7tawMDCDcwFkIRe2By9g/jJBv83mesQfw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1705935453; 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=4DR3PbmSSFhDPtVAJMCA6aWJKnqAenCkYLK+/zUp6Dw=; b=nT9jg+l7RefiknKMVzXwdveeCtKcZuBcHKpo82OrXmLRgz2wMiJiiL/LIePVYbxxUZk01v Wf1tjIHyBHSPzoBg== From: "tip-bot2 for Juergen Gross" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/urgent] x86/paravirt: Make BUG_func() usable by non-GPL modules Cc: Juergen Gross , "Borislav Petkov (AMD)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240109082232.22657-1-jgross@suse.com> References: <20240109082232.22657-1-jgross@suse.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <170593545243.398.9370107089777687804.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788804211215415304 X-GMAIL-MSGID: 1788804211215415304 The following commit has been merged into the x86/urgent branch of tip: Commit-ID: f7cfe7017b531e08c108ac6615b1ddedcc892428 Gitweb: https://git.kernel.org/tip/f7cfe7017b531e08c108ac6615b1ddedcc892428 Author: Juergen Gross AuthorDate: Tue, 09 Jan 2024 09:22:32 +01:00 Committer: Borislav Petkov (AMD) CommitterDate: Mon, 22 Jan 2024 15:51:07 +01:00 x86/paravirt: Make BUG_func() usable by non-GPL modules Several inlined functions subject to paravirt patching are referencing BUG_func() after the recent switch to the alternative patching mechanism. As those functions can legally be used by non-GPL modules, BUG_func() must be usable by those modules, too. So use EXPORT_SYMBOL() when exporting BUG_func(). Fixes: 9824b00c2b58 ("x86/paravirt: Move some functions and defines to alternative.c") Signed-off-by: Juergen Gross Signed-off-by: Borislav Petkov (AMD) Link: https://lore.kernel.org/r/20240109082232.22657-1-jgross@suse.com --- arch/x86/kernel/alternative.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/alternative.c b/arch/x86/kernel/alternative.c index cc130b5..1d85cb7 100644 --- a/arch/x86/kernel/alternative.c +++ b/arch/x86/kernel/alternative.c @@ -403,7 +403,7 @@ noinstr void BUG_func(void) { BUG(); } -EXPORT_SYMBOL_GPL(BUG_func); +EXPORT_SYMBOL(BUG_func); #define CALL_RIP_REL_OPCODE 0xff #define CALL_RIP_REL_MODRM 0x15