Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp381489rdb; Mon, 22 Jan 2024 07:09:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IHV9TIbo0XCmDJCM+x20+ijpwMT7d7PFb08oARVFyz7zgu+kjrutPMpAaHFQO+yGy1HCeww X-Received: by 2002:a2e:a1cb:0:b0:2cc:d45a:48ea with SMTP id c11-20020a2ea1cb000000b002ccd45a48eamr785419ljm.56.1705936190126; Mon, 22 Jan 2024 07:09:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705936190; cv=pass; d=google.com; s=arc-20160816; b=dcivFNRrXmK/DADjF8w8TAcYoGZtLKazsOMeZ563QZJK8bxd4/Z6nkoER3eD8i5Vsh WHVI4HJNeRxb1XL3v71XDEAZXZt5UYmMJRJpYoTD0eiYW0y3CRSuC9gS/oPRpwi48y7Z aQ1rVy25e3YMWVVdwk3pfXR/E7sPgSsOPqpdZRYLODkircLgb+SuSsrjK/pobMjRo7Qx pU0eglsi8ZBV29Cp3yoDAxafFQmO1EJIKOSM9wB2Tqyl8XfbjG6uWuVWfT+RNzL3sHZh HZrCHSUfVmKlVArSpT6McCSYWkBcm1AJQ3RWki5B9n6OWuHb+jzKvwxUCfZCy8AopilF 0Wfg== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33236-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id n16-20020a05640205d000b00558a602538asi11051163edx.126.2024.01.22.07.09.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 07:09:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33236-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33236-linux.lists.archive=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 am.mirrors.kernel.org (Postfix) with ESMTPS id B2A4E1F21CAA for ; Mon, 22 Jan 2024 15:09:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 37D524CDE8; Mon, 22 Jan 2024 14:57:38 +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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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