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=-8.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 E7FBFC433ED for ; Mon, 3 May 2021 12:42:34 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 3934A611EE for ; Mon, 3 May 2021 12:42:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3934A611EE Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arndb.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 387516B0036; Mon, 3 May 2021 08:42:33 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 35D5E6B006E; Mon, 3 May 2021 08:42:33 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2261C6B0070; Mon, 3 May 2021 08:42:33 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0067.hostedemail.com [216.40.44.67]) by kanga.kvack.org (Postfix) with ESMTP id 035456B0036 for ; Mon, 3 May 2021 08:42:32 -0400 (EDT) Received: from smtpin08.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id A3922180AD830 for ; Mon, 3 May 2021 12:42:32 +0000 (UTC) X-FDA: 78099883344.08.7937CE0 Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.73]) by imf14.hostedemail.com (Postfix) with ESMTP id 1E978C0007F2 for ; Mon, 3 May 2021 12:42:12 +0000 (UTC) Received: from mail-wr1-f42.google.com ([209.85.221.42]) by mrelayeu.kundenserver.de (mreue107 [213.165.67.113]) with ESMTPSA (Nemesis) id 1McHQA-1l0tha25Mq-00cetc for ; Mon, 03 May 2021 14:42:30 +0200 Received: by mail-wr1-f42.google.com with SMTP id x5so5359344wrv.13 for ; Mon, 03 May 2021 05:42:29 -0700 (PDT) X-Gm-Message-State: AOAM53208BczN8PARE66PDgcwoZ7kQjiR6xAfmoxliwclMSLwerRKURt +CHp3QXoeqG7bVBq1NDi+TF7Vkj8njOmz2OGf5g= X-Google-Smtp-Source: ABdhPJwppovukSPUskV5QkA2erBKDMPENekgHslASiCkF3Dzg7jMCbtmx225tpdtx1CAkMJz3YS6B25BhFeeZQeGRVI= X-Received: by 2002:a5d:6a52:: with SMTP id t18mr6961702wrw.361.1620045749718; Mon, 03 May 2021 05:42:29 -0700 (PDT) MIME-Version: 1.0 References: <202105030311.xWwkyV9z-lkp@intel.com> In-Reply-To: <202105030311.xWwkyV9z-lkp@intel.com> From: Arnd Bergmann Date: Mon, 3 May 2021 14:41:45 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [stable:linux-5.4.y 5541/6083] ERROR: "__memcat_p" [drivers/hwtracing/stm/stm_core.ko] undefined! To: kernel test robot Cc: kbuild-all@lists.01.org, clang-built-linux , Greg Kroah-Hartman , Andrew Morton , Linux Memory Management List , Sasha Levin , Alexander Shishkin Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:w6Zy6aebShsvKCCNa+K5jQaITqTdRyRz0MibqcLMdqbJZ0dfZkv l4DHB/vvqXGHuEMYV50P50AOH3HyNC6cvWPkCtDu/mzLF91+0fAlt3jOL97n4AEWe35DvVE vM1+sG8axJYQzygntSk7ccR6Air0kWwaXfZMiSng95FuVK1r9E0ExkcBQKjFHY7VN++oOCC qBUVpoiFH/Kz7A9A5gF/w== X-UI-Out-Filterresults: notjunk:1;V03:K0:OwilCuo73Qg=:D1fWVdbTArylqQCffQui+l 9WkyMkVtnnoB36SpiyAuz6+81h5GTLIJA0Go4GlwjMuumNLW4caA/a2/S52UDaK9eFBtZ+1eS YcvPlfuFh8ACRftzacOuBksQqoQoNP6S4uNx1WTPwjioibwcmFdEuji4JcYoWFY/GGz5c0TuF kZxWiPzK8PeR09MAw1pMHWDhv2d3WWgy4mICkwqlzeVnxSTFCrwaLbyJyV6LPvXwMUD31MYzi k8ElnbtSeJJUNTmEMJDbvoRFqmqXfQpE6LWt86Jhj9gnx5acqQU6Y+ABvOlmeQ+zRtf5R1wfz WnXwtJfKUOC/YSJ7xs+U8biRiKu/pQ58/255tfUVc2pAr0WS0ngFd4lMlFVF2Ijr4eBC7FGLG AmK9AdEgm8rR2a0yYJZxe9sn5lY3ZqG7Zryfjc4IxHehRZFTv0BDx8guE/9VkV6iJpQtt5JYn owkuWiQtgEZdW5fKJzM7JAxW8tsmvlyGVmhxcy+4YbeuyNBfEl9dW/L80RqDyYXriWatps3C5 oYpueuUyGU4r3gRPzBOUGNt3MOo1TY1YqXAdr6vqTE6NAFwah8Q2PMe80VuBCz/r0LiWX/v/v 4wHF/ozfKHlOCq+Vh95f0f4VzQdpc9tbomXhu+N49nxWDq71vda+L0VeMa5K6oOfUl6+8Q2ja wEKw= X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 1E978C0007F2 Authentication-Results: imf14.hostedemail.com; dkim=none; spf=none (imf14.hostedemail.com: domain of arnd@arndb.de has no SPF policy when checking 217.72.192.73) smtp.mailfrom=arnd@arndb.de; dmarc=none X-Stat-Signature: o795ktdjg1py6bnxjj8gyzom4hwc41j3 Received-SPF: none (arndb.de>: No applicable sender policy available) receiver=imf14; identity=mailfrom; envelope-from=""; helo=mout.kundenserver.de; client-ip=217.72.192.73 X-HE-DKIM-Result: none/none X-HE-Tag: 1620045732-113490 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: On Sun, May 2, 2021 at 9:28 PM kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.4.y > head: 370636ffbb8695e6af549011ad91a048c8cab267 > commit: 99f1960cae4f417d513be5ea55136383c2a58798 [5541/6083] stop_machine: mark helpers __always_inline > config: x86_64-randconfig-a002-20210502 (attached as .config) > compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 8f5a2a5836cc8e4c1def2bdeb022e7b496623439) > 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 > # install x86_64 cross compiling tool for clang build > # apt-get install binutils-x86-64-linux-gnu > # https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/?id=99f1960cae4f417d513be5ea55136383c2a58798 > git remote add stable https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git > git fetch --no-tags stable linux-5.4.y > git checkout 99f1960cae4f417d513be5ea55136383c2a58798 > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64 > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > All errors (new ones prefixed by >>): > > >> ERROR: "__memcat_p" [drivers/hwtracing/stm/stm_core.ko] undefined! I'm fairly sure this is unrelated to my patch, but I don't see what happened here. The function is defined in lib/memcat_p.c, which was added in v4.20, commit 93048c094415 ("lib: Fix ia64 bootloader linkage"), so it shouldn't fail in v5.4. The same release also introduced the only user in commit a23bbec205b9 ("stm class: Use memcat_p()"), and this is the one that causes the failure. I also see that drivers/hwtracing/stm/policy.c is the only file that actually calls memcat_p() (which is an inline function calling __memcat_p), so it's possible that the $(lib-y) object gets dropped by the linker because there are no other references to it from the kernel. However, in this case I would expect to see the same problem on mainline kernels, but I don't. Adding Alexander Shishkin to Cc, maybe he has seen this before. Arnd