Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp769917pxu; Wed, 7 Oct 2020 15:49:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVBXZgVMnzAdET9lbQSN1n0vnCw/TSdsuFJ95giLV3eZ/KwC5sUmu89RRcGLHq//4p1dVx X-Received: by 2002:aa7:c915:: with SMTP id b21mr6038368edt.25.1602110951594; Wed, 07 Oct 2020 15:49:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602110951; cv=none; d=google.com; s=arc-20160816; b=Jk9TTw0ozyTK38cFScdU2cr7XLmuLgrKQzj8sKBWG3bkwmZBB/EhfqEzoyR1rmYrWx bThshsFfhv9GSNagCA/ITFKFliHHYhmtMF/zoWTsEw14aASK72giv3hDok1YhaduB9p+ U5NSVNCFMoTG3eubr17fvXYCMTGFB8kjGKitvXaCRyhM3dl+zjZ5jajfP511jPsDYJWh 4gQrGRpMPer4xykItd+OgSSSjLyswaTFUgEhrBGUsMei0bTUZhyk1lphXArszFJt5d9j vVHsD+iU83TmOeGCf8haGKHte385rQFrjwLyNf1SEozBvinBG2+k2+nKsZQQvlCIiBP9 FLxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Rdre9jrmRp+/9/Y6RnzGhKU8N5YkFWVxUCgScft3zmU=; b=MtwlMplUMWHJVyJqhVQ2VhzBbR0AQ4wCPYi/pR1KSRgkzeu0ehPnoBGDeM12I1JcFA hr3Vp5AxlgT9874iI6ftTmecApSDOEuvenmbxwTK7vmuId6k68ObcD++PFyH6aGUkbb3 6BEPyFoZU8wWKyP4/+h7RQSHNF17rXjwQ/w4rFQu20V9QelqCTEvbDHzuj8QRo95/ZdD JNgeQrmHoGM9Aif275d11Xoq6U0iErLz6nqxMjSMIcXf9bAIIldNmdjo746MDIsnaGbD AcngAo8rLmPtXIhHs2ZL03uZIcR6QgRSA/zFsOmN7Tclx42Hmt7tN5/UzAe9hiNFr49y 8hKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=OFMCe2fA; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g20si2341393eje.670.2020.10.07.15.48.48; Wed, 07 Oct 2020 15:49:11 -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=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=OFMCe2fA; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727237AbgJGSx3 (ORCPT + 99 others); Wed, 7 Oct 2020 14:53:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726111AbgJGSx2 (ORCPT ); Wed, 7 Oct 2020 14:53:28 -0400 Received: from mail-ej1-x642.google.com (mail-ej1-x642.google.com [IPv6:2a00:1450:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C7DFC061755 for ; Wed, 7 Oct 2020 11:53:28 -0700 (PDT) Received: by mail-ej1-x642.google.com with SMTP id ce10so4484241ejc.5 for ; Wed, 07 Oct 2020 11:53:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Rdre9jrmRp+/9/Y6RnzGhKU8N5YkFWVxUCgScft3zmU=; b=OFMCe2fA7ENUSEpSD1GFyoJSxPtUoTVyvWQ0nTA6wRiRt3SeCvMFuQ4bQDkdqLvM/7 /4/nQ7dvOnsthrJcz2BG09maCJRRIa5jdEe9z525GK+fBvhK5hoj+nY4WiqXn/+83XDh S1DVmBDjd9f3ZJU+WCAmMSwUQKH5R7gZLwd0KA+PNuih6PquuL2Ls5p5Cm2oRCwrTKVb gE//eAYWWZWyOQ2AUskNBJ2OZS/7EWasnYJSqWZCGBpRxgRegLepOnSxQGG0NnrrjdRF A9Ig8OW1Jz0RU6RtM10weytdPGoUgw+vqeM8WxFQLNtnef/z4F/K2lWeKD/tuNez14nM kYhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Rdre9jrmRp+/9/Y6RnzGhKU8N5YkFWVxUCgScft3zmU=; b=pRGRbbhBa2zXUtMros8Jmr95CUJdyl6J/B5bi6y3oqGSETBEdSMaJNswarA6dfa0lt 6psTGaePkpt4ggz1deqCNiU9G1UJpwTyZHPuATCpxMM/jjbS4jwsqIR2j4TGjbsACpyW s/tnA2hXZpVX6FwY67xIw3kWGYgAKekbm70bX2aXerI7GgAyrN7aE/0UO5IJUq20FI/t ddgV3zSxUa01m7YrOJ0e4WU5rWOKrHMKnXqf7/Kp0N/1R14noDdYQ1Q9cGIXtWNQeGDL LTB+e0e9+Q34uSQNvM6Gh9Ym0tYl8IzL+t5DAuxSg/GrqrE1HxscbxqMVCBP29Mld4JZ B8+w== X-Gm-Message-State: AOAM532wyW1pDIZMn6aSeI0L3kLqc3GRrABEpfXidlHavV/wZ0olT1hC RGSIRGJw1S9Rgqzn8Mg30UGePPyAzp1LpP/SyyhBbA== X-Received: by 2002:a17:906:7e47:: with SMTP id z7mr4723987ejr.418.1602096807136; Wed, 07 Oct 2020 11:53:27 -0700 (PDT) MIME-Version: 1.0 References: <160197822988.7002.13716982099938468868.tip-bot2@tip-bot2> <20201007111447.GA23257@zn.tnic> <20201007164536.GJ5607@zn.tnic> <20201007170305.GK5607@zn.tnic> In-Reply-To: <20201007170305.GK5607@zn.tnic> From: Dan Williams Date: Wed, 7 Oct 2020 11:53:15 -0700 Message-ID: Subject: Re: [tip: ras/core] x86, powerpc: Rename memcpy_mcsafe() to copy_mc_to_{user, kernel}() To: Borislav Petkov Cc: linux-tip-commits@vger.kernel.org, Tony Luck , Michael Ellerman , stable , x86 , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 7, 2020 at 11:47 AM Borislav Petkov wrote: > > 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") Oh nice! I just sent a patch [1] to fix this up as well, but mine goes after minimizing when it is exported, I think perhaps both are needed. http://lore.kernel.org/r/160209507277.2768223.9933672492157583642.stgit@dwillia2-desk3.amr.corp.intel.com