Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3708045pxb; Mon, 24 Jan 2022 15:59:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJzcfKOVbvFWBwmT6xMOauBct1J5Rn3Hbled1+ki6O41Kv7mACPn1xih7NQAGTivjVEBE+W0 X-Received: by 2002:a62:7bd4:0:b0:4c7:223b:ec4c with SMTP id w203-20020a627bd4000000b004c7223bec4cmr16112259pfc.56.1643068743239; Mon, 24 Jan 2022 15:59:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643068743; cv=none; d=google.com; s=arc-20160816; b=opb6CoZYgl9qfPe2LWzud4gdIRw8DwNGBICNUc5dG14k/1cuy0Q97Ov5BaQsXvXzsO syoR16J94qYCvsrV2fys3bPLbk0ypEo+In3zflaO+pBljPhi+Vo/+TH7m5JO/L7q3M8j Aqi1bfoGzMrLxoqKt1WU9lPFZyLW+CZC01yL+u2DTHgXvlIMNsvUuqsi9gLy3KLRF2ij Az8iDB0q86dvQr6a6/ZaOk1tHKaSt12onERsqybLpaj4LCxclUpMQ7/JpunyZw8uPZvn lCl/tM3lA/Z5E2IOM79DyfYyMcN9f5V5sAxqv94siaCO01Cd5t9uFHNm5gEbXy//0r6x w83w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=tp6Pf2W35mAaSN+d8EIhEZKuDmDomxOYVANx45a49SM=; b=F6Pf3F0GF/XThaAGWT8MLPyJCj7v2UDW2cPqdTwBKBCzqZMd0FgE6bYlsG+T/aVakP 2lQ+RwbvfNVfnwjSDiw1LLvpmBpswcYYwa7LA1RVlzuCOGmAcIhD1rPsxuvWnarHxhZs w/ZUhsDvK5OO4R1shkKiTK8jLpvdDEYCatg7EtXB9qfj0+FFRb5nDnwqjy+UuvOD1q8O KGAStVuJd1cw5ONNysEqWOKG1QWWzMjh8WkPfPFFAhGVejkUlMFK/eFxaYZxb/O2CV2X ZhPrfUTgcpTzxV01JVLTk1O84h3lZw8CFqa0G7wAbKqXQqNrFVcFzKenRnQBfwtSIvmX 3suw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="xXBzi/AD"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bk9si8320300pgb.669.2022.01.24.15.58.51; Mon, 24 Jan 2022 15:59:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="xXBzi/AD"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2367471AbiAXXzd (ORCPT + 99 others); Mon, 24 Jan 2022 18:55:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1846526AbiAXXQP (ORCPT ); Mon, 24 Jan 2022 18:16:15 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2389CC0617BA; Mon, 24 Jan 2022 13:25:27 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id E0EAFB80FA1; Mon, 24 Jan 2022 21:25:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0960DC340E7; Mon, 24 Jan 2022 21:25:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643059524; bh=6wrrJ7aDxIrQw2TbOvBal/FrCaDdQi8ycw415kthYKU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xXBzi/AD4nBmViT04kMQ71g/g10lNhLJo3+T3ikECaW88oYsTWh27GwhpccalZfhA xr0SLaC8gxIxbqIRYzQGfjzKmpUW2u3TQ0+awzh4N2qCHTC/SSR76pFYroCzyMiZ4Z pHIZHQ0V21voyOrQZF3s397fdJHje5FqpTxfIkHE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Borislav Petkov , Sasha Levin Subject: [PATCH 5.16 0644/1039] x86/mce: Mark mce_read_aux() noinstr Date: Mon, 24 Jan 2022 19:40:33 +0100 Message-Id: <20220124184147.005035525@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Borislav Petkov [ Upstream commit db6c996d6ce45dfb44891f0824a65ecec216f47a ] Fixes vmlinux.o: warning: objtool: do_machine_check()+0x681: call to mce_read_aux() leaves .noinstr.text section Signed-off-by: Borislav Petkov Link: https://lore.kernel.org/r/20211208111343.8130-10-bp@alien8.de Signed-off-by: Sasha Levin --- arch/x86/kernel/cpu/mce/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/cpu/mce/core.c b/arch/x86/kernel/cpu/mce/core.c index 75095986e5eff..69fd51a29278f 100644 --- a/arch/x86/kernel/cpu/mce/core.c +++ b/arch/x86/kernel/cpu/mce/core.c @@ -645,7 +645,7 @@ static struct notifier_block mce_default_nb = { /* * Read ADDR and MISC registers. */ -static void mce_read_aux(struct mce *m, int i) +static noinstr void mce_read_aux(struct mce *m, int i) { if (m->status & MCI_STATUS_MISCV) m->misc = mce_rdmsrl(mca_msr_reg(i, MCA_MISC)); -- 2.34.1