Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp661092pxu; Wed, 7 Oct 2020 12:26:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgR5D85AgM5jyxUkNvmVgJEtVwSWEzQCGduppQYVEDSl+X1JYeKce2U489PEmDOnwvfDkT X-Received: by 2002:a17:906:1484:: with SMTP id x4mr4803301ejc.81.1602098808317; Wed, 07 Oct 2020 12:26:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602098808; cv=none; d=google.com; s=arc-20160816; b=P3n//As9+mpGge9vPWsuI0NDVtKOafCrwIsS2o/ERVwp72VMoeUBSvG/ir9GuQQH1U XCB6MfaACQ5ankJDdNHFrXWeyOgqlWv2MM1o+kSij7L9dWVQ9Fx4nI5TU0q+FMyFwrui Terhw0HESc67fltoE/TXUioWRvXn2s7MDcGQO974kAFDtzkPst2UHbOIAItG8Tq8dCqW n6EMIQ0T3ofLofOY9B/Mz+MX2bIrEwtmK8rnP88cHkssSk6SykbtnfTL/RPtmg0QoXQe xD0gMrPzKo8XapHWmabINme2cdScKbW0G0cdA+7+ZHkarjWWEb9c5dBMWNUB+XjBETww ZxCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=R3Po/kkKVbylxU/+V5a34kAqvHVuTy9mr1Zd0GX+8yc=; b=OxWm+0dYDqncLGbADYAwZY9eNz5PYcNpqvhtS415ZOVA+jUpbF5cuvVy2APdxzqWlS DzqSv2E7M42+5KyQDNvxmaHf65/ZBGuU/EltRH27s4Zg9Pbtyc1Me318mg7KZgEPUvz7 eWgVZoMtotrwM/zXcpG14NsrPyEfh7JZ/l8uwhdmkVsfhuu2TbvOa6xNxNGZT9CYajGf fNQfwH8Ucnl4HdxrUTvxcgUaE1FUDB7iwlpqn6ap//FTfl7MXyEuA0/xNcMBdoRnHr1/ hBWYmQN+I99SJcbx11Rg53lmtjFpzV6GA45tLwFg1uBYM8qB/6Kv+LwUCntQFeGljeq5 Ew+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b="kyK/SZw9"; 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=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ny23si2031787ejb.586.2020.10.07.12.26.25; Wed, 07 Oct 2020 12:26:48 -0700 (PDT) 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=@alien8.de header.s=dkim header.b="kyK/SZw9"; 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=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727359AbgJGRDO (ORCPT + 99 others); Wed, 7 Oct 2020 13:03:14 -0400 Received: from mail.skyhub.de ([5.9.137.197]:48632 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726041AbgJGRDO (ORCPT ); Wed, 7 Oct 2020 13:03:14 -0400 Received: from zn.tnic (p200300ec2f09100045b18ec36a87abe5.dip0.t-ipconnect.de [IPv6:2003:ec:2f09:1000:45b1:8ec3:6a87:abe5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 9263B1EC0494; Wed, 7 Oct 2020 19:03:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1602090192; h=from:from: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:in-reply-to:in-reply-to: references:references; bh=R3Po/kkKVbylxU/+V5a34kAqvHVuTy9mr1Zd0GX+8yc=; b=kyK/SZw9k7BaHn7A/zsZjWgY8RMedt8ddMKE0qyiXLTwhxRx/Eq8+QZpHQc25UEB+jz65U AM/cY7enxcSCIG4ExzZAFfdQVWDXxIIMUmV3CvsfJMqVVhVrLZpPYpbC+EwJNi404sByWW OCLsdzgGwEQYD0mPC6pSbTGFmn4UTwU= Date: Wed, 7 Oct 2020 19:03:05 +0200 From: Borislav Petkov To: Dan Williams Cc: linux-tip-commits@vger.kernel.org, Tony Luck , Michael Ellerman , stable@vger.kernel.org, x86 , LKML Subject: Re: [tip: ras/core] x86, powerpc: Rename memcpy_mcsafe() to copy_mc_to_{user, kernel}() Message-ID: <20201007170305.GK5607@zn.tnic> References: <160197822988.7002.13716982099938468868.tip-bot2@tip-bot2> <20201007111447.GA23257@zn.tnic> <20201007164536.GJ5607@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20201007164536.GJ5607@zn.tnic> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 07, 2020 at 06:45:36PM +0200, Borislav Petkov wrote: > It doesn't look like it is toolchain-specific and in both cases, > copy_mc_fragile's checksum is 0. > > SUSE Leap 15.1: > > Name : binutils > Version : 2.32-lp151.3.6.1 > > $ grep -E "(copy_mc_fragile|copy_user_generic_unrolled)" Module.symvers > 0x00000000 copy_mc_fragile vmlinux EXPORT_SYMBOL_GPL > 0xecdcabd2 copy_user_generic_unrolled vmlinux EXPORT_SYMBOL > > debian testing: > > Package: binutils > Version: 2.35-2 > > $ grep -E "(copy_mc_fragile|copy_user_generic_unrolled)" Module.symvers > 0x00000000 copy_mc_fragile vmlinux EXPORT_SYMBOL_GPL > 0xecdcabd2 copy_user_generic_unrolled vmlinux EXPORT_SYMBOL Ok, I think I have it: --- From: Borislav Petkov Date: Wed, 7 Oct 2020 18:55:35 +0200 Subject: [PATCH] x86/mce: Allow for copy_mc_fragile symbol checksum to be generated Add asm/mce.h to asm/asm-prototypes.h so that that asm symbol's checksum can be generated in order to support CONFIG_MODVERSIONS with it and fix: WARNING: modpost: EXPORT symbol "copy_mc_fragile" [vmlinux] version \ generation failed, symbol will not be versioned. For reference see: 4efca4ed05cb ("kbuild: modversions for EXPORT_SYMBOL() for asm") 334bb7738764 ("x86/kbuild: enable modversions for symbols exported from asm") Fixes: ec6347bb4339 ("x86, powerpc: Rename memcpy_mcsafe() to copy_mc_to_{user, kernel}()") Signed-off-by: Borislav Petkov --- arch/x86/include/asm/asm-prototypes.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/include/asm/asm-prototypes.h b/arch/x86/include/asm/asm-prototypes.h index 5a42f9206138..51e2bf27cc9b 100644 --- a/arch/x86/include/asm/asm-prototypes.h +++ b/arch/x86/include/asm/asm-prototypes.h @@ -5,6 +5,7 @@ #include #include #include +#include #include -- 2.21.0 -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette