Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1884339rwb; Fri, 2 Dec 2022 02:28:33 -0800 (PST) X-Google-Smtp-Source: AA0mqf4fCZVv7qvjbRXDSZ5QLFptAAgyqF8/vlSf791hTfpKpjPMPj8/pMiQegjQF2peDF/6wD91 X-Received: by 2002:a05:6402:2b8a:b0:46b:2979:7397 with SMTP id fj10-20020a0564022b8a00b0046b29797397mr21847953edb.332.1669976912785; Fri, 02 Dec 2022 02:28:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669976912; cv=none; d=google.com; s=arc-20160816; b=CnDDBIQfR4GvVH1XF+eD+ubCFYUYuacrbMuVAPN2hIRiZuEZR3zC5yZudFetsgySx1 bA7hBJEJVjP556Q2wtjp+YrFV3h+T2GtYn5jQwA6ROtH+nRGXPIKsgGQ827yXXY12h+T YJJTJMZVpfQ1bODbHKYJH0yRlc+X2SQzUfLvkGh+tvJzjjDDtPkEFsxDp67usbgXc2UM rAgNSPvrvSu0Nyepz7nHjIgkxI4ZnYf8gsbFyyVss9HqPlqJ+DvgI0M8YM+hpHnsDXYK RhAQ8sEfy2YMipVfJ9jlRMPcCMpXCfKwcRZxakArOOVTvqW5aM7ssZfMcbTQN6cFwBIP pt4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=2slbUiJmXoRmpNuRxOv1K083wWFnheMGIwwKztKIFzE=; b=rFLvKmMNM0kw8+NHl+nO93j2ibbEZ1tLHbL4Y2oC8WDnL/+oxpt6juRc5S5m+F55VP CNlKfrmykFQqOhgg51dA1mT1q993ocE5tv4WVy3lR1F1wXWAWIjlCibQGJ1GUaPfm+0Z WgAD/qgQeaGaTWKgss8YDRlCeZKFUiRgsa20BB+mUxNrCT22DMJt1mE3UMLGVW2+6l4G 5L8OwpmXom9uusUisBf2MBmEU9wqRUKAb5yr+jje70i+l2QVFb0BWlXQ/bPcJE52nUxF x2RvMMWeK79iQxBXAiKIKXgTDbg67+giY9VVCQeDOcYiFqaaCX3pyKjAvd14GDkAr4l0 jg6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="tCQ5/Xmg"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e10-20020a17090658ca00b007be4dd9ef7csi6380156ejs.402.2022.12.02.02.28.11; Fri, 02 Dec 2022 02:28:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="tCQ5/Xmg"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232753AbiLBJnF (ORCPT + 83 others); Fri, 2 Dec 2022 04:43:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232598AbiLBJnB (ORCPT ); Fri, 2 Dec 2022 04:43:01 -0500 Received: from mail-yw1-x112f.google.com (mail-yw1-x112f.google.com [IPv6:2607:f8b0:4864:20::112f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3082FA659F for ; Fri, 2 Dec 2022 01:43:00 -0800 (PST) Received: by mail-yw1-x112f.google.com with SMTP id 00721157ae682-3b56782b3f6so43017347b3.13 for ; Fri, 02 Dec 2022 01:43:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=2slbUiJmXoRmpNuRxOv1K083wWFnheMGIwwKztKIFzE=; b=tCQ5/XmgqkcfC40O80yasOYCKHkzhwgepZgGGTeZs9YXcUBntp9tjV3tXTdTKYhQjK GcHlOU0T2s/Va9He+t2YF8cAPY30g0D1vPR+g/ttoaY/k7op9dh3OTqtBVAdciWgI29w eyph+Px2wuhBix0loKUPb9CiHK/FkTD8P6/POuCMoWPfPSwGPUKLrBNM4q8hV+oAJ3xg pKure5WZ6hdoHpma0E9pQm0LusvTP+XGfqYzxX1548PbZvSL0SDYXxJxF+f4lpJSNOLd 7a5GMX4XWeiIDy9MHRlTNBnR/pCZHoE4fzYmdlul6+h05Zw2DZ9Cjk3Cef+NfcTos9Bc CuFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2slbUiJmXoRmpNuRxOv1K083wWFnheMGIwwKztKIFzE=; b=oyIR+ScEdkdaa46+Ro1o1WS5hLf0VnDziEIG/FocPb+D3baVaNMHlYMjGQ2i+tBftv etXWq4U+2fDA4ZhBrqlKLSNATKsZ+uKRCqebtA1y65YGAdNlKqKpHOiF2MqTkZrjf6FA TFtm/LsZ67JGZVIPnxW4V4VqSfY+gJO1xUkzZ0FZe1AjvUdM0slI6wNWQ/hwEWRJHvHN xNCGs2aiVQiSfIWplnCgfAj9sICLGtvANC7Kt39+gcw6DZ+4Fz5grMAnSdZvfGPyBmY7 ZoP/POcAWlwdzgzFYpuXZXeTZ2HZJAnKLIFOUIENXt/d5SkhCMXAzRLrcU4ROTklAVnM U+tQ== X-Gm-Message-State: ANoB5pnet8rfpb6IyJYl4qjqP7bq3rjgo27Frh13CTFe+1HUSqyUvGMQ 1hxxlMkIC8NF/EDcwSCoI6lCXZrVeePCWGPKGNVe6A== X-Received: by 2002:a81:1915:0:b0:3bf:9e45:1139 with SMTP id 21-20020a811915000000b003bf9e451139mr28525181ywz.267.1669974179263; Fri, 02 Dec 2022 01:42:59 -0800 (PST) MIME-Version: 1.0 References: <202212021713.p3N3pHkV-lkp@intel.com> In-Reply-To: <202212021713.p3N3pHkV-lkp@intel.com> From: Marco Elver Date: Fri, 2 Dec 2022 10:42:23 +0100 Message-ID: Subject: Re: ld.lld: error: undefined symbol: __tsan_memset To: kernel test robot Cc: Kefeng Wang , llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Catalin Marinas , "Paul E. McKenney" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2 Dec 2022 at 10:32, kernel test robot wrote: > > Hi Kefeng, > > FYI, the error/warning still remains. > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > head: a4412fdd49dc011bcc2c0d81ac4cab7457092650 > commit: dd03762ab608e058c8f390ad9cf667e490089796 arm64: Enable KCSAN > date: 12 months ago > config: arm64-randconfig-r006-20221201 > compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 6e4cea55f0d1104408b26ac574566a0e4de48036) > 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 arm64 cross compiling tool for clang build > # apt-get install binutils-aarch64-linux-gnu > # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=dd03762ab608e058c8f390ad9cf667e490089796 > git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > git fetch --no-tags linus master > git checkout dd03762ab608e058c8f390ad9cf667e490089796 > # 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=arm64 SHELL=/bin/bash > > If you fix the issue, kindly add following tag where applicable > | Reported-by: kernel test robot > > All errors (new ones prefixed by >>): > > >> ld.lld: error: undefined symbol: __tsan_memset > >>> referenced by main.c > >>> main.o:(init_setup) in archive init/built-in.a > >>> referenced by main.c > >>> main.o:(rdinit_setup) in archive init/built-in.a > >>> referenced by main.c > >>> main.o:(do_one_initcall) in archive init/built-in.a > >>> referenced 8519 more times > -- > >> ld.lld: error: undefined symbol: __tsan_memcpy > >>> referenced by main.c > >>> main.o:(do_one_initcall) in archive init/built-in.a > >>> referenced by initramfs.c > >>> initramfs.o:(panic_show_mem) in archive init/built-in.a > >>> referenced by initramfs.c > >>> initramfs.o:(do_collect) in archive init/built-in.a > >>> referenced 3922 more times > -- > >> ld.lld: error: undefined symbol: __tsan_memmove > >>> referenced by main.c > >>> main.o:(repair_env_string) in archive init/built-in.a > >>> referenced by range.c > >>> range.o:(add_range_with_merge) in archive kernel/built-in.a > >>> referenced by core.c > >>> bpf/core.o:(bpf_patch_insn_single) in archive kernel/built-in.a > >>> referenced 88 more times The fix for this has been in -next (-rcu) for a while. Once it hits mainline, it should also reach stable kernels since I attached Cc: stable tags to the patches. Given Clang 16 isn't even released yet, I think this is fair and does not require urgency at this point. Thanks, -- Marco