Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp5545893pxb; Tue, 16 Feb 2021 00:57:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJy19X157iOCG2ZJdVumGAjeI3RKVa4mu/yA4b2hhjA4XM0tM/rb92Si/pW1AfxuIkbpLDWf X-Received: by 2002:a17:906:bce5:: with SMTP id op5mr6329488ejb.83.1613465843787; Tue, 16 Feb 2021 00:57:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613465843; cv=none; d=google.com; s=arc-20160816; b=bjI/p7iRSPP8Kl4NLlH8rY8uHjBVXQ+Ld5ZiN7mVLzvsZgT/858ITyq/EGY0E3/oxQ 1GpVCvvFeiHvG/G5kt4pHcsz8xdgQWOqpR8oweiOgMl5s4QtUjhIillWfXg1qo9Ycj+j uujQK6HU/H2F5VEpAsORtO4COLqgtfB+QQAP0vZtoyqGhEews1QGnz58WMEo1wJyfqfq bKkLU2dka+lxYlVigsczljJGJtVndOU8CUKnrPP7tnGRuUaSPMU0ePou7CvJ6WHSvhuZ d7aTHW02nVI/sf4vQPpLP4PReSTtJMQsOwjZEODNeiXz1NtvIzWnTU9t5P0W02DykI8V sQHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:subject:reply-to:cc:from:to:dkim-signature:date; bh=Z1B3dJxurktF44XrKPp/L6aM/W1WYsFcVWu3eznTvaw=; b=Yh7u7pp75GGXCyzmLBm56650mFkejMJUCivmS81I9fFkhiab+9UVehlLPFs19okKbo 8wpyAmsJ2JPe0MR9tXpLHnxJNQTj2TN4yXt3/qY0YcfIiUFmOZqh+mbDie/aoymqFwK1 TJBb8zUINtloqpWxIVQquNqoEHE1HPLL2W2bI770eTBLDEtKcWtn9TrRSDRbsFj555pY m92OFiViFigsq7rW4MwPHSGGcDtf3Th3YiJpIpXrCxE3N5iESUvwbKWIvoPT40eozwmu Jh62VX0VbmMSWb0dkAWZYTLBh7KJufaHqzwvF1JWrg3xTGExKEkL+0pq1kYovxn6xI0X tFXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=XoH45ZIl; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=pm.me Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s22si13387415ejb.250.2021.02.16.00.57.00; Tue, 16 Feb 2021 00:57:23 -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=@pm.me header.s=protonmail header.b=XoH45ZIl; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=pm.me Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229787AbhBPI42 (ORCPT + 99 others); Tue, 16 Feb 2021 03:56:28 -0500 Received: from mail-40136.protonmail.ch ([185.70.40.136]:16247 "EHLO mail-40136.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229754AbhBPI41 (ORCPT ); Tue, 16 Feb 2021 03:56:27 -0500 Date: Tue, 16 Feb 2021 08:55:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1613465743; bh=Z1B3dJxurktF44XrKPp/L6aM/W1WYsFcVWu3eznTvaw=; h=Date:To:From:Cc:Reply-To:Subject:From; b=XoH45ZIlE9KmzLuba90pWudggzbMSyC/rqULk0uCPZXV91Qj4Nkx45usHN1gE3m9e XnUyQp2RXSVRhiPrrdzDIzTGRQzeof3nTw2deqUyZ2A3mc9H9RcnITfzsGy+3AawHh RwKxVATRQsTcOWC25zFl+UdlexCfH8zgHmjhPpxPa7stDs6FcNjsmkhKul5s2XBjvg /7VvXCn1U9gQtpKtkgJxbaUIwOtj8FoPSKQHm3yUlF5Zwsd4+VY0K2IG702UYztvKW PrNsDvZbU4BHCabfjSB43UlkMrnc3ihEC+Og4ignXhSnP+E35f0y87AY7NE3wAWgRc icxXlzsRVboHw== To: Thomas Bogendoerfer From: Alexander Lobakin Cc: Arnd Bergmann , Nathan Chancellor , Nick Desaulniers , Huacai Chen , Pei Huang , Kees Cook , Sami Tolvanen , Alexander Lobakin , Fangrui Song , Jiaxun Yang , Ralf Baechle , Corey Minyard , kernel test robot , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, clang-built-linux@googlegroups.com Reply-To: Alexander Lobakin Subject: [PATCH mips-next] vmlinux.lds.h: catch more UBSAN symbols into .data Message-ID: <20210216085442.2967-1-alobakin@pm.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org LKP triggered lots of LD orphan warnings [0]: mipsel-linux-ld: warning: orphan section `.data.$Lubsan_data299' from `init/do_mounts_rd.o' being placed in section `.data.$Lubsan_data299' mipsel-linux-ld: warning: orphan section `.data.$Lubsan_data183' from `init/do_mounts_rd.o' being placed in section `.data.$Lubsan_data183' mipsel-linux-ld: warning: orphan section `.data.$Lubsan_type3' from `init/do_mounts_rd.o' being placed in section `.data.$Lubsan_type3' mipsel-linux-ld: warning: orphan section `.data.$Lubsan_type2' from `init/do_mounts_rd.o' being placed in section `.data.$Lubsan_type2' mipsel-linux-ld: warning: orphan section `.data.$Lubsan_type0' from `init/do_mounts_rd.o' being placed in section `.data.$Lubsan_type0' [...] Seems like "unnamed data" isn't the only type of symbols that UBSAN instrumentation can emit. Catch these into .data with the wildcard as well. [0] https://lore.kernel.org/linux-mm/202102160741.k57GCNSR-lkp@intel.com Fixes: f41b233de0ae ("vmlinux.lds.h: catch UBSAN's "unnamed data" into data= ") Reported-by: kernel test robot Signed-off-by: Alexander Lobakin --- include/asm-generic/vmlinux.lds.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinu= x.lds.h index cc659e77fcb0..83537e5ee78f 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h @@ -95,7 +95,7 @@ */ #ifdef CONFIG_LD_DEAD_CODE_DATA_ELIMINATION #define TEXT_MAIN .text .text.[0-9a-zA-Z_]* -#define DATA_MAIN .data .data.[0-9a-zA-Z_]* .data..L* .data..compoundliter= al* .data.$__unnamed_* +#define DATA_MAIN .data .data.[0-9a-zA-Z_]* .data..L* .data..compoundliter= al* .data.$__unnamed_* .data.$Lubsan_* #define SDATA_MAIN .sdata .sdata.[0-9a-zA-Z_]* #define RODATA_MAIN .rodata .rodata.[0-9a-zA-Z_]* .rodata..L* #define BSS_MAIN .bss .bss.[0-9a-zA-Z_]* .bss..compoundliteral* --=20 2.30.1