From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0D6D3C2B9F4 for ; Mon, 14 Jun 2021 15:36:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E0F0A6120E for ; Mon, 14 Jun 2021 15:36:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233641AbhFNPiY (ORCPT ); Mon, 14 Jun 2021 11:38:24 -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.