Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp520764ybg; Fri, 12 Jun 2020 07:39:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx18gxFRNiFnnYVjUOKV1iC2IxzT9K7+jEnP52EwKPaJlTj2BIFGu2/NPtAxxe5jyd1CQel X-Received: by 2002:a05:6402:22ca:: with SMTP id dm10mr11723190edb.115.1591972799438; Fri, 12 Jun 2020 07:39:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591972799; cv=none; d=google.com; s=arc-20160816; b=U73iRm8SuskJy+EUmWiyINGbdmK1dBd5NsD7+0AgRfrp7lBi/EWL+GebjuZM5sjzmE jf8UDPib5XZ3bwNDxnNUgdIbWjO9QE1+uOxfwy0WM+XWzbzn36ZcWSxihC/CaWxXRHXN TafDAau1MZP82hR0J/MqDQbjXTFYM4Lf+m+0JjfzOXipHBASPwXutJkIaA00xnvHS2Xh tH2xBByCrOoJXvtTNFfCNmfVDfgYSjVKAS4g2C8VrQQF8L26jhM+o/0vCCgvB0GW+upn MJ/lHzhPXCcLsF8tM1HJzQETT5Sa49cKN0QWzgX4DgN/LsdXSJHUp6wojOO/afdTcecD VXFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:cc:to:from:date:user-agent :message-id:dkim-signature; bh=o8Ne4mF5hiMjy68Cd2Jibbz9gAZEggeduQGzA7GEfPQ=; b=aAHgwGHJnlNEDLLb376lz0KUp9B0uFe+YoaP09KA/f4dNy2J8YAXzbHneLc0BmgcA/ akx8Y7ApYFugP7tS7HUYwuzxkNwIXVxB9EpqIyZejuQYlhEE+R6ux9CXBWEOAw022nj2 +j2KsG26MmxTLGKvVR2aCGuM3i7qc6Lqy2SITnIV2MytyfcM7CPDqY1Mo/4azM096ipM w3EWvD4dyeHmAYrhYQkUWbB4upp7pKt6rFJ/q4oIad4g345xD04GYxkihf1luNLb5lb3 42+UqeGOLo406qDhP2i8YrBxDjALqMDwuhsEoP8qDpDQc653GhlghNlRj6NX6vo2Q72i 2Grw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ZTr9tY13; 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 p27si4076237eji.153.2020.06.12.07.39.36; Fri, 12 Jun 2020 07:39:59 -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=bombadil.20170209 header.b=ZTr9tY13; 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 S1726404AbgFLOhw (ORCPT + 99 others); Fri, 12 Jun 2020 10:37:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726262AbgFLOhv (ORCPT ); Fri, 12 Jun 2020 10:37:51 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74B05C08C5C2 for ; Fri, 12 Jun 2020 07:37:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Subject:Cc:To:From:Date:Message-ID: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:In-Reply-To:References; bh=o8Ne4mF5hiMjy68Cd2Jibbz9gAZEggeduQGzA7GEfPQ=; b=ZTr9tY13yVX06h2LuBD+OIgZ1C ibFGUSlNB7CHgN6jLIPNZGu8pJI0NkyiV1tGdeKq8wmRaBN3h1MPz5nTb7/tihtYzJ5bTksantabP 9AMLbPUkT8ciPKgY8DsXADnZmSuOrNu7osL6pLWEyQwoVkhNYVk7xkDnKdvcYFDALDRGWePMdfXBN UIPk32aLjzssW6o4Brzok0/qMr8d9T8n/pALyEk1ZR2SiIb9VISEb+j+TOsO/dloSErPx512R9JBX ZXhLSZ1kl4jsWd7s9RKWXvNXhnm24FRbCvJTwwCL56l8M+675seRz0oWPZ/JrvaCjTxSgMltz1UNz 39/J9Xjg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jjkoI-0006ub-62; Fri, 12 Jun 2020 14:37:34 +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 E3DD13011B2; Fri, 12 Jun 2020 16:37:31 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 0) id BFE732389EB9E; Fri, 12 Jun 2020 16:37:31 +0200 (CEST) Message-ID: <20200612143034.933422660@infradead.org> User-Agent: quilt/0.66 Date: Fri, 12 Jun 2020 16:30:34 +0200 From: Peter Zijlstra To: Josh Poimboeuf Cc: linux-kernel@vger.kernel.org, x86@kernel.org, dvyukov@google.com, elver@google.com, andreyknvl@google.com, mark.rutland@arm.com, mhelsley@vmware.com, rostedt@goodmis.org, jthierry@redhat.com, mbenes@suse.cz, peterz@infradead.org Subject: [RFC][PATCH 0/3] objtool: KCOV vs noinstr Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi All, These patches go on top of objtool/core, although possibly we need them earlier. In order to solve the KCOV-vs-noinstr situation, we need objtool to rewrite calls to __sanitizer_cov_*() into NOPs, similar to what recordmcount does. I'm hoping the pending objtool-recordmcount patches can also reuse some of this.