Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3137615pxu; Tue, 8 Dec 2020 04:42:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJy0WznG0ciwb/RDjICqh77dGpYvozpfXuo8Mn2YC+I7DOPAXAHZd9xxliqyJrHQhSqmaGfo X-Received: by 2002:a17:906:178b:: with SMTP id t11mr22060893eje.152.1607431368018; Tue, 08 Dec 2020 04:42:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607431368; cv=none; d=google.com; s=arc-20160816; b=NNd9BtmbcHH9VmV29oCFNbJ//xLT65uPBmVCKUdz9IYN7V56hlviK1lkeK5GgfsXVr +RbPiaXAMwQx/jW4o6TYWmEr94rl5KoVdo7Crb6vdUmQ/LKJRfzxdBWePbneAtPC1xGw GC//SaClAsCE5sW3RcG578+vd4OfZrjcXD1XeY2kfY8OfKfrVLpBoxmMF3ZzSPODRS3M VqkRAOQl8cUKph3K/3jXsZrMd0Ehc73xgkKRCq9y5X/r63EsmGHZ87omqYdP5nBV6i2b lJ+85I7wq8fG+tXdaSKOaU3koJ54ahOsz2/aF8J1ZMCUsUQ0QJfWnQO8PTid0HF0HNTG Xg+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=HJAliNaGfA0U/An+9fjAzooKCOWvCaEICZqyIg8ITCw=; b=AF+VvhLSha7ksfbqzyn1ZylTCGrwuskXag5IhypVBb4LRaKL570u2kyi/whRUDsvn2 Rywns/fSytBAOhPS//WhlWCDiBdPdIMvdmHI9RNP0AaXulzRUBRh0bWxq5b4lIrcB2ZJ X3NkSMrvR4GwhEcIsEwDY4tM4Gpuw/jKDiaX/BDAgiPdUffxdrrD5YnWXd3ALyfmnpyh nLFVY6hi9miVGcuYF+K0bkUMiTfkm1PdzB+bUcmCyWVM3k34RKdttpT5cC5nXozXyY6R AEIt04B4PF7yuhGWlubEGxO+klkT0AohRbXhTfGC6H8CYigZ3j6KIQNWu2Gx5lR5os0e G6KQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=o4J2J2b4; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r6si5282114ejb.640.2020.12.08.04.42.24; Tue, 08 Dec 2020 04:42:48 -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=@canb.auug.org.au header.s=201702 header.b=o4J2J2b4; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729283AbgLHMCr (ORCPT + 99 others); Tue, 8 Dec 2020 07:02:47 -0500 Received: from ozlabs.org ([203.11.71.1]:49651 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726825AbgLHMCr (ORCPT ); Tue, 8 Dec 2020 07:02:47 -0500 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4CqzLb6bnhz9sVn; Tue, 8 Dec 2020 23:01:59 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=canb.auug.org.au; s=201702; t=1607428921; bh=JEri3CU8kWrV81KglUKUp+7iowgZEiWf9+9m9XNHnMc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=o4J2J2b40/3bQfI+Auy2gC8waE4x0NCrBR/jCkCWWGBr/Tl5GsMQCJrXeuGqioy4q gxskM6vJDXpNQZ1ZfwHQsiUxBKWsIW8Bu+ToxNDNAKY7PC9uI03kW5JpiV0PsvrEUP bNMOjG3/ew2r3pBL5Oh0xSibhLFio3aBK9vlra1/U8Zh+tMMPGTeWDAI5Dk9U3d5fc xTuUd2VwNw4d2c5FKGnRKgIKTCtz9ZJ4fJxIQWntU1cBlFkkt9IXjlXa0u1vZqAp+N 50u1qFmz3uIjNCftsyPdiI9V+G5oMyxh9r+8zhc6yy67apUiBj3XQRWpvc2Nz7JuMf 4NQfP0qygF1DA== Date: Tue, 8 Dec 2020 23:01:57 +1100 From: Stephen Rothwell To: Andrew Morton Cc: Linux Kernel Mailing List , Linux Next Mailing List , Kees Cook , Michael Ellerman , PowerPC , Mathieu Malaterre , Nicholas Piggin Subject: Re: linux-next: build warning after merge of the akpm tree Message-ID: <20201208230157.42c42789@canb.auug.org.au> In-Reply-To: <20201204210000.660293c6@canb.auug.org.au> References: <20201204210000.660293c6@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/FcK_nGNcdk4IZE8gzaZ87Qo"; protocol="application/pgp-signature"; micalg=pgp-sha256 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/FcK_nGNcdk4IZE8gzaZ87Qo Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Stephen, On Fri, 4 Dec 2020 21:00:00 +1100 Stephen Rothwell w= rote: > > Hi all, >=20 > After merging the akpm tree, today's linux-next build (powerpc > allyesconfig) produced warnings like this: >=20 > ld: warning: orphan section `.data..Lubsan_data177' from `arch/powerpc/op= rofile/op_model_pa6t.o' being placed in section `.data..Lubsan_data177' >=20 > (lots of these latter ones) 781584 of them today! > I don't know what produced these, but it is in the akpm-current or > akpm trees. Presumably the result of commit 186c3e18dba3 ("ubsan: enable for all*config builds") from the akpm-current tree. arch/powerpc/kernel/vmlinux.lds.S has: #ifdef CONFIG_PPC32 .data : AT(ADDR(.data) - LOAD_OFFSET) { DATA_DATA #ifdef CONFIG_UBSAN *(.data..Lubsan_data*) *(.data..Lubsan_type*) #endif *(.data.rel*) *(SDATA_MAIN) added by commit beba24ac5913 ("powerpc/32: Add .data..Lubsan_data*/.data..Lubsan_type* se= ctions explicitly") in 2018, but no equivalent for 64 bit. I will try the following patch tomorrow: From: Stephen Rothwell Date: Tue, 8 Dec 2020 22:58:24 +1100 Subject: [PATCH] powerpc: Add .data..Lubsan_data*/.data..Lubsan_type* secti= ons explicitly Similarly to commit beba24ac5913 ("powerpc/32: Add .data..Lubsan_data*/.data..Lubsan_type* se= ctions explicitly") since CONFIG_UBSAN bits can now be enabled for all*config. Signed-off-by: Stephen Rothwell --- arch/powerpc/kernel/vmlinux.lds.S | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/powerpc/kernel/vmlinux.lds.S b/arch/powerpc/kernel/vmlinu= x.lds.S index 3b4c26e94328..0318ba436f34 100644 --- a/arch/powerpc/kernel/vmlinux.lds.S +++ b/arch/powerpc/kernel/vmlinux.lds.S @@ -296,6 +296,10 @@ SECTIONS #else .data : AT(ADDR(.data) - LOAD_OFFSET) { DATA_DATA +#ifdef CONFIG_UBSAN + *(.data..Lubsan_data*) + *(.data..Lubsan_type*) +#endif *(.data.rel*) *(.toc1) *(.branch_lt) --=20 2.29.2 --=20 Cheers, Stephen Rothwell --Sig_/FcK_nGNcdk4IZE8gzaZ87Qo Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAl/PazUACgkQAVBC80lX 0Gz11wgAhzi/cE1n0K51pPVWQ2WdxspNEl2+9Nst5oZsnWYPae6UeDHxSaLegFHX RW9X1VpB5SqcwNspo0aBBl1fGGU+XleJt6mi17r1xNE6G8fCbsYTAXYbb0s5z0wh W++Qf/MoepUOmnM25LJvAM9jZ7XUj3z1Nys2CQnLXxKR1YyvO911RmNwMUXpTMiu D+sukC0NY0B6VDy1ffuH7UlRY1cTOE6EwiV5YW7xF0UFtzbXWtIBt49eh7rFdkMV rU7MirxnECHFENWa2II0I+EfGPLrbmPI0V6MIEF46NuxpERh1WaIhO9UeOZ+ADGc aDx/c97p0/QQaq5T4QNeoemt9tYzLA== =O0Y/ -----END PGP SIGNATURE----- --Sig_/FcK_nGNcdk4IZE8gzaZ87Qo--