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=-10.3 required=3.0 tests=BAYES_00, 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 C7CABC433E0 for ; Mon, 1 Mar 2021 06:08:28 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 3F76064DDF for ; Mon, 1 Mar 2021 06:08:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3F76064DDF Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 8973F8D0032; Mon, 1 Mar 2021 01:08:27 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 8486E8D0019; Mon, 1 Mar 2021 01:08:27 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7116A8D0032; Mon, 1 Mar 2021 01:08:27 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0009.hostedemail.com [216.40.44.9]) by kanga.kvack.org (Postfix) with ESMTP id 5A9D38D0019 for ; Mon, 1 Mar 2021 01:08:27 -0500 (EST) Received: from smtpin04.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 26D491E1E for ; Mon, 1 Mar 2021 06:08:27 +0000 (UTC) X-FDA: 77870275854.04.1584F5E Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by imf07.hostedemail.com (Postfix) with ESMTP id 86BB2A0009CD for ; Mon, 1 Mar 2021 06:08:25 +0000 (UTC) IronPort-SDR: DjoV5zJFGn2wkJGBFI7GtSfHomTzjqlfheXzyfTjPULZGLUgQ4Y0CX/a31PSk7E7o9fo0yk4/C eiCma/BV96IQ== X-IronPort-AV: E=McAfee;i="6000,8403,9909"; a="271362441" X-IronPort-AV: E=Sophos;i="5.81,214,1610438400"; d="scan'208";a="271362441" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Feb 2021 22:08:24 -0800 IronPort-SDR: kQhuOOw03RsOEZ4x0hq/nMjmocHhIv2OABgnuXE7jyqCTpCT2t4yiT5xEY7G/GXwToaSaladUm vHWMlVrX9v2A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,214,1610438400"; d="scan'208";a="397575231" Received: from shbuild999.sh.intel.com (HELO localhost) ([10.239.146.165]) by fmsmga008.fm.intel.com with ESMTP; 28 Feb 2021 22:08:22 -0800 Date: Mon, 1 Mar 2021 14:08:22 +0800 From: Feng Tang To: Paul Moore Cc: lkp , "kbuild-all@lists.01.org" , Linux Memory Management List , linux-kernel@vger.kernel.org, Masahiro Yamada Subject: Re: [linux-next:master 5983/6048] h8300-linux-ld: section .data VMA overlaps section __kcrctab VMA Message-ID: <20210301060822.GA21746@shbuild999.sh.intel.com> References: <202102100211.hNoYGjub-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Stat-Signature: mx3x934k5fixfkso4kn56rf7xyqqmmky X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 86BB2A0009CD Received-SPF: none (intel.com>: No applicable sender policy available) receiver=imf07; identity=mailfrom; envelope-from=""; helo=mga05.intel.com; client-ip=192.55.52.43 X-HE-DKIM-Result: none/none X-HE-Tag: 1614578905-695481 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hi Paul, On Wed, Feb 10, 2021 at 02:21:41AM +0800, Paul Moore wrote: > On Tue, Feb 9, 2021 at 1:09 PM kernel test robot wrote: > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > > head: 59fa6a163ffabc1bf25c5e0e33899e268a96d3cc > > commit: 77d8143a5290b38e3331f61f55c0b682699884bc [5983/6048] Merge remote-tracking branch 'selinux/next' > > config: h8300-randconfig-r005-20210209 (attached as .config) > > compiler: h8300-linux-gcc (GCC) 9.3.0 > > reproduce (this is a W=1 build): > > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > > chmod +x ~/bin/make.cross > > # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=77d8143a5290b38e3331f61f55c0b682699884bc > > git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git > > git fetch --no-tags linux-next master > > git checkout 77d8143a5290b38e3331f61f55c0b682699884bc > > # save the attached .config to linux build tree > > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=h8300 > > > > If you fix the issue, kindly add following tag as appropriate > > Reported-by: kernel test robot > > > > All errors (new ones prefixed by >>): > > > > h8300-linux-ld: section .init.text LMA [0000000000430360,00000000004479a1] overlaps section .data LMA [000000000041868c,00000000004489eb] > > >> h8300-linux-ld: section .data VMA [0000000000400000,000000000043035f] overlaps section __kcrctab VMA [00000000003fdd74,000000000040007b] > > >> h8300-linux-ld: section __kcrctab_gpl VMA [000000000040007c,00000000004025a7] overlaps section .data VMA [0000000000400000,000000000043035f] > > h8300-linux-ld: arch/h8300/kernel/entry.o: in function `resume_kernel': > > (.text+0x29a): undefined reference to `TI_PRE_COUNT' > > This really doesn't look like something caused by SELinux ... No, this is not related with SELinux, sorry for the false alarm. Further check shows it is related with the kernel config and the built-out kernel size. With the kernel config, the ROM size is 4MB large, and when the config selects many components, its .text and .rodata may exceeds the 4MB size limit, causes the "overlaps section" errors. If we trim the kernel config and enable the "CONFIG_TRIM_UNUSED_KSYMS", then the compilation can succeed. For testing kbuild on platforms which has special size limits, one thought is the kernel config may need to be chosen specifically. Thanks, Feng > -- > paul moore > www.paul-moore.com >