Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp724323ybg; Wed, 3 Jun 2020 11:55:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzND64ExfDeQU4DRxp+Kt334q5MbHvDrZfTOZcw8EaeWSWOrb31Qx09n4bd+7M3G2FBD7rh X-Received: by 2002:a17:906:940d:: with SMTP id q13mr653218ejx.534.1591210506089; Wed, 03 Jun 2020 11:55:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591210506; cv=none; d=google.com; s=arc-20160816; b=AKog/rRRAv8UUqbEsGPm3OeaYqAsUQJm5zCBIhzL0ZDPV5qsk68fvrKoi5SYKDvbAn FT/GmvDWBu5Rau4AzJdMnfmbe20VZ7jCmXZFxwYS9r950MvMv7znARUFL9uLnrVn0Mm4 ku2ntd2BW9GiHlK05pPmPUF2Q+qDSvU/3XTuFM6IqVQD4svVDqbO3+eo+UkckebaBH0d gNeb5kddw95TtjtaSm3qsI2I5AY/6Eirjd/BqfNLOL4jc5c7FaevhFzzTJRNhiMlGp+w 9lTAwYHO9eHnsoBfC8J7qqVPbuCW161l2BKeXBZALRQev5o3QC1AwaiLgfwxbqQ9lSir miUQ== 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=LvxZ35mGfJQ6YYXayA/jTe4NV7Rrhjm8YI3+1Qt5HL4=; b=nPWkzIUyJrj/Ba1LLr5M4IBu9vNzQzcSpKCvGs+yh6pszDdrbrEd+Xn2L+Hl0DHST8 PuPNU2zkLTDnEpxnwVp3GnZnUt8mimnnBfTVsDX9YjrUVB/JH6FP5AI47hKlHLvQhT8g KUlcUDS4GphCNcX4oH07WvQ1cRTgCnw7xjHz4AdOYX5Ua9T41xPvk18dpWAfz5fVAS2+ G3l33I2zrumPlQpMtavZfXFwy2HHBQCxxxBYtsDgI75TWjJ3RO43g0yYv+wlLnWGVIAp 7QmUOafo4zJ959ARjiVqaI4Yag0mm5bqc8ztcTwbkXaDnA+eDnyWceVnF8oWg8yo4F4d Wz6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=DRiF0BIZ; 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=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c11si258742edw.19.2020.06.03.11.54.41; Wed, 03 Jun 2020 11:55:06 -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=@alien8.de header.s=dkim header.b=DRiF0BIZ; 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=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726114AbgFCSw3 (ORCPT + 99 others); Wed, 3 Jun 2020 14:52:29 -0400 Received: from mail.skyhub.de ([5.9.137.197]:54446 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725922AbgFCSw3 (ORCPT ); Wed, 3 Jun 2020 14:52:29 -0400 Received: from zn.tnic (p200300ec2f0b2300329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ec:2f0b:2300:329c:23ff:fea6:a903]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 36D0A1EC0136; Wed, 3 Jun 2020 20:52:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1591210348; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=LvxZ35mGfJQ6YYXayA/jTe4NV7Rrhjm8YI3+1Qt5HL4=; b=DRiF0BIZXQSCuVHtt46FtPXxYHH4+sgx+/nDrLdh3hKZSBaYTzNqB0iKMhBgl3ZMpHP3yE C6qf37ndrqFev6s2lSdID0UWQno6Sw9MCwVnzmR4E0V9Mfr5c7lF9VO0kBVYBMx673Fkcp QBBZq6XNNRsBwvegkrZow5plJlcVdm8= Date: Wed, 3 Jun 2020 20:52:20 +0200 From: Borislav Petkov To: Will Deacon Cc: Marco Elver , Peter Zijlstra , LKML , Thomas Gleixner , "Paul E. McKenney" , Ingo Molnar , Dmitry Vyukov Subject: Re: [PATCH v5 00/18] Rework READ_ONCE() to improve codegen Message-ID: <20200603185220.GA20613@zn.tnic> References: <20200513123243.GO2957@hirez.programming.kicks-ass.net> <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=utf-8 Content-Disposition: inline In-Reply-To: <20200514110537.GC4280@willie-the-truck> 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 12:05:38PM +0100, Will Deacon wrote: > Talking off-list, Clang >= 7 is pretty reasonable wrt inlining decisions > and the behaviour for __always_inline is: > > * An __always_inline function inlined into a __no_sanitize function is > not instrumented > * An __always_inline function inlined into an instrumented function is > instrumented > * You can't mark a function as both __always_inline __no_sanitize, because > __no_sanitize functions are never inlined > > GCC, on the other hand, may still inline __no_sanitize functions and then > subsequently instrument them. Yeah, about that: I've been looking for a way to trigger this so that I can show preprocessed source to gcc people. So do you guys have a .config or somesuch I can try? Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette