lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Fri, 9 Sep 2022 19:59:08 +0800
From:   kernel test robot <lkp@...el.com>
To:     Ilya Leoshkevich <iii@...ux.ibm.com>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org, Heiko Carstens <hca@...ux.ibm.com>
Subject: main.c:undefined reference to `__tsan_memset'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   506357871c18e06565840d71c2ef9f818e19f460
commit: e37b3dd063a1a68e28a7cfaf77c84c472112e330 s390: enable KCSAN
date:   1 year, 1 month ago
config: s390-randconfig-r044-20220909
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 1546df49f5a6d09df78f569e4137ddb365a3e827)
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/torvalds/linux.git/commit/?id=e37b3dd063a1a68e28a7cfaf77c84c472112e330
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout e37b3dd063a1a68e28a7cfaf77c84c472112e330
        # 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@...el.com>

All errors (new ones prefixed by >>):

   s390x-linux-ld: init/main.o: in function `trace_event_raw_event_initcall_level':
>> main.c:(.text+0x1ea): undefined reference to `__tsan_memset'
   s390x-linux-ld: init/main.o: in function `trace_event_raw_event_initcall_start':
   main.c:(.text+0x2fa): undefined reference to `__tsan_memset'
   s390x-linux-ld: init/main.o: in function `trace_event_raw_event_initcall_finish':
   main.c:(.text+0x3ce): undefined reference to `__tsan_memset'
   s390x-linux-ld: init/main.o: in function `do_one_initcall':
>> (.text+0x4c0): undefined reference to `__tsan_memset'
   s390x-linux-ld: (.text+0x4d2): undefined reference to `__tsan_memset'
   s390x-linux-ld: (.text+0x83c): undefined reference to `__tsan_memcpy'
   s390x-linux-ld: init/main.o: in function `init_setup':
>> main.c:(.init.text+0x1ba): undefined reference to `__tsan_memset'
   s390x-linux-ld: init/main.o: in function `rdinit_setup':
   main.c:(.init.text+0x20e): undefined reference to `__tsan_memset'
   s390x-linux-ld: init/main.o: in function `unknown_bootoption':
>> main.c:(.init.text+0xd84): undefined reference to `__tsan_memmove'
   s390x-linux-ld: init/main.o: in function `set_init_arg':
   main.c:(.init.text+0x11ea): undefined reference to `__tsan_memmove'
   s390x-linux-ld: init/do_mounts.o: in function `name_to_dev_t':
>> do_mounts.c:(.text+0x26e): undefined reference to `__tsan_memset'
   s390x-linux-ld: init/do_mounts.o: in function `mount_block_root':
>> do_mounts.c:(.init.text+0x2ee): undefined reference to `__tsan_memset'
   s390x-linux-ld: init/do_mounts_rd.o: in function `identify_ramdisk_image':
>> do_mounts_rd.c:(.init.text+0x59c): undefined reference to `__tsan_memset'
   s390x-linux-ld: init/initramfs.o: in function `panic_show_mem':
>> initramfs.c:(.text+0xfc): undefined reference to `__tsan_memset'
   s390x-linux-ld: init/initramfs.o: in function `do_populate_rootfs':
>> initramfs.c:(.init.text+0x384): undefined reference to `__tsan_memset'
   s390x-linux-ld: init/initramfs.o: in function `do_collect':
>> initramfs.c:(.init.text+0xf46): undefined reference to `__tsan_memcpy'
   s390x-linux-ld: init/initramfs.o: in function `do_name':
   initramfs.c:(.init.text+0x1558): undefined reference to `__tsan_memset'
   s390x-linux-ld: init/initramfs.o: in function `do_copy':
   initramfs.c:(.init.text+0x1a06): undefined reference to `__tsan_memset'
   s390x-linux-ld: init/initramfs.o: in function `do_symlink':
   initramfs.c:(.init.text+0x1d44): undefined reference to `__tsan_memset'
   s390x-linux-ld: init/initramfs.o: in function `parse_header':
   initramfs.c:(.init.text+0x1fc8): undefined reference to `__tsan_memset'
   s390x-linux-ld: init/initramfs.o: in function `maybe_link':
   initramfs.c:(.init.text+0x2234): undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kernel/time.o:time.c:(.text+0x938): more undefined references to `__tsan_memset' follow
   s390x-linux-ld: arch/s390/kernel/time.o: in function `leap_seconds_scheduled_show':
>> time.c:(.text+0x17ea): undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kernel/time.o: in function `time_early_init':
>> (.init.text+0x28): undefined reference to `__tsan_memset'
   s390x-linux-ld: (.init.text+0x3a): undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kernel/time.o: in function `read_persistent_wall_and_boot_offset':
   (.init.text+0x30e): undefined reference to `__tsan_memset'
   s390x-linux-ld: (.init.text+0x332): undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kernel/process.o: in function `arch_dup_task_struct':
>> process.c:(.text+0x1b8): undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kernel/process.o: in function `copy_thread':
>> process.c:(.text+0x254): undefined reference to `__tsan_memset'
>> s390x-linux-ld: process.c:(.text+0x290): undefined reference to `__tsan_memset'
   s390x-linux-ld: process.c:(.text+0x354): undefined reference to `__tsan_memset'
>> s390x-linux-ld: process.c:(.text+0x41a): undefined reference to `__tsan_memcpy'
   s390x-linux-ld: process.c:(.text+0x4a4): undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kernel/process.o: in function `get_wchan':
   process.c:(.text+0x57c): undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kernel/early.o: in function `startup_init':
>> early.c:(.init.text+0x30e): undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kernel/early.o: in function `setup_facility_list':
>> early.c:(.init.text+0x410): undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kernel/early.o: in function `setup_arch_string':
   early.c:(.init.text+0x51a): undefined reference to `__tsan_memset'
>> s390x-linux-ld: early.c:(.init.text+0x52c): undefined reference to `__tsan_memset'
>> s390x-linux-ld: early.c:(.init.text+0x652): undefined reference to `__tsan_memmove'
   s390x-linux-ld: early.c:(.init.text+0x6d2): undefined reference to `__tsan_memmove'
   s390x-linux-ld: early.c:(.init.text+0x80a): undefined reference to `__tsan_memmove'
   s390x-linux-ld: early.c:(.init.text+0x88a): undefined reference to `__tsan_memmove'
   s390x-linux-ld: arch/s390/kernel/setup.o: in function `relocate_dma_section':
   setup.c:(.init.text+0xa22): undefined reference to `__tsan_memmove'
   s390x-linux-ld: setup.c:(.init.text+0xa42): undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kernel/setup.o: in function `setup_resources':
   setup.c:(.init.text+0x1372): undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kernel/setup.o: in function `setup_lowcore_dat_off':
   setup.c:(.init.text+0x194a): undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kernel/setup.o: in function `conmode_default':
   setup.c:(.init.text+0x1b62): undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kernel/idle.o: in function `account_idle_time_irq':
   idle.c:(.text+0x3e): undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kernel/idle.o: in function `arch_cpu_idle':
   idle.c:(.text+0x2a8): undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kernel/vtime.o: in function `do_account_vtime':
   vtime.c:(.text+0x2d4): undefined reference to `__tsan_memset'
   s390x-linux-ld: vtime.c:(.text+0x4c8): undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kernel/syscall.o: in function `__se_sys_mmap2':
   syscall.c:(.text+0x40): undefined reference to `__tsan_memset'
   s390x-linux-ld: syscall.c:(.text+0x116): undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kernel/ptrace.o: in function `update_cr_regs':
   ptrace.c:(.text+0x3c): undefined reference to `__tsan_memset'
   s390x-linux-ld: ptrace.c:(.text+0x4e): undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kernel/ptrace.o: in function `ptrace_disable':
   ptrace.c:(.text+0x3de): undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kernel/ptrace.o:ptrace.c:(.text+0x458): more undefined references to `__tsan_memset' follow
   s390x-linux-ld: arch/s390/kernel/ptrace.o: in function `s390_regs_get':
   ptrace.c:(.text+0x1774): undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kernel/ptrace.o: in function `s390_fpregs_get':
   ptrace.c:(.text+0x1ea2): undefined reference to `__tsan_memcpy'
   s390x-linux-ld: ptrace.c:(.text+0x1f02): undefined reference to `__tsan_memcpy'
   s390x-linux-ld: ptrace.c:(.text+0x20a2): undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kernel/ptrace.o: in function `s390_fpregs_set':
   ptrace.c:(.text+0x2162): undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kernel/ptrace.o:ptrace.c:(.text+0x2356): more undefined references to `__tsan_memcpy' follow
   s390x-linux-ld: arch/s390/kernel/ptrace.o: in function `s390_gs_cb_set':
   ptrace.c:(.text+0x3574): undefined reference to `__tsan_memset'
   s390x-linux-ld: ptrace.c:(.text+0x35ce): undefined reference to `__tsan_memcpy'
   s390x-linux-ld: ptrace.c:(.text+0x3690): undefined reference to `__tsan_memcpy'
   s390x-linux-ld: ptrace.c:(.text+0x36e4): undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kernel/ptrace.o: in function `s390_gs_bc_get':
   ptrace.c:(.text+0x385e): undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kernel/ptrace.o: in function `s390_gs_bc_set':
   ptrace.c:(.text+0x39ba): undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kernel/ptrace.o:ptrace.c:(.text+0x3ae0): more undefined references to `__tsan_memcpy' follow
   s390x-linux-ld: arch/s390/kernel/ptrace.o: in function `s390_runtime_instr_set':
   ptrace.c:(.text+0x3b64): undefined reference to `__tsan_memset'
   s390x-linux-ld: ptrace.c:(.text+0x3bc4): undefined reference to `__tsan_memcpy'
   s390x-linux-ld: ptrace.c:(.text+0x3c80): undefined reference to `__tsan_memcpy'
   s390x-linux-ld: ptrace.c:(.text+0x3de2): undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kernel/signal.o: in function `__s390x_sys_sigreturn':
   signal.c:(.text+0xca): undefined reference to `__tsan_memcpy'
   s390x-linux-ld: signal.c:(.text+0x220): undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kernel/signal.o:signal.c:(.text+0x242): more undefined references to `__tsan_memcpy' follow
   s390x-linux-ld: arch/s390/kernel/signal.o: in function `__s390x_sys_sigreturn':
   signal.c:(.text+0x43a): undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kernel/signal.o: in function `__s390x_sys_rt_sigreturn':
   signal.c:(.text+0x87a): undefined reference to `__tsan_memcpy'
   s390x-linux-ld: signal.c:(.text+0x9d0): undefined reference to `__tsan_memcpy'
   s390x-linux-ld: signal.c:(.text+0x9f2): undefined reference to `__tsan_memcpy'
   s390x-linux-ld: signal.c:(.text+0xa3e): undefined reference to `__tsan_memcpy'
   s390x-linux-ld: signal.c:(.text+0xbea): undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kernel/signal.o: in function `arch_do_signal_or_restart':
   signal.c:(.text+0xf80): undefined reference to `__tsan_memset'
   s390x-linux-ld: signal.c:(.text+0x155a): undefined reference to `__tsan_memcpy'
   s390x-linux-ld: signal.c:(.text+0x15b2): undefined reference to `__tsan_memcpy'
   s390x-linux-ld: signal.c:(.text+0x15d6): undefined reference to `__tsan_memcpy'
   s390x-linux-ld: signal.c:(.text+0x161c): undefined reference to `__tsan_memcpy'
   s390x-linux-ld: signal.c:(.text+0x187c): undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kernel/signal.o:signal.c:(.text+0x18d6): more undefined references to `__tsan_memcpy' follow
   s390x-linux-ld: arch/s390/kernel/cpcmd.o: in function `__cpcmd':
   cpcmd.c:(.text+0xe2): undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kernel/cpcmd.o: in function `cpcmd':
   cpcmd.c:(.text+0x296): undefined reference to `__tsan_memcpy'
   s390x-linux-ld: cpcmd.c:(.text+0x2ea): undefined reference to `__tsan_memset'
   s390x-linux-ld: cpcmd.c:(.text+0x38e): undefined reference to `__tsan_memcpy'
   s390x-linux-ld: cpcmd.c:(.text+0x3b4): undefined reference to `__tsan_memcpy'
   s390x-linux-ld: cpcmd.c:(.text+0x412): undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kernel/nmi.o: in function `__s390_handle_mcck':
   nmi.c:(.text+0x1ee): undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kernel/debug.o: in function `debug_hex_ascii_format_fn':
   debug.c:(.text+0x194): undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kernel/debug.o: in function `debug_sprintf_format_fn':
   debug.c:(.text+0x4d6): undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kernel/debug.o: in function `debug_event_common':
   (.text+0x1b58): undefined reference to `__tsan_memcpy'
   s390x-linux-ld: (.text+0x1b88): undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kernel/debug.o: in function `debug_exception_common':
   (.text+0x2066): undefined reference to `__tsan_memcpy'
   s390x-linux-ld: (.text+0x2092): undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kernel/debug.o: in function `__debug_sprintf_event':
   (.text+0x23b8): undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kernel/debug.o: in function `__debug_sprintf_exception':
   (.text+0x2a18): undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kernel/debug.o: in function `debug_info_alloc':
   debug.c:(.text+0x34f4): undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kernel/debug.o: in function `debug_prolog_level_fn':
   debug.c:(.text+0x389e): undefined reference to `__tsan_memcpy'

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

View attachment "config" of type "text/plain" (61955 bytes)

Powered by blists - more mailing lists