From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8AFA1C43331 for ; Tue, 24 Mar 2020 16:32:28 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3F4E42076F for ; Tue, 24 Mar 2020 16:32:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="bqRwBCq5" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3F4E42076F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type: Content-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=4kTvmIlrr99tt8pb01m6INUmo4ZKnT7gtf8onJT4NkU=; b=bqRwBCq5808MZhc0OXDqoZOiL nOi6fJWThvSBeXMGycvWIcZBl+KIaWucajisJ0e7bPnX46KQJFC22GD9yXx5c+dgwhLp5Y/TvAh9N XNBzIM6O3O21olL2WGIX6pkQ0h0nzSsu8H4V9CNCwixvd7Oc3sgYMVYgZcTvwgOJaFl1H33l1kR+f PjJToozBegqBs7XMuYQXUcFFfgmdWjVyXchLGewkx4fUOeYywsWOR1tEv+7TGRwwercuFlhLywdP5 MvH3yAGO0yQ93vppB0oTNbhD7n7JucBkUHeDUgyzJykfHU12ZdTFeTwi04F6htuo/23JAvDSkDSqo 9euWWxdZg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jGmTb-00011y-2I; Tue, 24 Mar 2020 16:32:27 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jGmTX-00010x-1x for linux-arm-kernel@lists.infradead.org; Tue, 24 Mar 2020 16:32:24 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C58A31FB; Tue, 24 Mar 2020 09:32:21 -0700 (PDT) Received: from [10.57.20.169] (unknown [10.57.20.169]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 8E90F3F52E; Tue, 24 Mar 2020 09:32:18 -0700 (PDT) Subject: Re: [arm64:for-next/kernel-ptrauth 16/18] aarch64-linux-objdump: warning: fs/squashfs/decompressor_multi.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0000000 To: Catalin Marinas References: <202003211202.2NuTbuJb%lkp@intel.com> <20200323114837.GA4892@mbp> <20200324161507.GA3901@mbp> From: Amit Kachhap Message-ID: Date: Tue, 24 Mar 2020 22:02:16 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20200324161507.GA3901@mbp> Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200324_093223_182339_5447BC2C X-CRM114-Status: GOOD ( 19.27 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kbuild-all@lists.01.org, kbuild test robot , Szabolcs Nagy , daniel.kiss@arm.com, Kristina Martsenko , Vincenzo Frascino , linux-arm-kernel@lists.infradead.org, Kees Cook Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 3/24/20 9:45 PM, Catalin Marinas wrote: > On Mon, Mar 23, 2020 at 10:36:15PM +0530, Amit Kachhap wrote: >> On 3/23/20 5:18 PM, Catalin Marinas wrote: >>> On Sat, Mar 21, 2020 at 12:28:06PM +0800, kbuild test robot wrote: >>>> tree: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/kernel-ptrauth >>>> head: 3b446c7d27ddd06342901bb35211363f6944291a >>>> commit: 74afda4016a7437e6e425c3370e4b93b47be8ddf [16/18] arm64: compile the kernel with ptrauth return address signing >>>> config: arm64-randconfig-a001-20200321 (attached as .config) >>>> compiler: aarch64-linux-gcc (GCC) 9.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 74afda4016a7437e6e425c3370e4b93b47be8ddf >>>> # save the attached .config to linux build tree >>>> GCC_VERSION=9.2.0 make.cross ARCH=arm64 >>>> >>>> If you fix the issue, kindly add following tag >>>> Reported-by: kbuild test robot >>>> >>>> All warnings (new ones prefixed by >>): >>>> >>>>>> aarch64-linux-objdump: warning: fs/squashfs/decompressor_multi.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0000000 >>>> -- >>>>>> aarch64-linux-objdump: warning: drivers/gpio/gpio-bt8xx.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0000000 >>> >>> Just to make sure I understand the cause of this warning: gcc generates >>> a .note.gnu.property when PAC is enabled for the kernel but binutils >>> doesn't understand it. Is there a way to check for this via the Kconfig >>> options? >> >> Yes you are right. In this case the binutils version lesser than 2.33 do not >> recognize the GNU_PROPERTY_AARCH64_FEATURE_1_PAC property. > > Are there gcc versions supporting PAC but not generating the > .note.gnu.property? Yes GCC older than GCC9 supports PAC without the note (I will find out the exact GCC version). > >> However we can disable pauth in this case by checking linker version >> and GNU_PROPERTY feature as, >> (readelf -S --wide tmp.o | grep .note.gnu.property) && (ld-ifversion -ge >> 233000000). >> >> But I feel disabling pauth in this case seems too aggressive as the current >> way do not break any functionality even though it generates confusing >> warning messages. > > If there isn't a way to silence the linker or objdump, could we align > the compiler version we know that generates this note with a minimum > binutils? Something like: > > depends on (GCC_VERSION < X) || (LD_VERSION >= 233...) Yes this is possible. > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============8124508176991467018==" MIME-Version: 1.0 From: Amit Kachhap To: kbuild-all@lists.01.org Subject: Re: [arm64:for-next/kernel-ptrauth 16/18] aarch64-linux-objdump: warning: fs/squashfs/decompressor_multi.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0000000 Date: Tue, 24 Mar 2020 22:02:16 +0530 Message-ID: In-Reply-To: <20200324161507.GA3901@mbp> List-Id: --===============8124508176991467018== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On 3/24/20 9:45 PM, Catalin Marinas wrote: > On Mon, Mar 23, 2020 at 10:36:15PM +0530, Amit Kachhap wrote: >> On 3/23/20 5:18 PM, Catalin Marinas wrote: >>> On Sat, Mar 21, 2020 at 12:28:06PM +0800, kbuild test robot wrote: >>>> tree: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.gi= t for-next/kernel-ptrauth >>>> head: 3b446c7d27ddd06342901bb35211363f6944291a >>>> commit: 74afda4016a7437e6e425c3370e4b93b47be8ddf [16/18] arm64: compil= e the kernel with ptrauth return address signing >>>> config: arm64-randconfig-a001-20200321 (attached as .config) >>>> compiler: aarch64-linux-gcc (GCC) 9.2.0 >>>> reproduce: >>>> wget https://raw.githubusercontent.com/intel/lkp-tests/maste= r/sbin/make.cross -O ~/bin/make.cross >>>> chmod +x ~/bin/make.cross >>>> git checkout 74afda4016a7437e6e425c3370e4b93b47be8ddf >>>> # save the attached .config to linux build tree >>>> GCC_VERSION=3D9.2.0 make.cross ARCH=3Darm64 >>>> >>>> If you fix the issue, kindly add following tag >>>> Reported-by: kbuild test robot >>>> >>>> All warnings (new ones prefixed by >>): >>>> >>>>>> aarch64-linux-objdump: warning: fs/squashfs/decompressor_multi.o: un= supported GNU_PROPERTY_TYPE (5) type: 0xc0000000 >>>> -- >>>>>> aarch64-linux-objdump: warning: drivers/gpio/gpio-bt8xx.o: unsupport= ed GNU_PROPERTY_TYPE (5) type: 0xc0000000 >>> >>> Just to make sure I understand the cause of this warning: gcc generates >>> a .note.gnu.property when PAC is enabled for the kernel but binutils >>> doesn't understand it. Is there a way to check for this via the Kconfig >>> options? >> >> Yes you are right. In this case the binutils version lesser than 2.33 do= not >> recognize the GNU_PROPERTY_AARCH64_FEATURE_1_PAC property. > = > Are there gcc versions supporting PAC but not generating the > .note.gnu.property? Yes GCC older than GCC9 supports PAC without the note (I will find out = the exact GCC version). > = >> However we can disable pauth in this case by checking linker version >> and GNU_PROPERTY feature as, >> (readelf -S --wide tmp.o | grep .note.gnu.property) && (ld-ifversion -ge >> 233000000). >> >> But I feel disabling pauth in this case seems too aggressive as the curr= ent >> way do not break any functionality even though it generates confusing >> warning messages. > = > If there isn't a way to silence the linker or objdump, could we align > the compiler version we know that generates this note with a minimum > binutils? Something like: > = > depends on (GCC_VERSION < X) || (LD_VERSION >=3D 233...) Yes this is possible. >=20 --===============8124508176991467018==--