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>] [day] [month] [year] [list]
Message-ID: <202209121707.XQjzk7pt-lkp@intel.com>
Date:   Mon, 12 Sep 2022 17:08:21 +0800
From:   kernel test robot <lkp@...el.com>
To:     Claudio Imbrenda <imbrenda@...ux.ibm.com>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org, Janosch Frank <frankja@...ux.ibm.com>
Subject: arch/s390/mm/gmap.c:2804: undefined reference to `__tsan_memcpy'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   80e78fcce86de0288793a0ef0f6acf37656ee4cf
commit: faa2f72cb3569256480c5540d242c84e99965160 KVM: s390: pv: leak the topmost page table when destroy fails
date:   9 weeks ago
config: s390-buildonly-randconfig-r003-20220912
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=faa2f72cb3569256480c5540d242c84e99965160
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout faa2f72cb3569256480c5540d242c84e99965160
        # 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: arch/s390/kernel/nospec-sysfs.o: in function `cpu_show_spectre_v1':
   arch/s390/kernel/nospec-sysfs.c:10: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kernel/nospec-sysfs.o: in function `cpu_show_spectre_v2':
   arch/s390/kernel/nospec-sysfs.c:22: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kernel/nospec-sysfs.c:17: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kernel/nospec-sysfs.c:21: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kernel/crash_dump.o: in function `elfcorehdr_alloc':
   arch/s390/kernel/crash_dump.c:515: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kernel/crash_dump.c:421: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kernel/crash_dump.c:323: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kernel/crash_dump.c:326: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kernel/crash_dump.c:365: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kernel/crash_dump.c:366: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kernel/crash_dump.c:367: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kernel/crash_dump.c:368: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kernel/crash_dump.c:373: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kernel/crash_dump.c:323: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kernel/crash_dump.c:326: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kernel/crash_dump.c:326: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kernel/crash_dump.c:326: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kernel/crash_dump.c:326: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kernel/crash_dump.c:326: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kernel/crash_dump.c:323: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kernel/crash_dump.c:326: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kernel/crash_dump.c:323: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kernel/crash_dump.c:323: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kernel/crash_dump.c:323: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kernel/crash_dump.o:arch/s390/kernel/crash_dump.c:323: more undefined references to `__tsan_memcpy' follow
   s390x-linux-ld: arch/s390/kernel/crash_dump.o: in function `elfcorehdr_alloc':
   arch/s390/kernel/crash_dump.c:596: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kernel/crash_dump.o: in function `elfcorehdr_read':
   arch/s390/kernel/crash_dump.c:697: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kernel/crash_dump.o: in function `elfcorehdr_read_notes':
   arch/s390/kernel/crash_dump.c:709: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kernel/crash_dump.o: in function `get_vmcoreinfo_old':
   arch/s390/kernel/crash_dump.c:432: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kernel/crash_dump.c:434: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kernel/crash_dump.c:438: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kernel/crash_dump.o: in function `save_area_add_regs':
   arch/s390/kernel/crash_dump.c:91: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kernel/crash_dump.c:92: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kernel/crash_dump.c:93: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kernel/crash_dump.c:94: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kernel/crash_dump.c:95: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kernel/crash_dump.o:arch/s390/kernel/crash_dump.c:114: more undefined references to `__tsan_memcpy' follow
   s390x-linux-ld: arch/s390/kernel/trace.o: in function `trace_event_raw_event_s390_diagnose':
   arch/s390/include/asm/trace/diag.h:23: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kernel/uv.o: in function `uv_destroy_owned_page':
   arch/s390/kernel/uv.c:106: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kernel/uv.o: in function `uv_convert_from_secure':
   arch/s390/kernel/uv.c:148: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kernel/uv.o: in function `uv_convert_owned_from_secure':
   arch/s390/kernel/uv.c:148: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kernel/uv.o: in function `gmap_convert_to_secure':
   arch/s390/kernel/uv.c:327: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kernel/uv.o:arch/s390/kernel/uv.c:86: more undefined references to `__tsan_memset' follow
   s390x-linux-ld: arch/s390/mm/extmem.o: in function `segment_type':
   arch/s390/mm/extmem.c:229: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/mm/extmem.o: in function `segment_load':
   arch/s390/mm/extmem.c:100: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/mm/extmem.c:229: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/mm/extmem.o: in function `segment_by_name':
   arch/s390/mm/extmem.c:112: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/mm/extmem.c:100: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/mm/extmem.o: in function `segment_save':
   arch/s390/mm/extmem.c:567: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/mm/extmem.c:568: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/mm/mmap.o: in function `arch_get_unmapped_area':
   arch/s390/mm/mmap.c:80: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/mm/mmap.o:arch/s390/mm/mmap.c:119: more undefined references to `__tsan_memset' follow
   s390x-linux-ld: arch/s390/mm/maccess.o: in function `s390_kernel_write':
   arch/s390/mm/maccess.c:65: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/mm/maccess.o: in function `memcpy_absolute':
   arch/s390/mm/maccess.c:164: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/mm/maccess.c:168: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/mm/maccess.o: in function `xlate_dev_mem_ptr':
   arch/s390/mm/maccess.c:164: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/mm/maccess.c:168: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/mm/pgalloc.o: in function `page_table_free':
   arch/s390/mm/pgalloc.c:317: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/mm/pgalloc.o: in function `__tlb_remove_table':
   arch/s390/mm/pgalloc.c:317: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/mm/extable.o: in function `fixup_exception':
   arch/s390/mm/extable.c:45: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/mm/cmm.o: in function `cmm_thread':
   arch/s390/mm/cmm.c:150: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/mm/cmm.o: in function `cmm_pages_handler':
   arch/s390/mm/cmm.c:250: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/mm/cmm.o:arch/s390/mm/cmm.c:270: more undefined references to `__tsan_memset' follow
   s390x-linux-ld: arch/s390/mm/cmm.o: in function `cmm_timeout_handler':
   arch/s390/mm/cmm.c:299: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/mm/cmm.c:312: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/mm/gmap.o: in function `gmap_put':
   arch/s390/mm/gmap.c:127: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/mm/gmap.c:128: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/mm/gmap.c:127: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/mm/gmap.c:128: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/mm/gmap.c:152: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/mm/gmap.o:arch/s390/mm/gmap.c:153: more undefined references to `__tsan_memset' follow
   s390x-linux-ld: arch/s390/mm/gmap.o: in function `s390_replace_asce':
>> arch/s390/mm/gmap.c:2804: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/../../virt/kvm/kvm_main.o: in function `trace_event_raw_event_kvm_userspace_exit':
   include/trace/events/kvm.h:22: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/../../virt/kvm/kvm_main.o: in function `trace_event_raw_event_kvm_vcpu_wakeup':
   include/trace/events/kvm.h:43: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/../../virt/kvm/kvm_main.o: in function `trace_event_raw_event_kvm_set_irq':
   include/trace/events/kvm.h:66: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/../../virt/kvm/kvm_main.o: in function `trace_event_raw_event_kvm_ack_irq':
   include/trace/events/kvm.h:183: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/../../virt/kvm/kvm_main.o: in function `trace_event_raw_event_kvm_mmio':
   include/trace/events/kvm.h:213: undefined reference to `__tsan_memset'
>> s390x-linux-ld: include/trace/events/kvm.h:213: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/../../virt/kvm/kvm_main.o: in function `trace_event_raw_event_kvm_fpu':
   include/trace/events/kvm.h:243: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/../../virt/kvm/kvm_main.o: in function `trace_event_raw_event_kvm_async_get_page_class':
   include/trace/events/kvm.h:259: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/../../virt/kvm/kvm_main.o: in function `trace_event_raw_event_kvm_async_pf_nopresent_ready':
   include/trace/events/kvm.h:292: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/../../virt/kvm/kvm_main.o: in function `trace_event_raw_event_kvm_async_pf_completed':
   include/trace/events/kvm.h:326: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/../../virt/kvm/kvm_main.o: in function `trace_event_raw_event_kvm_halt_poll_ns':
   include/trace/events/kvm.h:347: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/../../virt/kvm/kvm_main.o:include/trace/events/kvm.h:378: more undefined references to `__tsan_memset' follow
   s390x-linux-ld: arch/s390/../../virt/kvm/kvm_main.o: in function `kvm_io_bus_register_dev':
   arch/s390/kvm/../../../virt/kvm/kvm_main.c:5290: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kvm/../../../virt/kvm/kvm_main.c:5293: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/../../virt/kvm/kvm_main.o: in function `kvm_io_bus_unregister_dev':
   arch/s390/kvm/../../../virt/kvm/kvm_main.c:5326: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kvm/../../../virt/kvm/kvm_main.c:5328: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/../../virt/kvm/kvm_main.o: in function `kvm_init':
   arch/s390/kvm/../../../virt/kvm/kvm_main.c:5800: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/../../virt/kvm/kvm_main.o: in function `kvm_vm_create_worker_thread':
   arch/s390/kvm/../../../virt/kvm/kvm_main.c:6011: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/../../virt/kvm/kvm_main.o: in function `kvm_replace_memslot':
   include/linux/list.h:841: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/../../virt/kvm/kvm_main.o: in function `kvm_replace_memslot':
   include/linux/rbtree.h:63: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/../../virt/kvm/kvm_main.o: in function `kvm_device_ioctl':
   arch/s390/kvm/../../../virt/kvm/kvm_main.c:4267: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/../../virt/kvm/kvm_main.o:arch/s390/kvm/../../../virt/kvm/kvm_main.c:4267: more undefined references to `__tsan_memset' follow
   s390x-linux-ld: arch/s390/../../virt/kvm/eventfd.o: in function `kvm_irqfd':
   arch/s390/kvm/../../../virt/kvm/eventfd.c:261: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/../../virt/kvm/eventfd.o: in function `kvm_irq_routing_update':
   arch/s390/kvm/../../../virt/kvm/eventfd.c:252: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kvm/../../../virt/kvm/eventfd.c:261: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/../../virt/kvm/eventfd.o: in function `irqfd_wakeup':
   arch/s390/kvm/../../../virt/kvm/eventfd.c:191: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kvm/../../../virt/kvm/eventfd.c:204: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/../../virt/kvm/irqchip.o: in function `kvm_irq_map_gsi':
   arch/s390/kvm/../../../virt/kvm/irqchip.c:33: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kvm/../../../virt/kvm/irqchip.c:33: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kvm/../../../virt/kvm/irqchip.c:33: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kvm/../../../virt/kvm/irqchip.c:33: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/../../virt/kvm/irqchip.o: in function `kvm_send_userspace_msi':
   arch/s390/kvm/../../../virt/kvm/irqchip.c:51: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/../../virt/kvm/irqchip.o: in function `kvm_set_irq':
   arch/s390/kvm/../../../virt/kvm/irqchip.c:74: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kvm/../../../virt/kvm/irqchip.c:33: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kvm/../../../virt/kvm/irqchip.c:33: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kvm/../../../virt/kvm/irqchip.c:33: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kvm/../../../virt/kvm/irqchip.c:33: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kvm/kvm-s390.o: in function `trace_event_raw_event_kvm_s390_skey_related_inst':
   arch/s390/kvm/./trace.h:34: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kvm/kvm-s390.o: in function `trace_event_raw_event_kvm_s390_major_guest_pfault':
   arch/s390/kvm/./trace.h:48: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kvm/kvm-s390.o: in function `trace_event_raw_event_kvm_s390_pfault_init':
   arch/s390/kvm/./trace.h:62: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kvm/kvm-s390.o: in function `trace_event_raw_event_kvm_s390_pfault_done':
   arch/s390/kvm/./trace.h:78: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kvm/kvm-s390.o: in function `trace_event_raw_event_kvm_s390_sie_enter':
   arch/s390/kvm/./trace.h:97: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kvm/kvm-s390.o:arch/s390/kvm/./trace.h:114: more undefined references to `__tsan_memset' follow
   s390x-linux-ld: arch/s390/kvm/kvm-s390.o: in function `kvm_arch_vm_ioctl':
   arch/s390/kvm/kvm-s390.c:1522: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kvm/kvm-s390.c:1264: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kvm/kvm-s390.c:1194: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kvm/kvm-s390.c:1392: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kvm/kvm-s390.c:1550: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kvm/kvm-s390.c:1552: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kvm/kvm-s390.o: in function `kvm_arch_vm_ioctl':
   include/linux/bitmap.h:254: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: include/linux/bitmap.h:254: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kvm/kvm-s390.o: in function `kvm_arch_vm_ioctl':
   arch/s390/kvm/kvm-s390.c:1134: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kvm/kvm-s390.c:1226: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kvm/kvm-s390.c:(.text+0x11150): undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kvm/kvm-s390.o: in function `kvm_arch_vm_ioctl':
   include/linux/bitmap.h:254: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kvm/kvm-s390.o: in function `kvm_arch_vm_ioctl':
   arch/s390/kvm/kvm-s390.c:1019: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kvm/kvm-s390.c:1029: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kvm/kvm-s390.c:1372: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kvm/kvm-s390.o: in function `kvm_arch_vm_ioctl':
   include/linux/uaccess.h:122: undefined reference to `__tsan_memset'
   s390x-linux-ld: include/linux/uaccess.h:122: undefined reference to `__tsan_memset'
   s390x-linux-ld: include/linux/uaccess.h:122: undefined reference to `__tsan_memset'
   s390x-linux-ld: include/linux/uaccess.h:122: undefined reference to `__tsan_memset'
   s390x-linux-ld: include/linux/uaccess.h:122: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kvm/kvm-s390.o:include/linux/uaccess.h:122: more undefined references to `__tsan_memset' follow
   s390x-linux-ld: arch/s390/kvm/kvm-s390.o: in function `kvm_s390_handle_pv':
   arch/s390/kvm/kvm-s390.c:2590: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kvm/kvm-s390.c:2313: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kvm/kvm-s390.o: in function `kvm_s390_handle_pv':
   include/linux/uaccess.h:122: undefined reference to `__tsan_memset'
   s390x-linux-ld: include/linux/uaccess.h:122: undefined reference to `__tsan_memset'
   s390x-linux-ld: include/linux/uaccess.h:122: undefined reference to `__tsan_memset'
   s390x-linux-ld: include/linux/uaccess.h:122: undefined reference to `__tsan_memset'
   s390x-linux-ld: include/linux/uaccess.h:122: undefined reference to `__tsan_memset'
   s390x-linux-ld: arch/s390/kvm/kvm-s390.o: in function `kvm_arch_crypto_set_masks':
   arch/s390/kvm/kvm-s390.c:2907: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kvm/kvm-s390.c:2910: undefined reference to `__tsan_memcpy'
   s390x-linux-ld: arch/s390/kvm/kvm-s390.c:2913: undefined reference to `__tsan_memcpy'


vim +2804 arch/s390/mm/gmap.c

  2781	
  2782	/**
  2783	 * s390_replace_asce - Try to replace the current ASCE of a gmap with a copy
  2784	 * @gmap: the gmap whose ASCE needs to be replaced
  2785	 *
  2786	 * If the allocation of the new top level page table fails, the ASCE is not
  2787	 * replaced.
  2788	 * In any case, the old ASCE is always removed from the gmap CRST list.
  2789	 * Therefore the caller has to make sure to save a pointer to it
  2790	 * beforehand, unless a leak is actually intended.
  2791	 */
  2792	int s390_replace_asce(struct gmap *gmap)
  2793	{
  2794		unsigned long asce;
  2795		struct page *page;
  2796		void *table;
  2797	
  2798		s390_unlist_old_asce(gmap);
  2799	
  2800		page = alloc_pages(GFP_KERNEL_ACCOUNT, CRST_ALLOC_ORDER);
  2801		if (!page)
  2802			return -ENOMEM;
  2803		table = page_to_virt(page);
> 2804		memcpy(table, gmap->table, 1UL << (CRST_ALLOC_ORDER + PAGE_SHIFT));

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ