Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp372536ybl; Tue, 28 Jan 2020 04:54:07 -0800 (PST) X-Google-Smtp-Source: APXvYqxMtk2kB8qEfcrKtc6f8/al2HdrGWezLBhBaZNi6KyYr6tJwbrNQdLgH2id3vgr+UutItgu X-Received: by 2002:a9d:7652:: with SMTP id o18mr3082599otl.227.1580216047520; Tue, 28 Jan 2020 04:54:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580216047; cv=none; d=google.com; s=arc-20160816; b=ZoEVLcbNSNVU/FDinupvtl7/nCST1zui105wx1QQ4IMYqzhgypNv1rxY5v9hoycsmg mDatzLU0qHsZkNHz7JUUyXklp2O2YIWk8ywkeIcpRSiYMJD4qrnCRwsM6Y+Tiego0kZL md+hhQkIUHdWCVNfSYcBK4Wv2ol/4r6qDmeiInZ9qp+d9yRCGrm5W9yKQXy8OLiugP/Y ot25BWTNL1gh2/KwsOb6hfpn4HXEe2LhxmeakggSzPry6bIhV5yxi4h8GtbaKBn32VXs 5kki1DMLFSJOt7c1QcULjnuSVirUPseYXz4GJDNR2+ZqEqaay2pn8T6V1tF55MdQQxnH wNvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:in-reply-to:cc:references:message-id :date:subject:mime-version:from:content-transfer-encoding :dkim-signature; bh=9DB/J78WdEiWma3kq2rh8LijmEsmMv+++6cwRIocUY4=; b=SAhQZC+DpAUePL7ahQiHmU3Tz+MM2LlThwUtwymUSERTatiFn9vTtR80/xrdz3/P2A AUxJ7mTa2ixnU38+3Ecml4xpNScn+GK67jvHagunCdK/nDiGZGmpdWTzMoBHpYHPy7Qu 13F3zu2gp31pPLbtRBHmqMrUmurUxGT/uvLqb6Cz4ncOnJ1W2c9VHOg+6ejijc7x/Xcw gmlN3x6LhhUvHLikJ9teWjz3FL4kulWKJ5PnFWiEMLg49rzQacSOXIk5Q1j/p2ff86PN iulSO0cbLO694NaneJLINCNWuuqwYo1DMPzLyMqMNTEwIXXoB0c1ubSTHfp9WzorraJF Yhdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=Z2sdRUs8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e14si8990505oti.33.2020.01.28.04.53.55; Tue, 28 Jan 2020 04:54:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=Z2sdRUs8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726072AbgA1MxD (ORCPT + 99 others); Tue, 28 Jan 2020 07:53:03 -0500 Received: from mail-qv1-f68.google.com ([209.85.219.68]:37332 "EHLO mail-qv1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725283AbgA1MxD (ORCPT ); Tue, 28 Jan 2020 07:53:03 -0500 Received: by mail-qv1-f68.google.com with SMTP id m5so3035372qvv.4 for ; Tue, 28 Jan 2020 04:53:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lca.pw; s=google; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=9DB/J78WdEiWma3kq2rh8LijmEsmMv+++6cwRIocUY4=; b=Z2sdRUs8Buc7E9wpla0h4AStuy50Jk4R5HebWGCJIzXTd1rq7t8xOB5VxRIMXax+G7 icOLYCCj5Dq9wAGFJCSXu95kasvVSrJjJYyF6ZXxMDnylQpHbl+5rfWBArQDYbXZEAyA Vmt9yVBzGLGlNWL+7x9tfhRSo8+/ZwoH+0TZKFSBYZ4zLwVnN63e4s9nZG3uZbTY1XHT mb3P60MOjrS0xRETGaEc+mzS/2AdFL/LMJJYlP/BRcCJW4yWlv6bswn/IjA9WgIozy2k uR4QUF5gp9B23nXO7BgpGTpfX+9EfjsW4vcwzvX9v6W9uETalGbqjfcfzvTOuqwpD6/W 2DsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=9DB/J78WdEiWma3kq2rh8LijmEsmMv+++6cwRIocUY4=; b=ZNIggmmVll6l7UvRXRd3IDudY2jaRQEKtOTtxQS9wgRP2cprRXIO5z1X9UCjG+2/1B AHoBtK7g6pca8KFbjCLE6IPJWcIL7MGA0iYBtIVkSt3wvBkcIxtqpVn9kt3JBgdc7RZB TvdeQMMMfo0gSPSFl+asKFVVb4IVlgmpOe8qO+IUEprvfiCJoUawcBacWTIPy9+C7swR yH2yinp2el4ofsNo/NWJisqvY2c0ZJlH24O2KN+d6t7DExVpI1EuacF0oaWdSoz7yMu4 cOWu5sH19DxmRZslmLWG43J/tydFeyuoKGnxS4FZUoC+2h0M2kwdE71KmXtG5XM6t4uJ YfVg== X-Gm-Message-State: APjAAAWBvP4RwA3eZjbWbNZ3ZtZ3gXhfAqiMQl1iREY0qCR30jM9jvSY IPndFedwX8VpjB0G42oAVyJhgg== X-Received: by 2002:a05:6214:965:: with SMTP id do5mr21816222qvb.202.1580215982182; Tue, 28 Jan 2020 04:53:02 -0800 (PST) Received: from [192.168.1.183] (pool-71-184-117-43.bstnma.fios.verizon.net. [71.184.117.43]) by smtp.gmail.com with ESMTPSA id n55sm12637616qta.91.2020.01.28.04.53.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Jan 2020 04:53:01 -0800 (PST) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Qian Cai Mime-Version: 1.0 (1.0) Subject: Re: [PATCH] locking/osq_lock: fix a data race in osq_wait_next Date: Tue, 28 Jan 2020 07:53:00 -0500 Message-Id: References: Cc: Peter Zijlstra , Will Deacon , Ingo Molnar , Linux Kernel Mailing List , "paul E. McKenney" , kasan-dev In-Reply-To: To: Marco Elver X-Mailer: iPhone Mail (17C54) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Jan 28, 2020, at 6:46 AM, Marco Elver wrote: >=20 > Qian: firstly I suggest you try > CONFIG_KCSAN_REPORT_ONCE_IN_MS=3D1000000000 as mentioned before so your > system doesn't get spammed, considering you do not use the default > config but want to use all debugging tools at once which seems to > trigger certain data races more than usual. Yes, I had that. There are still many reports that I plan to look at them on= e by one. It takes so much time that cause systemd storage lookup timeouts a= nd I needed to manually get out of the emergency shell. >=20 > Secondly, what are your expectations? If you expect the situation to > be perfect tomorrow, you'll be disappointed. This is inherent, given > the problem we face (safe concurrency). Consider the various parts to > this story: concurrent kernel code, the LKMM, people's preferences and > opinions, and KCSAN (which is late to the party). All of them are > still evolving, hopefully together. At least that's my expectation. I=E2=80=99ll try to reduce splats as many as possible by any data_race(), di= sable the whole file or actually fix it. Any resolved splat will hurt the ab= ility to find the real data races at some degrees. >=20 > What to do about osq_lock here? If people agree that no further > annotations are wanted, and the reasoning above concludes there are no > bugs, we can blacklist the file. That would, however, miss new data > races in future. This is a question to locking maintainers. data_race() macro sounds reasonab= le to me, but blacklisted the file is still better than leaving it as-is.=