Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1405245ybk; Thu, 14 May 2020 08:12:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyW/1/RAetIjAZIHIiqOkeK/P2b+n4BOq6qCkolT1LIuwR9wkrzKtii8zVdxsVRTrhYlTTw X-Received: by 2002:a17:906:16c2:: with SMTP id t2mr4505689ejd.17.1589469149155; Thu, 14 May 2020 08:12:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589469149; cv=none; d=google.com; s=arc-20160816; b=HKtMBMD/NgH8xXGdetwyVWIQ9SdcXc9tNhAIqrhyBWlLMoYtK1nqgZWAhMrXyfLM46 vTYuOz+O8we9EbbXrs9HTqylZhGX1i8WD6xT20bFE1cGpjQTtxprWV8Rgx7+pm9V/ZkZ E+SGvpK8TaTKAkhA7XFVZMHZ7wpU3cQddjDUNDdnAKloc0nHBOVyfQqbmtxwS7Zu9g/o vuSXp1kFhTVqs6USeo+J9W/48kJCeByYq7e6nrSBCc/Qe14UgftoFhWiy+KgfoF9TCf8 xTMZVxZuCs+kieRxq6+PjAVN7BtRgWNjMCzaTYWt9p7VJHpk0Cr4I7Z9vHRk1L5fwyDg rq7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=YzhZYvGu3kNiphZcixpfz8aoE4ttET/Vtil/cQnh35M=; b=rqDEa9pKu7ZfAbzUxxYdo+/i2V7XPH0/0wx/lJ6ZcWfTapuZPsm+XNwAUUFwSdl6Uc Et0U0iO8Qigb7z6oMhEX/+IW1Vv+FXJ1VM8aa8BsHmg7IfNNTBpaHDDKXWZQ6H620q42 CtNwFC175J4O+XebkW4PBdOOPh8Wyg/Dfeo4ngWVTUJJ5Li+lnCweEgfhlBJVwwBgdqI wgCV0xICYKHah/Bm+NGf1RgFcAAL3UNAHUymnX7a/sENudpraiXKcHrPsUuPRyMwjgfN 8OmxLyKY9vTPfm++HcuFyOjX0WbqN0/tuX0slDoEe2ynz0YYpzf6ZVZljTEN6qfUgtlw QuoA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y13si1791392edq.430.2020.05.14.08.12.06; Thu, 14 May 2020 08:12:29 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728032AbgENPJ6 (ORCPT + 99 others); Thu, 14 May 2020 11:09:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726240AbgENPJ6 (ORCPT ); Thu, 14 May 2020 11:09:58 -0400 Received: from Galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48376C061A0C for ; Thu, 14 May 2020 08:09:58 -0700 (PDT) Received: from p5de0bf0b.dip0.t-ipconnect.de ([93.224.191.11] helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1jZFUb-0001hT-NA; Thu, 14 May 2020 17:09:49 +0200 Received: by nanos.tec.linutronix.de (Postfix, from userid 1000) id EFD8F1004CE; Thu, 14 May 2020 17:09:48 +0200 (CEST) From: Thomas Gleixner To: Peter Zijlstra , Marco Elver Cc: Will Deacon , kasan-dev , LKML , "Paul E. McKenney" , Ingo Molnar , Dmitry Vyukov Subject: Re: [PATCH v5 00/18] Rework READ_ONCE() to improve codegen In-Reply-To: <20200514142450.GC2978@hirez.programming.kicks-ass.net> 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> Date: Thu, 14 May 2020 17:09:48 +0200 Message-ID: <875zcyzh6r.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Thanks, tglx