Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1424481ybk; Thu, 21 May 2020 06:38:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKvTJe2ItA2eyuxC/GRFmK5LBlNrtgtLbmNAV8Nd1co7XpMmRZVJpXlaVeG0o5QncTO3tR X-Received: by 2002:a17:906:d141:: with SMTP id br1mr3660744ejb.333.1590068298851; Thu, 21 May 2020 06:38:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590068298; cv=none; d=google.com; s=arc-20160816; b=nSJIKlZ7hVt11OTq3d+yOhF8bC4lMJcyTG1fxw+t8qO6tIFKPEDurLQx9knCQwaKLO viUIg6Dx5Y89SuDk7Xth7hpfpbaD6fN4u3Up5P2ZNPJVXMcrDWjnTSMu7nKIF36sPQEc c1EwhahwzusZJiwy4HUpaGaRPt379fx08Y71aOyuLLArMUBFyUaZSW1TBIeKp2+Dd+t0 P3shlz3hNCN8yNWutq4hYiQYeaTG2+n//vM3r4INeiv2SQT1IMk7DCxOWm77m4HQdD5u JWV8IXzvb0SQIrKTGgf9ZRfzeQqwBulDwJJbaXdYLglAog6zMOqPHstAvdW0ibCNl4nN Mb6Q== 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=TrxgtGTSAC7ifLG9JVpgD2MapbqmJasl4O3XfSPPhiw=; b=niUId9LPGbrefpV9LY4H8d35zej4gEXu9ITdPD0k7PDmH8QFrdqtBYuvngYQhYPpHF Xmp8GLlpgExcXRb+zu/p/q3iWN2YalIZDFL+uOGd1Ce8vtuPqgPeIVirHLYPkVf1nTN3 L//wY164qH2X0mEC07mP5CuY8GeeEhR5OxBV5JL58gaDpFhjQqsFzPC8c0CF+bzoZI+n /UntMNvc3zqqYCU/O/2cLmi/O0JqAiQQFYfLCQ7gqx1sMFfCEEpjXArR6BJkxbddXEBr 7PdNAwMznZBdAhyz/HdGGIHpFOZIOPeh0JPQ+R2MUEhq1I8dMMs3BlzyAdnCx+io4x0V Rtxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fiiMcKpG; 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 w23si3112717edr.260.2020.05.21.06.37.55; Thu, 21 May 2020 06:38:18 -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=fiiMcKpG; 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 S1727085AbgEUNgc (ORCPT + 99 others); Thu, 21 May 2020 09:36:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:39624 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726856AbgEUNgc (ORCPT ); Thu, 21 May 2020 09:36:32 -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 02B1720721; Thu, 21 May 2020 13:36:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1590068192; bh=k1U9skoq/IsxYcIdWWwltNtKISxIBRqA2/fMuQ1l6/s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fiiMcKpG6X/JtSWMRjsdR4p6LuRA638LAeg+KATziaRhN/rYR30X+H1cRyg2j6sNR 7Un+7kyMPRvtO7ty1OSPtx03+GEGN+hUfOWrR7Xt8mWojHmBThZGBavKtafysKxzk4 xlvFQK7Fl0BjhVJGb4cXmwQ0GdzDlyuU512y8Dvk= Date: Thu, 21 May 2020 14:36:27 +0100 From: Will Deacon To: Marco Elver Cc: paulmck@kernel.org, dvyukov@google.com, glider@google.com, andreyknvl@google.com, kasan-dev@googlegroups.com, linux-kernel@vger.kernel.org, tglx@linutronix.de, mingo@kernel.org, peterz@infradead.org, clang-built-linux@googlegroups.com, bp@alien8.de Subject: Re: [PATCH -tip v2 00/11] Fix KCSAN for new ONCE (require Clang 11) Message-ID: <20200521133626.GD6608@willie-the-truck> References: <20200521110854.114437-1-elver@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200521110854.114437-1-elver@google.com> 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 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. Other than that, Acked-by: Will Deacon Thanks! Will