Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1428943ybk; Thu, 21 May 2020 06:44:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKjIo6O0B5EdnGbDgwXJdnL/dpjl7VUy3v/W06DcCGXMMsSQrXOgi167HT+h2D2tL1nZbw X-Received: by 2002:a50:f402:: with SMTP id r2mr7483822edm.27.1590068677400; Thu, 21 May 2020 06:44:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590068677; cv=none; d=google.com; s=arc-20160816; b=MqG8/PRXAGXIWiHPkFhQxgDYpGk3sajQEMDlxxwvecqBpD1euTf5nAsrCXpm1k1NCa JVL8DpcnIRchVivzu/8bzJDYupzfVr1BwEbmp/RkxbJ8AbkbGmYKmv/UnqFk47fIkYv7 BUNfZQWF7A+6b+VkLhtq40Iizkvq2lk1WvlYG8DAf9A0ax493Vjrg1oVclJ9flWoQO18 qbkgt4yF/u3UcMfU17yZ58XzCJeXgEBoZDwi/LBQElDOixEFlxtlSjvCfNiUbrvuA2FN DGmQ0fnrRXlzsW7EfiOqL4Cgz+cTtYmxcDHiunPc3/Qijc8eA01GJ1/+NWxe/yRyKq6c 1x6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=YoQqHLS3kIB+JIi63PFAQDhXvHkeSj8OSM1KtqfRClU=; b=Pah1hdpNzkhendpfAab4dtNhe/aj2irwehAHoEkNHb0soZH0HomL1mEhifO7t8EP5h bI1xjz3GtaELre22wFCrZqIAzytmRyGRRLUHC2tmIpk+KajFn7ZS8J6gHxAZwgbCl0tz Tl5FOXz9McqcIIpuReVy2izwo9KuhqywWBhEebAQ4gDmcbnMBXgjN+jScgeR003OpuXN Rp+Uhdm8yIOPs1xipHYlGaTdXECnPtkr/IiWl5wW7hKupi/9AHVXuHG0Z5EcXrLjPpN9 gdWAnAaUmKMdfTBglPCal7B7MA1wHNQXDCrNvqzmqIXUEeCFzp+v/f5yKh8VLT5JLwem 0CqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=RmJEJ+YJ; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i6si3563505ejv.83.2020.05.21.06.44.13; Thu, 21 May 2020 06:44:37 -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=@google.com header.s=20161025 header.b=RmJEJ+YJ; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729466AbgEUNm1 (ORCPT + 99 others); Thu, 21 May 2020 09:42:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726856AbgEUNm0 (ORCPT ); Thu, 21 May 2020 09:42:26 -0400 Received: from mail-ot1-x341.google.com (mail-ot1-x341.google.com [IPv6:2607:f8b0:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CD9BC061A0E for ; Thu, 21 May 2020 06:42:25 -0700 (PDT) Received: by mail-ot1-x341.google.com with SMTP id v17so5562916ote.0 for ; Thu, 21 May 2020 06:42:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YoQqHLS3kIB+JIi63PFAQDhXvHkeSj8OSM1KtqfRClU=; b=RmJEJ+YJx2Zq1KlQDqG6F64QGJnSxBZdOyrHlROISiRs3R+lQS77Bcai1UznZO/4qn g1V9wjATqmNG8c+rxMXSZG4ZnYd19eV/65Ptd3xnrdKVC52eVqlInNc6s3cGiuqqEqgg j0iXNFNHNoWuQ6q2yam8+hrWx43WqymOqm+ABTJxfb4Jo2dD4fB/mfLykppmHAcKvP7A Wd/X4tWqptXFjjVFfHkRBcwrvXeIS9hWC+wfUmaJfrpxIdxtP1FKNI9AKNwxmhYTc4m4 VnURrejXfaQSaZT+KlknmhlYe4CB8Y5vvABsQfUHBkx7CpeRcxcdogdPHrQ4raQdU2f5 u/sQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YoQqHLS3kIB+JIi63PFAQDhXvHkeSj8OSM1KtqfRClU=; b=MLAYJhrAVJIsJpYfDH5mIlOCn65UnCET4bun71iS4EnoZO8M6Ou9vW+97s5S119ZDX QGcdQe/85r044vRNP2bu1Vq1I0FCFOGMvYhZPb//7rdo4ctGVfnDzuH936cy22Jwb05D qfpP7zzsPCMcj/NeESld2Z8gVZG7Z6fNpHghf83eCQSqJx1YQj4ey5ZbBzkeJY3kzU03 DmB0M5RD394UtlUb2tT956AhZfXdfgE8XE+sqJPkOF8xqxx/xdL4unbCMmkfp5tPx/VG osMx0Rm0dYtG1TkBZLhdzOiqPFnjOlidV10wbJQBodvOugKF2+5Ih7O2FMKNHja1OBsq p7Kg== X-Gm-Message-State: AOAM530equwYgns7J2AT3UjZxmauC8P16JGN9beEg2cmCd8H2ZLOoK0m KYXWA5fGp5EhLcQ7D269aNIOukN2Ud/hkoGChRCxNw== X-Received: by 2002:a9d:27a3:: with SMTP id c32mr7617241otb.233.1590068544404; Thu, 21 May 2020 06:42:24 -0700 (PDT) MIME-Version: 1.0 References: <20200521110854.114437-1-elver@google.com> <20200521133626.GD6608@willie-the-truck> In-Reply-To: <20200521133626.GD6608@willie-the-truck> From: Marco Elver Date: Thu, 21 May 2020 15:42:12 +0200 Message-ID: Subject: Re: [PATCH -tip v2 00/11] Fix KCSAN for new ONCE (require Clang 11) To: Will Deacon Cc: "Paul E. McKenney" , Dmitry Vyukov , Alexander Potapenko , Andrey Konovalov , kasan-dev , LKML , Thomas Gleixner , Ingo Molnar , Peter Zijlstra , clang-built-linux , Borislav Petkov Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > Other than that, > > Acked-by: Will Deacon Thank you! -- Marco > Thanks! > > Will