Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1349080ybk; Thu, 14 May 2020 06:54:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwXSI6WcsuY8LYrG2vR17lp6rwAd9ykvM/WorYeDutdV6PutA/gAYDcS2pMBeBM4hAiie1i X-Received: by 2002:a17:906:add7:: with SMTP id lb23mr4114947ejb.6.1589464498108; Thu, 14 May 2020 06:54:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589464498; cv=none; d=google.com; s=arc-20160816; b=s6+1Fg9z3bcX3D0uqrGlrlskaPhOugxup3+QZ4T0YEt5tbLvgRRcIYM526CG0Mygz1 iW2Y3eDFvqW8lakRJwg/b0Ixip5SaqIPVIMQJlgA6S2ZQS2qEZG/iJ3qtXozNxlpQPnM fbiQH4ih+qNJIaxayXDiIi2FsG9yX14C1EG937W4cxQy2vAmIBXBJWyGieE/GLJ85K1m GX35amL6b1fy9S1yja6ENNXB2YUAszLx7pQ3kqCS2rUYnjHlDc9xC4Y1CZA64mBY00DB fb9KQJAy8n34skNROL3IrkNHqt03v8Hv4FvBzP491tJUvT2DFpU8/WE7UL02XzLffivi BqLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=oUb9XRa4HSf+di+9adEfNnhbqfuLOkGDaR9A8N50SmY=; b=UqBiBpEpTHGHVJ2OlEoLBy8S5WYeb/JFg3vZqwowi87yTGC7mZIlegKpUIsc/NhoNt M6iWiWC7Q+Q/ZZqQODu3PNAXaytrMTGX93yoHS3Oyb3irhmoPYSsxXGUNhCGaFdNW1Bd AkikiSOpnYXvUwcnsTnfl2PDKJHNwOZCtKSC16dxOqx2GUTuGqJLu84o0+Mm98Us7A27 fDaqp19GrrG5vh261PrB7GMG+UntvIoCN9Qr4MjediTUes7fGTsdoRom91zp3GS+EbCY tYTe5BgdszxIUoaKpqxZ95O3mqs6dpauU1k9iJXNg5+r9QgZWZ0jRw7OqBBw+gvxR/BT vxCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b="iUT7/Jzi"; 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 di15si1616637edb.423.2020.05.14.06.54.34; Thu, 14 May 2020 06:54:58 -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=fail header.i=@infradead.org header.s=merlin.20170209 header.b="iUT7/Jzi"; 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 S1726948AbgENNut (ORCPT + 99 others); Thu, 14 May 2020 09:50:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726067AbgENNut (ORCPT ); Thu, 14 May 2020 09:50:49 -0400 Received: from merlin.infradead.org (unknown [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 453F6C061A0C for ; Thu, 14 May 2020 06:50:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=oUb9XRa4HSf+di+9adEfNnhbqfuLOkGDaR9A8N50SmY=; b=iUT7/JziNjm5u+tScAhcV8xfbC 1z3ZEoVhzeP2ZkB5SCAzzt+S0GOxdUUKKo7K8EherRQ4kR6Ja2j9KrCLu0BlZ4sMl6JxzPtcq9od3 +qpg+lO2Lq1reJmnkRfJ6SfoS+GP3YRxhjfWZWbMNpllNCb6j8JrGgijxpVvATOLi+flAsPqY6Qc1 yWU75AUYlRyh/S5kvLZ7QUeAyCjKc19SIHiKRsZHL0zjwdoY2yrjNsMYaQ+uObMhuEjrCVInyBYtz XvqvO8MZOa4O7DGQZmGzS/cAOasvl7Uk2nCBwhAYWVT3trNDe41xQmoLI+ozXwgT5y2QW+eTyL2ak o6GY8awA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jZEFm-0000C0-Ut; Thu, 14 May 2020 13:50:27 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id A7B46301A66; Thu, 14 May 2020 15:50:25 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 944742B852D66; Thu, 14 May 2020 15:50:25 +0200 (CEST) Date: Thu, 14 May 2020 15:50:25 +0200 From: Peter Zijlstra To: Marco Elver Cc: Will Deacon , kasan-dev , LKML , Thomas Gleixner , "Paul E. McKenney" , Ingo Molnar , Dmitry Vyukov Subject: Re: [PATCH v5 00/18] Rework READ_ONCE() to improve codegen Message-ID: <20200514135025.GZ2978@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 14, 2020 at 03:35:58PM +0200, Marco Elver wrote: > 4. __no_kcsan functions should never be spuriously inlined into > instrumented functions, causing the accesses of the __no_kcsan > function to be instrumented. [Satisfied by Clang >= 7. All GCC > versions are broken.] The current noinstr annotation implies noinline, for a similar issue, we need the function to be emitted in a specific section. So while yuck, this is not an immediate issue for us.