Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2855419pxj; Mon, 14 Jun 2021 08:39:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEoM3QdtWvlITI/Cc6O1GCZSVZCWfdwYdixl7HzU8lIvGuIoBCD+5i8iHZzLiwV3w3hVKk X-Received: by 2002:a17:906:49c8:: with SMTP id w8mr16045956ejv.497.1623685186185; Mon, 14 Jun 2021 08:39:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623685186; cv=none; d=google.com; s=arc-20160816; b=hYQcnAawteLf3VaD0Y+62rdWqwziUCf0vEQ6SeBpxZ8Yp3lhmXbcomIy2SvcqnP1AI 5mj/x4cO6JqLbDYBzDuJ5zQQ0aypSyIRVMp/ZFxKes/ZbbNCq+A0nCT3cHg0PkxcwCVg WKr3lhWXzA3TI+gOEEYeGciWg4eX7WoFiIj4FFJvEL3CUUE9w/s1hdTrMM62zx0hFUxV 94GYpbsSeDtCgrPWU5j6B0HAkWvosvyMMsWvBF/D9sbU8xAIEdMSoS07WtuuoBszsSCS 2b0iHWeZdZk4ie2zVLmBty16Wk9/7VwqRxUTRAEngjrgIAnd2a1HSMgP2AA74kel+ZNz XLWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Cu6SKmr0wogKDzs7Tpjs0nvU/JJlCGecw+D1VcYnf9I=; b=eNPLYDabWirEzaSrcuok6sGm9/kvSYR6w38d0NIzjiecye5o8jq6w8CZaybVIKzOmh F9IZMxW7XAFJhMdeBf978v6ME3KQ0eswxPUfGMS6g2G7+ZKXNEg092m5AfIL9csgSJ1y 5UvgXNcj3OgKtZgkvCv2mBe5xDL5ZcY/197AtOYmA3wlvxReDbE2Bsu8ZVnON3hn7Dcg yQNAGKgmB0gFROcIjWaNyQYKkBxlBVp+ShM2PcCucZPik9tDdfh08fuBf0w0clTlrAE6 nzx1cXTD3jd1Oud6V48UFfvSsgMlypbcFbwpM4u7id0+OaUe6L3gIVhci37rgE+5TdfB iUHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=du5rKjaE; 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 b15si236953edz.434.2021.06.14.08.39.23; Mon, 14 Jun 2021 08:39:46 -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=@infradead.org header.s=desiato.20200630 header.b=du5rKjaE; 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 S233392AbhFNPiS (ORCPT + 99 others); Mon, 14 Jun 2021 11:38:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233602AbhFNPiH (ORCPT ); Mon, 14 Jun 2021 11:38:07 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB6ADC061767; Mon, 14 Jun 2021 08:36:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; 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=Cu6SKmr0wogKDzs7Tpjs0nvU/JJlCGecw+D1VcYnf9I=; b=du5rKjaENbHV+QZYklpfbh5bw4 kZPSNbYAV1oF2yh+I9Jg5CzYIlILZUtv5+mriQMwXr8lrFYHpoa2CWgOVvfOHiXyon8oVuD+7BMAo roFIbVlT83QzpVdObfLuT9YwxbsJh/UJzevnRa5wyt0FvwX/pcokLkCyKlmQ2LiFwp1GzrQMso3DE LsJVcWn8mLMze5Ih1tyLvJDX7tVr8fLZ8kDSdLwQjuRAZwOs/a7MYEJHjWrVBDtCQ2Vcx+FzwddZP gzcdxf4gkgdXFG0Aeg85ZNU+9cmHHMmBlteWEfOPzs/h0IlgyhIz8Xkv1SlXoVe/w2PgBF1UEiHhJ TCyJlQkQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=worktop.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1lsocl-0074f0-UI; Mon, 14 Jun 2021 15:35:47 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id E7C989831CA; Mon, 14 Jun 2021 17:35:45 +0200 (CEST) Date: Mon, 14 Jun 2021 17:35:45 +0200 From: Peter Zijlstra To: Kees Cook Cc: Marco Elver , Bill Wendling , Jonathan Corbet , Masahiro Yamada , Linux Doc Mailing List , LKML , Linux Kbuild mailing list , clang-built-linux , Andrew Morton , Nathan Chancellor , Nick Desaulniers , Sami Tolvanen , Fangrui Song , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , Andrey Konovalov , Dmitry Vyukov , johannes.berg@intel.com, oberpar@linux.vnet.ibm.com, linux-toolchains@vger.kernel.org Subject: Re: [PATCH v9] pgo: add clang's Profile Guided Optimization infrastructure Message-ID: <20210614153545.GA68749@worktop.programming.kicks-ass.net> References: <20210612202505.GG68208@worktop.programming.kicks-ass.net> <202106140817.F584D2F@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202106140817.F584D2F@keescook> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 14, 2021 at 08:26:01AM -0700, Kees Cook wrote: > So, AFAICT, the original blocking issue ("PGO does not respect noinstr") > is not actually an issue (noinstr contains notrace, which IS respected > by PGO[2]), I think this is fine to move forward. It is *NOT*: https://godbolt.org/z/9c7xdvGd9 Look at how both compilers generate instrumentation in the no_instr() function.