Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp397617ybg; Fri, 12 Jun 2020 04:37:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTC+IaiZm3IdTllhxozJskVIQDAL6POSg1Cgot+eHZbnxsjBZ3bbRccBZyMTxKiISJBxZd X-Received: by 2002:a17:906:b1c3:: with SMTP id bv3mr13095700ejb.292.1591961828509; Fri, 12 Jun 2020 04:37:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591961828; cv=none; d=google.com; s=arc-20160816; b=sNC1w3XzP6C0d/lYSFCzEEAN+ceOh9AlnbORxUuuw5hUGypGNOoY8U81tI6xCnHyfX Kw5z89sxgYUnL2FKiKF7A4ewuwHxefbMoIz+Gzd/3LKZY9iixWrmc3WqutTAPt1zQwbb i9muifKeDDyiWAGrR1Cbo5AcRbjrekuoZq/I7uf/lGJtc3ZVDfPEDWa9VGL4k7IYzwje zBb3Br0ysyW2RXSBkRhX+86XLOY0ap6ZFHX/9JHmBSJE98Eh909ixkypmzzr4LNQ8Rit 4C6cDtWqBtEhVKr4ktCwqlkAVStE6dVyzj9ek+AUpKpk0KDq+idFl2hwuuHwJI2RFjFw +R/Q== 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=KeIr7tqTdmTxWp0qLbXPXOvRu/jpVQnRhJVoQ2kBrSM=; b=EN0EOK5DmDv89DtHNQe98BQX8ZGTIx2YVG3N1DADrqq7L9+7DAgNKT3bhGoyFPO1JC AIowvk7EMLMApjTTBQ2Q6FHldGkJ9ujkwEa8kRTotX6KDLITCJ/NpTO0wR37wwO0tmfj IJZKt+3bKOXvjORRzLRqUy2kwPybPamRtE73PHtTHQS8hvijChwDOc81UXcoisdMFlSa v/EtVFoqiGfAKxh5gmVym5O3A54niAGdgXWGfbg/zB+r1qXZDY9b0PTrmZ7f6ppWFA5J F1UVdZ/EZuhzhsXnPQ3UsArrK7ZfQnket4atF6VZ5Irem35SpPkoBkD/7JTpJtojodUs bk2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=oCw3KNDX; 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 l19si3262673edq.428.2020.06.12.04.36.45; Fri, 12 Jun 2020 04:37:08 -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=fail header.i=@infradead.org header.s=merlin.20170209 header.b=oCw3KNDX; 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 S1726109AbgFLLeh (ORCPT + 99 others); Fri, 12 Jun 2020 07:34:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725791AbgFLLeh (ORCPT ); Fri, 12 Jun 2020 07:34:37 -0400 Received: from merlin.infradead.org (unknown [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02007C03E96F for ; Fri, 12 Jun 2020 04:34:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; 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=KeIr7tqTdmTxWp0qLbXPXOvRu/jpVQnRhJVoQ2kBrSM=; b=oCw3KNDX0AVf+U81PyTyWou803 imm7191iocxcQquXKfKwALJLj+TKIEZdqNCmCyxJFoVdI0Fc1pZUAExcRyVEhkjZkDf2QQ1lsBpSF Sxnb7mRGT2R2ZXENaSoW5eCjXyMBt5JxDXgmSiVSaKW+Rje8HVHYNG1PqfBhJU1Lg1HmP6cSMYvQW z7oFpVbvpqVNs2HXtHXdoUOxdbxToR4USKum1W4PtarJIzLMu+9EHWtNRU/O4OtCq90BXT1Mca2Qm Lp3v7y+/lyQpKANNAbAhNOCaekQ++Ym+ZHqW4IJRd9P/LAyW2uhg9xjWpzB8a08zb1jo/6yktPLOO cUILSB9g==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jjhwi-0002Ob-Nd; Fri, 12 Jun 2020 11:34:05 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id C57B83003E7; Fri, 12 Jun 2020 13:34:01 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id AB98B29DB6157; Fri, 12 Jun 2020 13:34:01 +0200 (CEST) Date: Fri, 12 Jun 2020 13:34:01 +0200 From: Peter Zijlstra To: Dmitry Vyukov Cc: Marco Elver , Andrey Konovalov , Mark Rutland , Borislav Petkov , Thomas Gleixner , Ingo Molnar , clang-built-linux , "Paul E. McKenney" , Alexander Potapenko , kasan-dev , LKML , the arch/x86 maintainers , Andrew Morton , Josh Poimboeuf Subject: Re: [PATCH -tip v3 1/2] kcov: Make runtime functions noinstr-compatible Message-ID: <20200612113401.GC2554@hirez.programming.kicks-ass.net> References: <20200605082839.226418-1-elver@google.com> <20200605120352.GJ3976@hirez.programming.kicks-ass.net> <20200608110108.GB2497@hirez.programming.kicks-ass.net> <20200611215538.GE4496@worktop.programming.kicks-ass.net> <20200611215812.GF4496@worktop.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200611215812.GF4496@worktop.programming.kicks-ass.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 11, 2020 at 11:58:12PM +0200, Peter Zijlstra wrote: > On Thu, Jun 11, 2020 at 11:55:38PM +0200, Peter Zijlstra wrote: > > I'll have to dig around a little more to see if I can't get rid of the > > relocation entirely. Also, I need to steal better arch_nop_insn() from > > the kernel :-) Oh, I just realized that recordmcount does exactly this same thing, so I checked what that does to the relocation, and it turns out, it does the same thing I did. They change the relocation type to R_*_NONE too. So I suppose that's all right then. I suppose I ought to go look at the recordmcount to objtool patches to see if there's anything to share there.