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=-15.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=unavailable 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 191EDC433DB for ; Tue, 16 Feb 2021 19:56:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C23C164E85 for ; Tue, 16 Feb 2021 19:56:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230018AbhBPT4W (ORCPT ); Tue, 16 Feb 2021 14:56:22 -0500 Received: from elvis.franken.de ([193.175.24.41]:59633 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229811AbhBPT4A (ORCPT ); Tue, 16 Feb 2021 14:56:00 -0500 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1lC6Qm-0007Yg-00; Tue, 16 Feb 2021 20:54:44 +0100 Received: by alpha.franken.de (Postfix, from userid 1000) id E4344C03C3; Tue, 16 Feb 2021 18:10:27 +0100 (CET) Date: Tue, 16 Feb 2021 18:10:27 +0100 From: Thomas Bogendoerfer To: Alexander Lobakin Cc: Arnd Bergmann , Nathan Chancellor , Nick Desaulniers , Huacai Chen , Pei Huang , Kees Cook , Sami Tolvanen , 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 Subject: Re: [PATCH mips-next] vmlinux.lds.h: catch more UBSAN symbols into .data Message-ID: <20210216171027.GA9873@alpha.franken.de> References: <20210216085442.2967-1-alobakin@pm.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210216085442.2967-1-alobakin@pm.me> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 16, 2021 at 08:55:25AM +0000, Alexander Lobakin wrote: > 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(-) applied to mips-next. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]