Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp711157ybh; Wed, 22 Jul 2020 11:10:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxa3uI2DFzl7wpre6y56rCj5m1aJ17bNq4n+uIy8vZEmGIwpwt8aw+EwcMqRPK3EfC7MbNt X-Received: by 2002:a17:906:9348:: with SMTP id p8mr775791ejw.467.1595441410767; Wed, 22 Jul 2020 11:10:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595441410; cv=none; d=google.com; s=arc-20160816; b=MaLslCPBBsvSf+Z/qH8Q8sudIZKXD+FkGypSHukjtMSle6mWwfoE+y/NSSnXK4Zopi G6HpaUOrgAIc0g2GX7NfClzzd6IjCm0DqgWUQnk3trIeu+V8Ls02QVw+Uvi4etBzuT/G vMgH94Py0LgKkqQLn84eIshzJ2CkoIfB6HkWjJdMfr1dGa+FSLjN3gJeQUfXFDjQ9QX5 J8cZqF5l55+3Gu6psrnZETCN8dzFvl+EpuUjQNiKPvrKTECfq5FmJdCb0eLRCg13HVD2 XfCpnjL/4QsrXT9JEx1I1rZx2oiN0ru6uHjHFw2w0CIm+7Vc/wk/CXEswxMaJNmGW/Zo EBeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=FdyJ3zCjPfmLPOxt0EpbJoGI3z0Dst2ftnMjMBs721s=; b=ZAQjjZIiJr1CBU9Wb1SO4mcNttMRRrRNTQ65zod3IrSk0NvOpGOnrmo2HbMZbTRC4/ qhOjHQS0UD+qb0vL6kYYiY8rmc5AafFcG58R2DGM29QyZWAExV9j3zubGmpufMNhJm4G 39vDXjU7K5bmvSnhaVV5WmVEw5oKqyHbUDjq1+MoU7gB4ilMmd5qKb1/ITdSf2la/8GU 0G4BDPH3AyxrGJZA3Xqj7aF9DTIFMMPEqK8kLPlkeRru2MNOrTcbXZB/C6ArzHtU2JvI wOLGSRHCaC9fkinTv6Pncxi1D9ySigRbsM+YT86wN3m6XRDkNoAdVWvJpk+UBvDhIm/8 ZPvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=VQOOnqg7; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e26si486859ejd.180.2020.07.22.11.09.46; Wed, 22 Jul 2020 11:10:10 -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=@google.com header.s=20161025 header.b=VQOOnqg7; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728299AbgGVSH2 (ORCPT + 99 others); Wed, 22 Jul 2020 14:07:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726564AbgGVSH1 (ORCPT ); Wed, 22 Jul 2020 14:07:27 -0400 Received: from mail-ed1-x544.google.com (mail-ed1-x544.google.com [IPv6:2a00:1450:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02ABCC0619E0 for ; Wed, 22 Jul 2020 11:07:26 -0700 (PDT) Received: by mail-ed1-x544.google.com with SMTP id n2so2349939edr.5 for ; Wed, 22 Jul 2020 11:07:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FdyJ3zCjPfmLPOxt0EpbJoGI3z0Dst2ftnMjMBs721s=; b=VQOOnqg73U7x3eQrsDW5P6NHQpsRTrBV6mDqQ35Y7KbR5dxMVHVEhlOpBKgbC4YauI hKoPoQogS3yVaVz+cHKlmtCp41T1+KI57s1dNmREFvPgWO9LQa1Md2XUbvuoYp7xcDOD uJkxpr/ugST6O4YCQmPPrAz4f1LYvrnmu4TBkKKzuhd7zdw95+t6HeiJXKW9A6c8pPUy XRNlbkclQcCrxbPIAZrisC31UWn7W4GKg1hOvR+OFZqdAhucXRldSHGUkEO+NbUB9S9S XaVu2nmp3aY/+8g9/c/Kskh84nH4FtiosOyHuJCZKQY+DsufHyQlBrv/tBuyO6TpzdFa UM+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FdyJ3zCjPfmLPOxt0EpbJoGI3z0Dst2ftnMjMBs721s=; b=A5kAOvdfkgcJKOs61/NYQlsOPSr4mO0+Vz9Seo9mVqmIy/FOtF+nrjMpuzDqln06qA nHn4CGO7JNmBsgiYNrNm+cwjOv8dIfZ00dDg7jU1bp7sUBp104QhOdqNFiE0+pKv1sFp hZUk4luo9eLCsytass0Tyi013WSYhXu9vGIKOirQ0O+f69ErgiZXF2/BJENDshg5WKzh iygzkKUTyNKGze5XIA9M8UKCRg8nWYe2GKqXXr5WL1mOg9folQT5062mB4ZBIzp30akZ 2HlATfjWr++CDUWY8GCdxcQxD6a0f8tcwxswwTcmKgeTHnhOBipmUKSVOW9N0RBL+tFr Nw0w== X-Gm-Message-State: AOAM531qj4KaOed6yOFReNmYi+ZMzR4DQNDKCElM1ZXJ/i1xa6Asp2Kr UMjK835vq0Zd5OwC+UJsk9OpTxRl5oguthGweCS1pw== X-Received: by 2002:a05:6402:542:: with SMTP id i2mr682149edx.318.1595441245286; Wed, 22 Jul 2020 11:07:25 -0700 (PDT) MIME-Version: 1.0 References: <20200624203200.78870-1-samitolvanen@google.com> <20200624203200.78870-5-samitolvanen@google.com> <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> <20200717133645.7816c0b6@oasis.local.home> <20200717140545.6f008208@oasis.local.home> <20200722135829.7ca6fbc5@oasis.local.home> In-Reply-To: <20200722135829.7ca6fbc5@oasis.local.home> From: Sami Tolvanen Date: Wed, 22 Jul 2020 11:07:13 -0700 Message-ID: Subject: Re: [RFC][PATCH] objtool,x86_64: Replace recordmcount with objtool To: Steven Rostedt Cc: Peter Zijlstra , Masahiro Yamada , Will Deacon , Greg Kroah-Hartman , "Paul E. McKenney" , Kees Cook , Nick Desaulniers , clang-built-linux , Kernel Hardening , linux-arch , linux-arm-kernel , linux-kbuild , LKML , linux-pci@vger.kernel.org, X86 ML , Josh Poimboeuf Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 22, 2020 at 10:58 AM Steven Rostedt wrote: > > On Mon, 20 Jul 2020 09:52:37 -0700 > Sami Tolvanen wrote: > > > > Does x86 have a way to differentiate between the two that record mcount > > > can check? > > > > I'm not sure if looking at the relocation alone is sufficient on x86, > > we might also have to decode the instruction, which is what objtool > > does. Did you have any thoughts on Peter's patch, or my initial > > suggestion, which adds a __nomcount attribute to affected functions? > > There's a lot of code in this thread. Can you give me the message-id of > Peter's patch in question. Sure, I was referring to the objtool patch in this message: https://lore.kernel.org/lkml/20200625200235.GQ4781@hirez.programming.kicks-ass.net/ Sami