Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp599840pxu; Fri, 4 Dec 2020 10:37:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJzJl3W0zolO3l9zEOM4zoccCCxqc18Mr6kgHGXsIXll3mtyscBBYdDw0EpxyC+mdA2J8Dsd X-Received: by 2002:a17:906:1481:: with SMTP id x1mr8384923ejc.186.1607107045139; Fri, 04 Dec 2020 10:37:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607107045; cv=none; d=google.com; s=arc-20160816; b=rzJqF4LyvWF9gC0krV/8vW7tnLQYQs23V6+Z8ulnrUql6wBRTNx2B57Vq0yrgO1bIR GTlYcMWnH8S2fKuwyhxq9hwcG4JrkcG7yZ3y/eKaM20E67eNSG9oVxe9PswSsrfE4MUI ru3qmtudqR82twCfB8aqoc/0DctvXAd6HLjYaUzXiuFWpR7e8JtuvsZ4Qw58YGn5lthN A7nvsADxlpbTGSYrEkBTu5OVtu5OFf2VzWXpcPr5G/FRp4Jlvi1L590P+qAw1jVDsvP9 r6aOymQm64Tg3nvlTUKjDdmXrEFs/9oWzN9OIt7gcmJQJB7BhXqhUl/4MooKH7Mjl71E xqNA== 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:mime-version :dkim-signature; bh=VazwCTbw4qFEcnDS99kE7+UPTpKgFLvwXrTcJ/OGLV8=; b=0LasGQp96PsvBCfdgs+3kh3nKQmijk0AwQBXrWbmVGDJWdWNRaZI1lss4tIAkgZKb1 +iW7p8i4K0n4s57fHgYLZtSHplh4sYC+uWiaPDGAQIPe1tutkV7EwxNazmwQctOs/5A2 LoXe+rvApiSBy2F1fu4/IOu/D0QDhNI2auNxKVFTcNgIisviV32GIf23K3NaPi/ErpGR K5OAfUuoXc4UmCLz9YORmjKeQ/p6wM7SeTmS4B7/Gzup/cGeya1dkdlxwwhyz1TLKXJb OcgqRJUWJs1owvOj8wkIuGphJcqEjGigLXhLzAK0tagVyjrZkH5tJtmWaWMisxVxPAuD Vwvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UoAtycuW; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w10si3467920edj.71.2020.12.04.10.37.01; Fri, 04 Dec 2020 10:37:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UoAtycuW; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728636AbgLDSgC (ORCPT + 99 others); Fri, 4 Dec 2020 13:36:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728528AbgLDSgB (ORCPT ); Fri, 4 Dec 2020 13:36:01 -0500 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED7D3C061A4F for ; Fri, 4 Dec 2020 10:35:14 -0800 (PST) Received: by mail-ed1-x536.google.com with SMTP id dk8so3975681edb.1 for ; Fri, 04 Dec 2020 10:35:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:from:date:message-id:subject:to:cc; bh=VazwCTbw4qFEcnDS99kE7+UPTpKgFLvwXrTcJ/OGLV8=; b=UoAtycuWbYXPQuHZa93zSkhDkJSIw0b5/ox+c+olIK8DcmAbppcTQ0S5nqiX68rqak O0OcRXvbaYs59/0lhZyyDXuBE89LpLU/4sCiBqYoY+7kZml0b8FecNEzYnsNUW08Ihz5 QF7SSKQPyyDDQa2ClfTAFtqizjUB+y8xrZebWbkw7H4Qp0JbSS6Bojpr/Kkqn2+Oksnw wT3LhcfoTMGVZj4tJFFM5mxJMYg2KBifKrCXcs7TzgB+i0DrF+DvPoqZuF/7IlEChaWv 6gSm3TUC/frYOd6VZB2UEePpomfz08LS4mRk9rLZ8P3hSyX0ElAYgJiZ6EcXcffOOCH/ GBxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=VazwCTbw4qFEcnDS99kE7+UPTpKgFLvwXrTcJ/OGLV8=; b=Pe8wcG8FbdnRk/jsY6A02D18A2T201FypaIr8YiIyy7ke9DPISVF6NQKlvf/WoMYqs T699a59k/tIuOow8d7+OSIV8K2GEl/yi/4rVe5YOEF0yPkqZ3L2MKj6tV7szncDEm/zw Br0gXJPCG20/XnU3hp5qHecNyeJEGhw/nsoMeORiuubBPBzZkGYHt9OywM2A6Rz4h7wB utlHVq4/L3EBZtBZyv+xz2W+SrX9sdGOFqPtNleHLjP1YvvAbpv2boAas7QWGIIDEfz9 2RMEERlnKJwGLzZmaRZ3GyBxRA//3hEUWeUvCT8HZKw4gDm0HKwmuXvdG+6zB2Xp+SXw BN9w== X-Gm-Message-State: AOAM530i9xXr7e+HBbFSnvmA9QAavqayc89WHhS1iihfgmJdPm5f/11p pRPt2cdfYwbfchUEfejjL1IRinUk9uMLXglbpRCXBQ== X-Received: by 2002:aa7:d74d:: with SMTP id a13mr5352244eds.78.1607106913506; Fri, 04 Dec 2020 10:35:13 -0800 (PST) MIME-Version: 1.0 From: Naresh Kamboju Date: Sat, 5 Dec 2020 00:05:02 +0530 Message-ID: Subject: BUG: KCSAN: data-race in __rpc_do_wake_up_task_on_wq / xprt_request_transmit To: kasan-dev , open list , Netdev , linux-nfs@vger.kernel.org, lkft-triage@lists.linaro.org, rcu@vger.kernel.org Cc: Jakub Kicinski , "David S. Miller" , chuck.lever@oracle.com, bfields@fieldses.org, anna.schumaker@netapp.com, trond.myklebust@hammerspace.com, "Paul E. McKenney" , Marco Elver , Peter Zijlstra , Ingo Molnar Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org LKFT started testing KCSAN enabled kernel from the linux next tree. Here we have found BUG: KCSAN: data-race in __rpc_do_wake_up_task_on_wq / xprt_request_transmit This report is from an x86_64 machine clang-11 linux next 20201201. Since we are running for the first time we do not call this regression. [ 17.316725] BUG: KCSAN: data-race in __rpc_do_wake_up_task_on_wq / xprt_request_transmit [ 17.324821] [ 17.326322] write to 0xffff90a801de6a9c of 2 bytes by task 142 on cpu 1: [ 17.333022] __rpc_do_wake_up_task_on_wq+0x295/0x350 [ 17.337987] rpc_wake_up_queued_task+0x99/0xc0 [ 17.342432] xprt_complete_rqst+0xef/0x100 [ 17.346533] xs_read_stream+0x9c6/0xc40 [ 17.350370] xs_stream_data_receive+0x60/0x130 [ 17.354819] xs_stream_data_receive_workfn+0x5c/0x90 [ 17.359784] process_one_work+0x4a6/0x830 [ 17.363795] worker_thread+0x5f7/0xaa0 [ 17.367548] kthread+0x20b/0x220 [ 17.370780] ret_from_fork+0x22/0x30 [ 17.374359] [ 17.375858] read to 0xffff90a801de6a9c of 2 bytes by task 249 on cpu 3: [ 17.382473] xprt_request_transmit+0x389/0x7a0 [ 17.386919] xprt_transmit+0xfe/0x250 [ 17.390583] call_transmit+0x10d/0x120 [ 17.394337] __rpc_execute+0x12d/0x700 [ 17.398089] rpc_async_schedule+0x59/0x90 [ 17.402100] process_one_work+0x4a6/0x830 [ 17.406114] worker_thread+0x5f7/0xaa0 [ 17.409868] kthread+0x20b/0x220 [ 17.413099] ret_from_fork+0x22/0x30 [ 17.416675] [ 17.418167] Reported by Kernel Concurrency Sanitizer on: [ 17.423475] CPU: 3 PID: 249 Comm: kworker/u8:1 Not tainted 5.10.0-rc6-next-20201201 #2 [ 17.431385] Hardware name: Supermicro SYS-5019S-ML/X11SSH-F, BIOS 2.2 05/23/2018 [ 17.438778] Workqueue: rpciod rpc_async_schedule metadata: git_repo: https://gitlab.com/aroxell/lkft-linux-next target_arch: x86 toolchain: clang-11 git_describe: next-20201201 download_url: https://builds.tuxbuild.com/1l8eiWgGMi6W4aDobjAAlOleFVl/ Full test log link, https://lkft.validation.linaro.org/scheduler/job/2002643#L1005 -- Linaro LKFT https://lkft.linaro.org