Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp2113972imm; Sat, 30 Jun 2018 11:13:09 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKtI/kOm6AX1JbtbRcaelICDz7MfJkI21iTy50S9ZX1I1lRrAGliUbfLdjomlg0t0RZ04tz X-Received: by 2002:a65:660c:: with SMTP id w12-v6mr16275522pgv.404.1530382389531; Sat, 30 Jun 2018 11:13:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530382389; cv=none; d=google.com; s=arc-20160816; b=vY++5gcanh7hCn7La0PgGbdpOFtEPKvHN6/haZ8jcHx6vZ/hblVcLf6Ckwtzl+wylG ZObrL4Zl2AP4VLNRSe+cLK4pxmHr+4B0A/qCi6ess0mUFZKl1ie28bL+CVxBeC+hjP/H 0QGTY7T9493Amfll3Eh9OqoPA9XQ1ldss4DmgNEv9stwL0z5PDUQGSL/ooUgRMCpX/lB dg25g50fCzb77PJAuV/1VfvxFmHwpfo95rbgCuhwrbLMetAowxuAhKzEEXR6qovPCQeB k109PJc/79ns8RGXuPJlt9wwXLP9QunpQNXxjBRMvHe/Y6krCaG94lPPvLi/b8Jgv6AX +PsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:to:from:date :arc-authentication-results; bh=j6G7vfKSJXthXuqgEuQONB+DAVre5Nx+JOxzWp4AU1E=; b=Lx6/8RjYkv/75/p0EpRQOKgWB90LhmdoCgaUA9/0sXJdKEfiMbYDxWvfva/GLytKJ0 yxHP/X3DvIsugaV5NXfH7xjHRpmN7TzQVJq+vDXlmiWDdBlXqtuJxkCcTAoWh1wZXvoq CuUY2ZeeYtCvst2I2LXcs0n5ZotrXJSuBIxeE42aYcyisoEmaoGGVRPgr4vuNaaN9uMU NML83LLD8dR0Z6xRBk2XZqlXMdP49PyF1YL5cEXyB1cNTPJSWeKuKGrU657R4Z7A4Kdz DoEWlGjzpztFYBlLGjWW+yvPHPJK41mxWJxDRbOSteFZeCx/w/QYrQNKTLHmB3kvsL7l aIFw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z1-v6si11915252plb.152.2018.06.30.11.12.54; Sat, 30 Jun 2018 11:13:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751472AbeF3SMQ (ORCPT + 99 others); Sat, 30 Jun 2018 14:12:16 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:37524 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751304AbeF3SMN (ORCPT ); Sat, 30 Jun 2018 14:12:13 -0400 Received: from localhost.localdomain (c-24-4-125-7.hsd1.ca.comcast.net [24.4.125.7]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 086518B1; Sat, 30 Jun 2018 18:12:12 +0000 (UTC) Date: Sat, 30 Jun 2018 11:12:10 -0700 From: Andrew Morton To: Dmitry Vyukov , kbuild test robot , kbuild-all@01.org, LKML , Linux Memory Management List Subject: Re: /tmp/cctnQ1CM.s:35: Error: .err encountered Message-Id: <20180630111210.ec9de2c2923a0c58b1357965@linux-foundation.org> In-Reply-To: <20180630110720.c80f060abe6d163eef78e9a6@linux-foundation.org> References: <201806301538.bewm1wka%fengguang.wu@intel.com> <20180630110720.c80f060abe6d163eef78e9a6@linux-foundation.org> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 30 Jun 2018 11:07:20 -0700 Andrew Morton wrote: > On Sat, 30 Jun 2018 12:27:09 +0200 Dmitry Vyukov wrote: > > > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > > > head: 1904148a361a07fb2d7cba1261d1d2c2f33c8d2e > > > commit: 758517202bd2e427664857c9f2aa59da36848aca arm: port KCOV to arm > > > date: 2 weeks ago > > > config: arm-allmodconfig (attached as .config) > > > compiler: arm-linux-gnueabi-gcc (Debian 7.2.0-11) 7.2.0 > > > reproduce: > > > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > > > chmod +x ~/bin/make.cross > > > git checkout 758517202bd2e427664857c9f2aa59da36848aca > > > # save the attached .config to linux build tree > > > GCC_VERSION=7.2.0 make.cross ARCH=arm > > > > > > All errors (new ones prefixed by >>): > > > > > > /tmp/cctnQ1CM.s: Assembler messages: > > >>> /tmp/cctnQ1CM.s:35: Error: .err encountered > > > /tmp/cctnQ1CM.s:36: Error: .err encountered > > > /tmp/cctnQ1CM.s:37: Error: .err encountered > > > > Hi kbuild test robot, > > > > The fix was mailed more than a month ago, but still not merged into > > the tree. That's linux... > > That was a rather unhelpful email. > > I've just scanned all your lkml emails since the start of May and > cannot find anything which looks like a fix for this issue. > > Please resend. About three weks ago :( OK, with a bi of amazing sleuthing I found this from Arnd, which is what I presume you're referring to? From: Arnd Bergmann Subject: ARM: disable KCOV for trusted foundations code The ARM trusted foundations code is currently broken in linux-next when CONFIG_KCOV_INSTRUMENT_ALL is set: /tmp/ccHdQsCI.s: Assembler messages: /tmp/ccHdQsCI.s:37: Error: .err encountered /tmp/ccHdQsCI.s:38: Error: .err encountered /tmp/ccHdQsCI.s:39: Error: .err encountered scripts/Makefile.build:311: recipe for target 'arch/arm/firmware/trusted_foundations.o' failed I could not find a function attribute that lets me disable -fsanitize-coverage=trace-pc for just one function, so this turns it off for the entire file instead. Link: http://lkml.kernel.org/r/20180529103636.1535457-1-arnd@arndb.de Fixes: 758517202bd2e4 ("arm: port KCOV to arm") Signed-off-by: Arnd Bergmann Cc: Dmitry Vyukov Cc: Mark Rutland Signed-off-by: Andrew Morton --- diff -puN arch/arm/firmware/Makefile~arm-disable-kcov-for-trusted-foundations-code arch/arm/firmware/Makefile --- a/arch/arm/firmware/Makefile~arm-disable-kcov-for-trusted-foundations-code +++ a/arch/arm/firmware/Makefile @@ -1 +1,4 @@ obj-$(CONFIG_TRUSTED_FOUNDATIONS) += trusted_foundations.o + +# tf_generic_smc() fails to build with -fsanitize-coverage=trace-pc +KCOV_INSTRUMENT := n _