Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1429232ybk; Thu, 21 May 2020 06:45:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzE7sCXXetQexiKPgrPxVuWLx59luXQILd8eMWEfOnE207c/uFdUMWf26sn9oZNjA9X/lKb X-Received: by 2002:a50:fb1a:: with SMTP id d26mr7797083edq.83.1590068700410; Thu, 21 May 2020 06:45:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590068700; cv=none; d=google.com; s=arc-20160816; b=UOXsVKzLCgx4nnqkt+GkH3bMJ6vT0caNJmRGsmP4SB5niZIWWIE6RLh822xVSpsi6b Kc2IBLqV+5uBzuIyBCkmoBpnQfHb7PvTYLcLNkT+GPAcZ65VKDueV7BICCAjj+hyriIf pOcB2pYmaTj+9Kpxh9N7xh0CERFJnOxHkXJ55KWg7axcv76dRTMO/JibSJKzo+gzWAJ8 +JGqVWHL7kDCICvf6gE4cvTnPO0oM9Ul5qsuExGz4JH/6piaCjDs5KDojohOoMg7L0js mcCbAzmAPGwnN21VIYIjFIiumiSdS22f6oCxJE/GmtGi0o5nHbTesU9nhxMTTFhoINEz FQGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=0V1aLxnC9b6nqBNZK6HTyYbgl3Uy19QD2eqD+7FzkYg=; b=wdH6EUkO/PB88wDjCVgMn3/y2MzGABhf/bvlB+/G2YUOKze7B+yA9DZi9UW9zK1fu2 cDZUK2fbL+/tL1yzBNY1nup0SaCo/FMEHFkxKTiCNwj4OhhdIWBkSypNYnmV2rxZ3aU1 jNBK2guQ4wdszBx8OGiA2WAqvql0jvzKLzS7hjKy3U26WesCJQbopyD3XunYTWrtJtx+ czeLiBV41ckpPphVtfnkzkA669xphX+3mjXq5+VYvDZJUEabiQy4371uyqAmU4ppA5pB k+wIvQzfu6F19+ZykE+eED/DYNzhVlWOm8g1tPesU23qJlMw6AbQCIXBf4HY96+sBIn8 PqCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ToaY+1My; 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 p1si3198984ejd.333.2020.05.21.06.44.37; Thu, 21 May 2020 06:45:00 -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=default header.b=ToaY+1My; 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 S1729477AbgEUNnE (ORCPT + 99 others); Thu, 21 May 2020 09:43:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:41544 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726856AbgEUNnE (ORCPT ); Thu, 21 May 2020 09:43:04 -0400 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 938BB2072C; Thu, 21 May 2020 13:43:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1590068583; bh=B5c3UjkBmNmyt5mM0MfSvuhfYgcHNnoOLxnuIO2lEgk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ToaY+1MyEC4snUXo9nWYEGAUTR2TagfeBt/iVuZMv8H6PSBUufM3GFLMGBJjt4Pm+ VFq0TEkd4f38wq6+xbJmDgrws/zN1KuHANyVjo4hPaCTTPjDNjKf8M8+Rj9hGXLC0Z QvPlrdI+S90OTSJf5ttAJ0SUrIiKG3khW4GYbfoo= Date: Thu, 21 May 2020 14:42:58 +0100 From: Will Deacon To: Marco Elver Cc: "Paul E. McKenney" , Dmitry Vyukov , Alexander Potapenko , Andrey Konovalov , kasan-dev , LKML , Thomas Gleixner , Ingo Molnar , Peter Zijlstra , clang-built-linux , Borislav Petkov Subject: Re: [PATCH -tip v2 00/11] Fix KCSAN for new ONCE (require Clang 11) Message-ID: <20200521134257.GE6608@willie-the-truck> References: <20200521110854.114437-1-elver@google.com> <20200521133626.GD6608@willie-the-truck> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 21, 2020 at 03:42:12PM +0200, Marco Elver wrote: > On Thu, 21 May 2020 at 15:36, Will Deacon wrote: > > > > On Thu, May 21, 2020 at 01:08:43PM +0200, Marco Elver wrote: > > > This patch series is the conclusion to [1], where we determined that due > > > to various interactions with no_sanitize attributes and the new > > > {READ,WRITE}_ONCE(), KCSAN will require Clang 11 or later. Other > > > sanitizers are largely untouched, and only KCSAN now has a hard > > > dependency on Clang 11. To test, a recent Clang development version will > > > suffice [2]. While a little inconvenient for now, it is hoped that in > > > future we may be able to fix GCC and re-enable GCC support. > > > > > > The patch "kcsan: Restrict supported compilers" contains a detailed list > > > of requirements that led to this decision. > > > > > > Most of the patches are related to KCSAN, however, the first patch also > > > includes an UBSAN related fix and is a dependency for the remaining > > > ones. The last 2 patches clean up the attributes by moving them to the > > > right place, and fix KASAN's way of defining __no_kasan_or_inline, > > > making it consistent with KCSAN. > > > > > > The series has been tested by running kcsan-test several times and > > > completed successfully. > > > > I've left a few minor comments, but the only one that probably needs a bit > > of thought is using data_race() with const non-scalar expressions, since I > > think that's now prohibited by these changes. We don't have too many > > data_race() users yet, so probably not a big deal, but worth bearing in > > mind. > > If you don't mind, I'll do a v3 with that fixed. Works for me, thanks. Will