Re: [linux-next:master 5475/12409] s390x-linux-ld: kernel/kexec_core.c:822: undefined reference to `__tsan_memcpy'

Philip Li
2022-10-05T11:45:09Z

On Tue, Oct 04, 2022 at 04:35:56PM -0700, Ira Weiny wrote:
> On Tue, Oct 04, 2022 at 04:24:54PM -0700, Nick Desaulniers wrote:
> > Sorry for the noise, please see:
> > https://lore.kernel.org/all/Yx3HnuEDyFG0+G62@dev-arch.thelio-3990X/

Sorry for late reply, as we are in vacation that the response to email is slow.

The early logic only disables __tsan_memset, we should correct the logic to for
all mem* function as mentioned in the link. We will fix this asap.

>
> NP and thanks for letting us know!

Sorry for the false positive.

> Ira
>
> > EOM
> >
> > On Tue, Oct 4, 2022 at 4:18 PM Ira Weiny <ira.weiny@intel.com> wrote:
> > >
> > > On Wed, Oct 05, 2022 at 05:05:12AM +0800, kernel test robot wrote:
> > > > Hi Fabio,
> > > >
> > > > FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.
> > >
> > > I don't think this is relevant.
> > >
> > > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> > > > head: 4d80748d16c82a9c2c4ea5feea96e476de3cd876
> > > > commit: 948084f0f6959f602f89f679522b706a72da0285 [5475/12409] kexec: replace kmap() with kmap_local_page()
> > > > config: s390-randconfig-r035-20221003
> > > > 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=948084f0f6959f602f89f679522b706a72da0285
> > > > 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 948084f0f6959f602f89f679522b706a72da0285
> > > > # 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>
> > > >
> > > > Note: the linux-next/master HEAD 4d80748d16c82a9c2c4ea5feea96e476de3cd876 builds fine.
> > > > It may have been fixed somewhere.
> > > >
> > > > All errors (new ones prefixed by >>):
> > > >
> > >
> > > [snip]
> > >
> > > > s390x-linux-ld: kernel/kexec_core.o: in function `kimage_load_normal_segment':
> > > > kernel/kexec_core.c:814: undefined reference to `__tsan_memset'
> > > > >> s390x-linux-ld: kernel/kexec_core.c:822: undefined reference to `__tsan_memcpy'
> > > > s390x-linux-ld: kernel/kexec_core.o: in function `_copy_from_user':
> > >
> > > I don't see __tsan_memcpy anywhere in the current linux-next tree?
> > >
> > > Ira
> > >
> >
> >
> > --
> > Thanks,
> > ~Nick Desaulniers
>