linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Masahiro Yamada <masahiroy@kernel.org>
To: kernel test robot <lkp@intel.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	Linux Memory Management List <linux-mm@kvack.org>,
	Nicolas Schier <nicolas@fjasle.eu>
Subject: Re: [linux-next:master 10827/11993] ERROR: modpost: "__sanitizer_cov_trace_pc" [arch/s390/mm/cmm.ko] undefined!
Date: Mon, 3 Oct 2022 03:49:59 +0900	[thread overview]
Message-ID: <CAK7LNAQ2tuw=nNKqco1r_qz+HQhQ1cQ7GNwrn9n_86i4nwpWMQ@mail.gmail.com> (raw)
In-Reply-To: <202210021430.SS41iUJO-lkp@intel.com>

On Sun, Oct 2, 2022 at 3:20 PM kernel test robot <lkp@intel.com> wrote:
>
> Hi Masahiro,
>
> First bad commit (maybe != root cause):
>
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> head:   274d7803837da78dfc911bcda0d593412676fc20
> commit: 4f62512adbe9a2fed6c99011a5a3ece929b2f633 [10827/11993] kbuild: use obj-y instead extra-y for objects placed at the head
> config: s390-randconfig-r011-20221002
> compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 791a7ae1ba3efd6bca96338e10ffde557ba83920)
> 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 s390 cross compiling tool for clang build
>         # apt-get install binutils-s390x-linux-gnu
>         # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=4f62512adbe9a2fed6c99011a5a3ece929b2f633
>         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 4f62512adbe9a2fed6c99011a5a3ece929b2f633
>         # save the config file
>         mkdir build_dir && cp config build_dir/.config
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=s390 SHELL=/bin/bash
>
> If you fix the issue, kindly add following tag where applicable
> | Reported-by: kernel test robot <lkp@intel.com>
>
> All errors (new ones prefixed by >>, old ones prefixed by <<):
>
> >> ERROR: modpost: "__sanitizer_cov_trace_pc" [arch/s390/mm/cmm.ko] undefined!
> >> ERROR: modpost: "del_timer_sync" [arch/s390/mm/cmm.ko] undefined!
> >> ERROR: modpost: "unregister_oom_notifier" [arch/s390/mm/cmm.ko] undefined!
> >> ERROR: modpost: "kthread_stop" [arch/s390/mm/cmm.ko] undefined!
> >> ERROR: modpost: "del_timer" [arch/s390/mm/cmm.ko] undefined!
> >> ERROR: modpost: "_raw_spin_lock" [arch/s390/mm/cmm.ko] undefined!
> >> ERROR: modpost: "free_pages" [arch/s390/mm/cmm.ko] undefined!
> >> ERROR: modpost: "__ubsan_handle_out_of_bounds" [arch/s390/mm/cmm.ko] undefined!
> >> ERROR: modpost: "_raw_spin_unlock" [arch/s390/mm/cmm.ko] undefined!
> >> ERROR: modpost: "__wake_up" [arch/s390/mm/cmm.ko] undefined!
> WARNING: modpost: suppressed 16881 unresolved symbol warnings because there were too many)
>
> --
> 0-DAY CI Kernel Test Service
> https://01.org/lkp




I will apply the following to fix a TRIM_UNUSED_KSYMS bug,
but the given config cannot yet be built successfully.

Presumably, the rest are unrelated to my patches because
even the mainline kernel is broken for s390 in multiple ways.








diff --git a/Makefile b/Makefile
index eaa7096da5f1..8da45f76ec31 100644
--- a/Makefile
+++ b/Makefile
@@ -1150,10 +1150,10 @@ quiet_cmd_ar_vmlinux.a = AR      $@
        $(AR) mPiT $$($(AR) t $@ | head -n1) $@ $(head-y)

 targets += vmlinux.a
-vmlinux.a: $(KBUILD_VMLINUX_OBJS) FORCE
+vmlinux.a: $(KBUILD_VMLINUX_OBJS) autoksyms_recursive FORCE
        $(call if_changed,ar_vmlinux.a)

-vmlinux.o: autoksyms_recursive vmlinux.a $(KBUILD_VMLINUX_LIBS) FORCE
+vmlinux.o: vmlinux.a $(KBUILD_VMLINUX_LIBS) FORCE
        $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.vmlinux_o

 ARCH_POSTLINK := $(wildcard $(srctree)/arch/$(SRCARCH)/Makefile.postlink)






--
Best Regards
Masahiro Yamada


      reply	other threads:[~2022-10-02 18:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-02  6:19 [linux-next:master 10827/11993] ERROR: modpost: "__sanitizer_cov_trace_pc" [arch/s390/mm/cmm.ko] undefined! kernel test robot
2022-10-02 18:49 ` Masahiro Yamada [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAK7LNAQ2tuw=nNKqco1r_qz+HQhQ1cQ7GNwrn9n_86i4nwpWMQ@mail.gmail.com' \
    --to=masahiroy@kernel.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-mm@kvack.org \
    --cc=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=nicolas@fjasle.eu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).