Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1419118ybk; Thu, 14 May 2020 08:31:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZLR+IXFccGvqUJsDxdCsSE8PpFtUsqMLXjva/U5Q4x1Xjwk3XP36GyagmR8T8Ks28py8x X-Received: by 2002:a50:d9cb:: with SMTP id x11mr4427203edj.88.1589470307770; Thu, 14 May 2020 08:31:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589470307; cv=none; d=google.com; s=arc-20160816; b=qrq48Ib8u3N5wNiaSK90ufUzqIgfb6JIhsoBZbZTzJNyHjZB5syUclCvSYtcZgNqDv PUvFCbUZxSc30FlyRyRbsdg8+CV42dqk5dufhbb1n9hjLC1Z8TPDqlFRL4PVlPA2yjFa K/spiFtBRQguoWwDtoqU2c8Epzp5GOqwb1SBiv8RN2zYXZg5Y7eSas+s+MR17KYK2y84 hMmwpzFR8zRmdTW0q8AvZqpac7QRc+u5tw/lmkE2tblpR6LXviNun7ob2sfm3ClBcoAh /7PVtXtkOtigZtBVL/9/JfS0DlPmn9EDXM28QWIAuqocVWega1buku2r4HzLAF4T2/mQ Hr6w== 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=ird8FEm72ENlHkterOqnEy09/dOc2zCxjzNTKKGHbAU=; b=zsgVQyk8B8bmBiZqQ8b8M5jpLtSC50ARw6a4ICFH7LCM160rXcTyrof2NbTgbqqody DTSF/vjeKoBzWruEs/cxwakvUun0Zx4zObc3uDCrJu8VdbguYt/8HQ6W3UJQuH7tmq+W 42p3Y+ejiaWFy86F3QpjmlwKQF+kWynnUog7Lfce0R9htgVb5njFc6v4cvq/PB2xkBhi hWn7bQ6acvcbmsaXKLy8VqgTSLlzGFU1pt1rJuzQbaDjXi63noKksT5fldsVer7n3CQw /n6iAOtwa6a077+PwfP1KwAMvwtjGUaJmL/zpGevBv2mmzPi8G/FM6SMWq1kihAdRRaT tyFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=eYVph7M9; 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 e23si1936488edq.517.2020.05.14.08.31.24; Thu, 14 May 2020 08:31:47 -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=eYVph7M9; 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 S1727098AbgENP3h (ORCPT + 99 others); Thu, 14 May 2020 11:29:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726056AbgENP3h (ORCPT ); Thu, 14 May 2020 11:29:37 -0400 Received: from mail-oo1-xc42.google.com (mail-oo1-xc42.google.com [IPv6:2607:f8b0:4864:20::c42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41EBBC061A0C for ; Thu, 14 May 2020 08:29:36 -0700 (PDT) Received: by mail-oo1-xc42.google.com with SMTP id p67so790029ooa.11 for ; Thu, 14 May 2020 08:29:36 -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=ird8FEm72ENlHkterOqnEy09/dOc2zCxjzNTKKGHbAU=; b=eYVph7M92L+Hgp6wyxFgWbeRBHK9Qc6YlvnLZPAT1pUtKCSdeDkDRqZunoaYoZJJzC 2U5cjd4JF5COsvCFu7iADKRAK5QzjVbuNt5C7VOpgwfQAt4+WcgkfF2RHQmk88dAf6Kx t8HmVeEeCaZPVSsN2zfWzQLRvV8btvgPrjesPoCn/JP22eOQQTr6Wi1XLLWdg77b6GN3 N8VTcFAdDJKLJvQabExfyLrAzOgMC4DLOsMColRl0JZq69FKFY1uLscbGVsDT/EWFEdc YtB6EwhZZ/7ygN769/VIeBMLRUxaiFwhka5hqG+BBo+3LuShHM3Gqf7lWhJyXiV5KSwo xScA== 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=ird8FEm72ENlHkterOqnEy09/dOc2zCxjzNTKKGHbAU=; b=gXHJP5c/gNbuTw+oPzW/lFjrJ/Albn8R596kYkW/9lqixGOqpBF4ixZ1RCa0bjOE4n LVzGv4+fTCSxl0J7M3DNk4DyAiE7Vwg2s8EhcIEO20dnnsedCwEkOJkAgbLmtHbFo0Tx am8PrIvzG1rpWlq4ROXERbxQUnVuLlwjph3I80r8DIHN4ngrLcbapDgvWv/Ui74HdVQL 70a4r8FOyTogeff/2IoIBEu51/FTtAHHxts4bE1bY4xY1A85v+x8qlt4NokBdP0zKb07 v/u2d9Xdz1W58t/kqqgcFI18jkoT0VVKr+5SNnjrFC9sU4c6QudsuwgFZcpR6yXI78YM JEjA== X-Gm-Message-State: AOAM5321VtuM2CNovSIokrRk5tdCItJ0XJkosPaMYMgOhvoBUW0BtJp4 oSKC4XH0msWdAstjaasg2osEVZGcHXk+9/aritCDZg== X-Received: by 2002:a4a:2809:: with SMTP id h9mr4056657ooa.36.1589470175434; Thu, 14 May 2020 08:29:35 -0700 (PDT) MIME-Version: 1.0 References: <20200513124021.GB20278@willie-the-truck> <20200513165008.GA24836@willie-the-truck> <20200513174747.GB24836@willie-the-truck> <20200513212520.GC28594@willie-the-truck> <20200514110537.GC4280@willie-the-truck> <20200514142450.GC2978@hirez.programming.kicks-ass.net> <875zcyzh6r.fsf@nanos.tec.linutronix.de> In-Reply-To: <875zcyzh6r.fsf@nanos.tec.linutronix.de> From: Marco Elver Date: Thu, 14 May 2020 17:29:23 +0200 Message-ID: Subject: Re: [PATCH v5 00/18] Rework READ_ONCE() to improve codegen To: Thomas Gleixner Cc: Peter Zijlstra , Will Deacon , kasan-dev , LKML , "Paul E. McKenney" , Ingo Molnar , Dmitry Vyukov 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, 14 May 2020 at 17:09, Thomas Gleixner wrote: > > Peter Zijlstra writes: > > On Thu, May 14, 2020 at 03:35:58PM +0200, Marco Elver wrote: > >> Any preferences? > > > > I suppose DTRT, if we then write the Makefile rule like: > > > > KCSAN_SANITIZE := KCSAN_FUNCTION_ATTRIBUTES > > > > and set that to either 'y'/'n' depending on the compiler at hand > > supporting enough magic to make it all work. > > > > I suppose all the sanitize stuff is most important for developers and > > we tend to have the latest compiler versions anyway, right? > > Developers and CI/testing stuff. Yes we really should require a sane > compiler instead of introducing boatloads of horrible workarounds all > over the place which then break when the code changes slightly. In which case, let me prepare a series on top of -tip for switching at least KCSAN to Clang 11. If that's what we'll need, I don't see a better option right now. Thanks, -- Marco