From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BDBFFEE20B6 for ; Fri, 6 Feb 2026 16:40:56 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4f70Fz28F9z2xqk; Sat, 07 Feb 2026 03:40:55 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip=172.234.252.31 ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1770396055; cv=none; b=gqTpu2SKX+BJ7l8OCpBRxUV92LqIowjGbUYwQqP62MnpdIUugNe8mNvRzq4eCC4iGlh+vKi3wYJyC8boSuOSBAHUgKCFnsP2kXm68hGzoykgmxRS+HvRbueIsRwsA9SHh8idFBPNCupOGmy3DHuSg7+bWw0QluEUPO/dP1ykgRkqjxvwUNwK4Ad6qSwidxYfRyMU7DQNFvqmBHzfvvA0yCqhflu2rOY/kpTKvq4/VUTSvrqiDoH0cJnB7iqpsolhMY4H4+shy0zZHfFWdacHlV9X7fAXJDwE1yerokuFWD2kLo07cN8OCr6N/8tb0FEt/6rmgHnf9XfpsVex4Nmmsg== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1770396055; c=relaxed/relaxed; bh=oVsUJmi6Ts4qcq7J8sjKfgzPzILeP40431uxH3BcGCM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=iaK7k7g6n8kOid8SltPrF3CYtuam6DA3bI+F95rLmKLJ/sj6QLbwEYouT7dbpSHQOqMntHR1/kH91hKeoAHMotSexDjMHv2Ulx5n8irufOdUtM6/5oZM3IwXlZTSlbBEXOGg9hEITaLCZo5hXZq3xQd5KRnNfUg0EziMwnJXZFQDSqHIJFkz9P4DUEV0KecSBf6KBFJ7XCWiAHfC8710POVMSJtTZVOdhGu5qKtm0skuXTpsDy3wbsdNGQuwgKWyhgeUiT4lRAQRbWKltnxXO8htRXZ0UzK1yD2u5DfpDnmdhtwxGLKGTcdxzugRx7SfWsNlCgcnTUmNqzdLc6ODKA== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=FIH2NESO; dkim-atps=neutral; spf=pass (client-ip=172.234.252.31; helo=sea.source.kernel.org; envelope-from=nsc@kernel.org; receiver=lists.ozlabs.org) smtp.mailfrom=kernel.org Authentication-Results: lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=FIH2NESO; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=172.234.252.31; helo=sea.source.kernel.org; envelope-from=nsc@kernel.org; receiver=lists.ozlabs.org) Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4f70Fy3brRz2xpg for ; Sat, 07 Feb 2026 03:40:54 +1100 (AEDT) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 3797743A99; Fri, 6 Feb 2026 16:40:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 86ECDC116C6; Fri, 6 Feb 2026 16:40:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1770396052; bh=OjlPJKal/r/xktrObWF4EN+W4fuERCVz3klo7EziBEM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FIH2NESOpXVNtlsSPOGEvXUlIr8NT0wIDfGRfc1bk+sPGjdRpSfsSTlY77gAT017B pDMgsPGn7HM6G8E87LjlTTI3lgCl6kFmDgi3YJcUbZ2khhGki0oM8bR3itauRubqjA ncOqK4PJdbq/ogiMPom7Tak80clT69VqTtSSeVjXvyoh25+n3r8P0AQZFkmFRBXtu1 rLtI31y0YJ0Xs7/etvJiILp/OUjG/c2vXek8MdRS21VJxswsocPhGCgtJpj0duPNdW /EpU+4R3zkXnDNgvg2GnUqYK1pn88YOBzSTDmMoEyyQZf3EmgQ62akVoY4ixn6Ml+X EWeAMoP9M82QQ== Date: Fri, 6 Feb 2026 17:37:01 +0100 From: Nicolas Schier To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= Cc: Nathan Chancellor , Arnd Bergmann , Luis Chamberlain , Petr Pavlu , Sami Tolvanen , Daniel Gomez , Paul Moore , James Morris , "Serge E. Hallyn" , Jonathan Corbet , Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , Naveen N Rao , Mimi Zohar , Roberto Sassu , Dmitry Kasatkin , Eric Snowberg , Daniel Gomez , Aaron Tomlin , "Christophe Leroy (CS GROUP)" , Nicolas Bouchinet , Xiu Jianfeng , Fabian =?iso-8859-1?Q?Gr=FCnbichler?= , Arnout Engelen , Mattia Rizzolo , kpcyrd , Christian Heusel , =?iso-8859-1?Q?C=E2ju?= Mihai-Drosi , Sebastian Andrzej Siewior , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-modules@vger.kernel.org, linux-security-module@vger.kernel.org, linux-doc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-integrity@vger.kernel.org Subject: Re: [PATCH v4 07/17] kbuild: generate module BTF based on vmlinux.unstripped Message-ID: Mail-Followup-To: Nicolas Schier , Thomas =?iso-8859-1?Q?Wei=DFschuh?= , Nathan Chancellor , Arnd Bergmann , Luis Chamberlain , Petr Pavlu , Sami Tolvanen , Daniel Gomez , Paul Moore , James Morris , "Serge E. Hallyn" , Jonathan Corbet , Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , Naveen N Rao , Mimi Zohar , Roberto Sassu , Dmitry Kasatkin , Eric Snowberg , Daniel Gomez , Aaron Tomlin , "Christophe Leroy (CS GROUP)" , Nicolas Bouchinet , Xiu Jianfeng , Fabian =?iso-8859-1?Q?Gr=FCnbichler?= , Arnout Engelen , Mattia Rizzolo , kpcyrd , Christian Heusel , =?iso-8859-1?Q?C=E2ju?= Mihai-Drosi , Sebastian Andrzej Siewior , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-modules@vger.kernel.org, linux-security-module@vger.kernel.org, linux-doc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-integrity@vger.kernel.org References: <20260113-module-hashes-v4-0-0b932db9b56b@weissschuh.net> <20260113-module-hashes-v4-7-0b932db9b56b@weissschuh.net> X-Mailing-List: linuxppc-dev@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Archive: , List-Subscribe: , , List-Unsubscribe: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20260113-module-hashes-v4-7-0b932db9b56b@weissschuh.net> On Tue, Jan 13, 2026 at 01:28:51PM +0100, Thomas Weißschuh wrote: > The upcoming module hashes functionality will build the modules in > between the generation of the BTF data and the final link of vmlinux. > At this point vmlinux is not yet built and therefore can't be used for > module BTF generation. vmlinux.unstripped however is usable and > sufficient for BTF generation. > > Signed-off-by: Thomas Weißschuh > --- > scripts/Makefile.modfinal | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/scripts/Makefile.modfinal b/scripts/Makefile.modfinal > index adfef1e002a9..930db0524a0a 100644 > --- a/scripts/Makefile.modfinal > +++ b/scripts/Makefile.modfinal > @@ -40,11 +40,11 @@ quiet_cmd_ld_ko_o = LD [M] $@ > > quiet_cmd_btf_ko = BTF [M] $@ > cmd_btf_ko = \ > - if [ ! -f $(objtree)/vmlinux ]; then \ > - printf "Skipping BTF generation for %s due to unavailability of vmlinux\n" $@ 1>&2; \ > + if [ ! -f $(objtree)/vmlinux.unstripped ]; then \ > + printf "Skipping BTF generation for %s due to unavailability of vmlinux.unstripped\n" $@ 1>&2; \ > else \ > - LLVM_OBJCOPY="$(OBJCOPY)" $(PAHOLE) -J $(PAHOLE_FLAGS) $(MODULE_PAHOLE_FLAGS) --btf_base $(objtree)/vmlinux $@; \ > - $(RESOLVE_BTFIDS) -b $(objtree)/vmlinux $@; \ > + LLVM_OBJCOPY="$(OBJCOPY)" $(PAHOLE) -J $(PAHOLE_FLAGS) $(MODULE_PAHOLE_FLAGS) --btf_base $(objtree)/vmlinux.unstripped $@; \ > + $(RESOLVE_BTFIDS) -b $(objtree)/vmlinux.unstripped $@; \ Reviewed-by: Nicolas Schier # kbuild I'd like to have some BTF ack for that. -- Nicolas