Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp5961029pxb; Tue, 16 Feb 2021 11:58:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJxgdinXpMnzHS0ib2Ep8Bpb5qDnxUeIphTU25le/fakxC8RU/bKuLGA9EV2B9q+0ubzFSxR X-Received: by 2002:a17:906:3acc:: with SMTP id z12mr22759890ejd.494.1613505515975; Tue, 16 Feb 2021 11:58:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613505515; cv=none; d=google.com; s=arc-20160816; b=Nhd0tSJLAOaSBhNnbJtM5UubqJHt1JKNTIV/TfiFkZco4VChZHlYksovRqwyzBSIsc Z0eKMgqU84DMRXRqSjamTq0M6DtuGwatiDkrAHRNTUNojYtJDJS+hF+jqQtAFh07fptJ R/t52BuQv94OQEh6efLA7YhBN8rR1CatLyWv7/w9RKNj6ZIVNmo+DTSfvE0Tw1O+uwfU GLnMaGIGdrRCZ+ChaPD8pfOy27Kby/gvw4b0jn22l/i4H/H4Kt65QlSzrlOnmy9jgc50 5oRVj8QCJcGXA7VFnbK61pogwBPkC+9grflS3UX0rr53b+pHmGajJ3Cncc1tzwXBQlyc M+cQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=Wd5kQnrrSF15asd1zH9TJBRrcfuj7sl96ZOrY/9YJlU=; b=tRPesd6JimRM+5DkLUO/dyzNiztqXLSyaaxvZSanRijZ50lBaz/a2TpRZq2gfzvXNH w2eeUmI2XrB+JsvTHzWnLb/dn27OYx1dDpIadTVYbmJeNEqV3GhgAGpyZPR9KEZ3cz9q uVl6TEjzJ3Yg+rSUwGM+5D9kilDBhmyo/RMk2ez4W51iUP1Z78G4ZTCO7mlwV+f+uoUt LKSedpQN45ihcwOeCyfJIbHDFMYPKRMkkNfKeieoTkIMcRUi5YyuWQcz62CUYSiTasvA iKhkBLQ3Ku7je5xh3wfJVNY9DX7+ySaT/vPNC9GAppAv0NuCH2sW0qWJkHg3QXAwHAnj rBag== ARC-Authentication-Results: i=1; mx.google.com; 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 s9si15127728edu.474.2021.02.16.11.58.12; Tue, 16 Feb 2021 11:58:35 -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; 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 S229577AbhBPT4J (ORCPT + 99 others); Tue, 16 Feb 2021 14:56:09 -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 ]