From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796291255; b=MWp2jThmp0uarffY6yzZ44q7gDdxN2Jw4Mvq4i5ATR4HQ5bCVEuSu8hCjqK/1kmi2B/F KvJiR9UJGyXIS+Z2KMEAXs8GoU8u5dtmmyJh9mJ0NUHLC8tzwpOPVtTFz6503FHTpYrqa OfO8Mk+mJufFN8sFYyp9On+A2jj8V/dYgUUcn1xizOpsJkq3ppRcc3v9ZUIqfpMZz/eno 5coF7kUuc2ZXSbb72gQQjKKqLgXy8MpmZ3tlAVxj0XGeIKmL7F69vCRA2DgGiFp+IhF/U e0DeZDlhp434dVF0HSn6+log6WEWa+FBHyHnuwsw6DAELoqJ5uJRR0FDIz23cueUnUA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796291255; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:MIME-Version:Content-Transfer-Encoding; bh=TjPQGeYMD7K7c1jL0EG9v44huYleObNVjrYpbUzNnHQ=; b=QURwl5MxkQ44+W9TGjcrRlit28+uqjrTA5TZplRGLPWX7O/7DRNI7Iy9/3/4WT65H9Cj g1CXo0QKHNd11DiOjpA8B5qOWCJtQlagTy6K91cEqOKl5SSAZBTKdOMJWF2dAIIEuX30i 3cOjyqBVHnj7+eQ+/STMymStjVt4WcHMmqQ0hrPbauhb6valL/VrBRaqazRTTpeN5PoL/ eEkXK3GHTVzu88Zcrt2o/A9VG70rR6fk4sOOCNzWwZfPpZjwRdYPs7tuCqnJ1mM9j+nUN o3ZJ4oJOuLIDI1IrzJc6ZI4j7tJ3tAl9c05v5y5LqpF5YV16L0vyTBX3lmQYGEr4IHg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=lb7Ibv6d; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 098C8606A322; Thu, 3 Dec 2026 09:47:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=lb7Ibv6d Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A8141F00896; Thu, 3 Dec 2026 09:47:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796291254; bh=TjPQGeYMD7K7c1jL0EG9v44huYleObNVjrYpbUzNnHQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=lb7Ibv6d6aHIfJYywHWsS9DuCqZlo3dHVo4SpHHmMn3Q2GtIB+pEK7w6R9S6XwPPA YZndBodOhmfjq/qTlCTRmvR+x9Hs908T72PJHAmWzPAyThbeAW94qMCsxquRoZBqMz cxgepjExoLMOs8z8Y2k4XEaqOzWHndQ5KNSvo+8EE8cMkYGg913kcgSATsQUbWhTnK Gsys8VYFHTTni5oCzhlC4Xo7IT1EWBXdFgPAtsFuWyT13DHj38tGL44r7K/kVS8EEl yr9YOwZXo2Z8vUiTPi9WZ8o7RlRTYd7031jemRjmLNtoddDutEpxkAERgNmxhrADHj QSOEnFNAXtBwg== From: Sasha Levin To: Josh Poimboeuf Cc: linux-kernel@vger.kernel.org, Bill Wendling , Chuck Wolber , Justin Stitt , llvm@lists.linux.dev, Marco Elver , Masami Hiramatsu , Nathan Chancellor , Nick Desaulniers , Peter Zijlstra , Thomas Gleixner Subject: Re: [PATCH v3 11/19] objtool: Point the remaining coverage accesses in noinstr code at a sink Date: Thu, 3 Dec 2026 04:47:31 -0500 Message-ID: <20261203094731.3062999-1-sashal@kernel.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: References: <20261125020603.3934222-1-sashal@kernel.org> <20261125020603.3934222-12-sashal@kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On Tue, Dec 01, 2026 at 11:25:50PM -0800, Josh Poimboeuf wrote: >I think patch 10 isn't necessary; the patch 11 approach could be used >universally. But also even patch 11 is overly complicated and I suspect >something like the below would be sufficient: I gave it a spin and it works :) On the three builds I test it catches exactly what 10 and 11 catch, with a lot less code. I did spot a few issues: - The stores are still there, so the sink can be watched. A write breakpoint on it hangs my guest, like the one on the counter did. With the NOPs, GCC had nothing left to watch. - The sink only has a section symbol, so there's no name to refuse in hw_breakpoint if we ever want to. In vmlinux it shows up as __gcov0.__memcpy_flushcache+0x70. - Every counter update in the entry code still runs, and they all hit the same 8 bytes. With GCC, a getppid() loop is about 1.5x slower than with the NOPs. If you're OK with those, I'm happy to switch to it for v4. -- Thanks, Sasha