Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4021876pxj; Tue, 15 Jun 2021 13:42:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwM7vD5v2sVtCEtTQzo1xsTOz4G8oKBPG/zy5aUHDtIy2qcAMEn6k1NNCuBwueyMVFNsw18 X-Received: by 2002:a05:6602:2c4e:: with SMTP id x14mr877377iov.194.1623789727033; Tue, 15 Jun 2021 13:42:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623789727; cv=none; d=google.com; s=arc-20160816; b=055iszEwzgF3uPi4+NN6zgqjgdsVtsTM8wJcs7il3cShSmjkwaoxLt4gLUz3jav2zK 108hZQ7FbMFvwBA0L+bNbTX8JXYC84w+JyooLNszy3BbaVzOjjaLtOok5RotCWj9m49r y88B2icrF9mYha9eyQtM/Izro3rj5OYji/08SGigQZQQJUdmuphtOD25n/YYdof4nwDB 8FvV3krmHFL/AJgb/9dpQ2xWaQne8CQIN5r8jHyX6sS+alXHotpx2Fm9OyJ1AW4xQjBI aKlJBopgcm9FKnnHYm4Q/MenU9UvnXOOvtLJj2E0EEQslqeWq+gOpFGVgHKaqaoZsisJ kRjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=akPzNFg3+HtDpFicCJu6W96zPyCxrD6YiDmfcSEaIWk=; b=yXtWVsBVoKn9XaO72nU3hkVFUkVr6W6xyqCesKzP/tfRacV4ec0A+cj0Ert5Ww6eEM MeWW4VcVROWEcihAR+wJbdu0xO/XDybGgTPl3VevPQ+UznlJwK394/NMez1/0eZYtBhe zl7/VJuLTcHQocP3kH+q+O8rjh6C7dFNwFE/cytFkBJ0iLtvOR9TsPdupSnSSlBGIyfR nWoR9pbTI3ytKFSE91aQBI6gDPTSwZSW2A8rhilwupAC4XN64IxN6SUwn2PExJHDdPAJ iWjeG/QNjIQ1NtlpjFttTlwyE388xS9ViT/SDZ0VXVdRu2kO5EEUvnizxjtcXSyCEtHm DVHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dR8pjiWu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q49si142295jav.91.2021.06.15.13.41.40; Tue, 15 Jun 2021 13:42:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@kernel.org header.s=k20201202 header.b=dR8pjiWu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230162AbhFOUl4 (ORCPT + 99 others); Tue, 15 Jun 2021 16:41:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:44290 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229898AbhFOUl4 (ORCPT ); Tue, 15 Jun 2021 16:41:56 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2D9A7611C0; Tue, 15 Jun 2021 20:39:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623789591; bh=6+oMK7wCi10jdQ9Pp1G7b0FDyy4ILCTJVB7zAEjdXsw=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=dR8pjiWuDoDqOmvOvHj7Lwj2jKs6IKEcw078eWGs3AQs2GR4DHlnwzmuwbN5xYDRA SIustUX6eCQcd8Xto3LFXibZTjzAr5Qr+jfgI9fva+QiY4ESHqvNE6clT2/O0sFjgG nmTJLszr0U4qCgjfFe8hBuwIP2tqqdbVTL2F6tm1Cp2Ox3iOXXiEsymxz4aDGurLOI eCn5Q6khmLekWnluqBClw/gSP6y6LK9/ASsWD6ULDvuMyzy/QErUQ1zIp6sAmp8+u4 Qkx6lfGH/xJE7tkeyIkSnF6tBrCkeQhsWpCE6ozHyB6ibaTe5zrLr1nHs4tqqo1zpS /CTYJhOf9+Ptg== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 040C35C02A9; Tue, 15 Jun 2021 13:39:51 -0700 (PDT) Date: Tue, 15 Jun 2021 13:39:51 -0700 From: "Paul E. McKenney" To: Marco Elver Cc: Mark Rutland , boqun.feng@gmail.com, will@kernel.org, glider@google.com, dvyukov@google.com, kasan-dev@googlegroups.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/7] kcsan: Introduce CONFIG_KCSAN_PERMISSIVE Message-ID: <20210615203951.GU4397@paulmck-ThinkPad-P17-Gen-1> Reply-To: paulmck@kernel.org References: <20210607125653.1388091-1-elver@google.com> <20210609123810.GA37375@C02TD0UTHF1T.local> <20210615181946.GA2727668@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 15, 2021 at 08:51:18PM +0200, Marco Elver wrote: > On Tue, Jun 15, 2021 at 11:19AM -0700, Paul E. McKenney wrote: > [...] > > Queued and pushed for v5.15, thank you both! > > > > I also queued the following patch making use of CONFIG_KCSAN_STRICT, and I > > figured that I should run it past you guys to make check my understanding. > > > > Thoughts? > > You still need CONFIG_KCSAN_INTERRUPT_WATCHER=y, but otherwise looks > good. I knew I was missing something... :-/ > I thought I'd leave that out for now, but now thinking about it, we > might as well imply interruptible watchers. If you agree, feel free to > queue the below patch ahead of yours. That works for me! I have queued the patch below and rebased it to precede my change to the torture-test infrastructure. Thanx, Paul > Thanks, > -- Marco > > ------ >8 ------ > > From: Marco Elver > Date: Tue, 15 Jun 2021 20:39:38 +0200 > Subject: [PATCH] kcsan: Make strict mode imply interruptible watchers > > If CONFIG_KCSAN_STRICT=y, select CONFIG_KCSAN_INTERRUPT_WATCHER as well. > > With interruptible watchers, we'll also report same-CPU data races; if > we requested strict mode, we might as well show these, too. > > Suggested-by: Paul E. McKenney > Signed-off-by: Marco Elver > --- > lib/Kconfig.kcsan | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/lib/Kconfig.kcsan b/lib/Kconfig.kcsan > index 26f03c754d39..e0a93ffdef30 100644 > --- a/lib/Kconfig.kcsan > +++ b/lib/Kconfig.kcsan > @@ -150,7 +150,8 @@ config KCSAN_SKIP_WATCH_RANDOMIZE > KCSAN_WATCH_SKIP. > > config KCSAN_INTERRUPT_WATCHER > - bool "Interruptible watchers" > + bool "Interruptible watchers" if !KCSAN_STRICT > + default KCSAN_STRICT > help > If enabled, a task that set up a watchpoint may be interrupted while > delayed. This option will allow KCSAN to detect races between > -- > 2.32.0.272.g935e593368-goog >