Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp914272ybh; Wed, 22 Jul 2020 17:06:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPArW3K1ZJWVivrW7yf2I9Rfx0f7LAU4cpjeEu0i5K65MJUJaDvUZrM6uVUy2y8o1RWj2Z X-Received: by 2002:a05:6402:1bdd:: with SMTP id ch29mr1831223edb.134.1595462801254; Wed, 22 Jul 2020 17:06:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595462801; cv=none; d=google.com; s=arc-20160816; b=mDYUtvrGwMFizCQQt2yUyD3i8ijHyQeO3twGJpWHIGvmVWz7u7a0CcnmY6j48yCX8X ZmpE/TEycjzTajuRlWVtftRB1Uw7ia/9ZhVQAaKw2MsUQn+kBJMvs8AB8yJZj6WURj61 PDEcUm/7ziFkaB+vdsPhY53KCSmMXP+Xu7jioEoBzqaZmck5EVk/6PSzyAUPZETpZ9tC S2NRl834jfXpepifmhDyg9Y3uCg5ZKRiYXcT5VQURpIE13en8+x90LQHfjkMbGVdX7pJ Jg//173I/QE3TeMaUPOp6cNNYYHcU3NNXwAPu7qiLJeY0nzSp9IpgJWvDGPwLWa2ewAY ccRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=9HzA2LL91bQr8zeensxwMlfwq/0mQTGC5jt3AdCeXQ0=; b=Bz8GGBAYiUEUozAfL7lTDAe7qEJW+ZN4RSJzo3xvNmVsrW7FGhCD6th2aFdNRqPgBc 83rjMqzocYTezCDPe0IvMpTPNOCf2DVQ15JT79Z7N/ma/dAwtqbN/YzQ6TJhB2CrVZwp dJR8TSsWfm2A2u07+Stx7EROCyso2nPtfuT2nLD4udC8YX0SLNEJX2tQNVjFrjH/eDrD DVeei75yVeTDr3VUcVMW7UtWhpQaoygSKsUo75Wrs7IKwEQAzB1w6xtO3PvkKDoSA0B3 0jeOJmGOnykAn3/fgYiO+D4ACdDsEWBRVvccaPAj/zN/cW3ZpVup9aA2+OgOyaEKVof/ vskQ== 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 i24si917667eds.223.2020.07.22.17.06.16; Wed, 22 Jul 2020 17:06:41 -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 S1733109AbgGWAGM (ORCPT + 99 others); Wed, 22 Jul 2020 20:06:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:58918 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729423AbgGWAGM (ORCPT ); Wed, 22 Jul 2020 20:06:12 -0400 Received: from oasis.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8983C206E3; Thu, 23 Jul 2020 00:06:10 +0000 (UTC) Date: Wed, 22 Jul 2020 20:06:08 -0400 From: Steven Rostedt To: Peter Zijlstra Cc: Sami Tolvanen , Masahiro Yamada , Will Deacon , Greg Kroah-Hartman , "Paul E. McKenney" , Kees Cook , Nick Desaulniers , clang-built-linux@googlegroups.com, kernel-hardening@lists.openwall.com, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, x86@kernel.org, Josh Poimboeuf Subject: Re: [RFC][PATCH] objtool,x86_64: Replace recordmcount with objtool Message-ID: <20200722200608.40ca9994@oasis.local.home> In-Reply-To: <20200722235620.GR10769@hirez.programming.kicks-ass.net> References: <20200624212737.GV4817@hirez.programming.kicks-ass.net> <20200624214530.GA120457@google.com> <20200625074530.GW4817@hirez.programming.kicks-ass.net> <20200625161503.GB173089@google.com> <20200625200235.GQ4781@hirez.programming.kicks-ass.net> <20200625224042.GA169781@google.com> <20200626112931.GF4817@hirez.programming.kicks-ass.net> <20200722135542.41127cc4@oasis.local.home> <20200722184137.GP10769@hirez.programming.kicks-ass.net> <20200722150943.53046592@oasis.local.home> <20200722235620.GR10769@hirez.programming.kicks-ass.net> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 23 Jul 2020 01:56:20 +0200 Peter Zijlstra wrote: > Anyway, what do you prefer, I suppose I can make objtool whatever we > need, that patch is trivial. Simply recording the sites and not > rewriting them should be simple enough. Either way. If objtool turns it into nops, just make it where we can enable -DCC_USING_NOP_MCOUNT set, and the kernel will be unaware. Or if you just add the locations, then that would work too. -- Steve