From nobody Sat Jun 13 21:01:39 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6423C481FDF; Tue, 5 May 2026 10:56:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777978612; cv=none; b=Ntiz7OjZEZCGMzD8Z0pJollM3sTWimfubCrAVu7hKj+lHVINouHS8OM85J931KNsUmnXy8STqLmFG6PS5hyQdtUp1MtxQt+8Ogrolcdal7+IoN29ICuakNL07UvXs59dVaKv7hHkoORUClqJbiYMg7omaLV154ZPkJg+Nshxh7o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777978612; c=relaxed/simple; bh=M7HCLJxMpa20ydGBFTosc6yF0tSH+xkrFI9o7I7lex8=; h=Date:From:To:Subject:Cc:MIME-Version:Message-ID:Content-Type; b=VdOFSRegT7Y3s8g+HRYFi34lrselnlqhlZe5IrCuEJ+HmtaRSyDTehwFhqxzkAh6Z/BUQY98g45ufMWjfLWh+r0PB6/C3UaEE9ptxGa8b8Zl876WZggTEgnycAt1pLg0mlCtzsnhvJe3WabL6L0ZpHM4rH6NPdx63gEYyLyQt/Q= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=RgNUm98R; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=+tnwDxmu; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="RgNUm98R"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="+tnwDxmu" Date: Tue, 05 May 2026 10:56:48 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1777978610; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Foz/lnusfppHNFxWDwk6ockEVH0N6ykwjv6ZfWG84z4=; b=RgNUm98Re2rnB4oKg9afNAJJ1eY50ymQs8Lf6WfNk35tNFkHwxLwxun5bQGKdwfjYYHHqo Nb8NE8FxQ8TI89k58McOMmGZSqFoqdj9M1g2bL4iJKCQE+q+cO7SRVMkB70BzwnmGTcoJl RNzwc5n5dxvqjnA+3iJyyeCW7i+t5NPhsdOyx3p1Adkt3w5Q8POhT9IM/TQvggOLoz/rQl ZseByrIkgKNEil+QeEJ6msm/PNV87hUyG5H+rA14A0OSz7T/1Jes6KWDbV/6/oLPq96b31 o1RixBtkv97S66aoB9x9MbEewVYEHKPPmspr0Mh0aBHOfaqrvqxtPLCrTdsulQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1777978610; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Foz/lnusfppHNFxWDwk6ockEVH0N6ykwjv6ZfWG84z4=; b=+tnwDxmuwVb4409R4eohDyoS0xGNy3cRGUkCSS+5UuS1uGofma0QMsYOOakrBFVXppPd5N 5z60xncTncGJ19Dg== From: "tip-bot2 for Josh Poimboeuf" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: objtool/core] objtool/klp: Don't correlate __initstub__ symbols Cc: Song Liu , Miroslav Benes , Josh Poimboeuf , x86@kernel.org, linux-kernel@vger.kernel.org Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <177797860889.424702.5744902862160529266.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the objtool/core branch of tip: Commit-ID: 0a7823d1d70dd17fbf0e9771d9afd5067a69ded0 Gitweb: https://git.kernel.org/tip/0a7823d1d70dd17fbf0e9771d9afd5067= a69ded0 Author: Josh Poimboeuf AuthorDate: Mon, 20 Apr 2026 19:20:42 -07:00 Committer: Josh Poimboeuf CommitterDate: Mon, 04 May 2026 21:15:59 -07:00 objtool/klp: Don't correlate __initstub__ symbols With LTO, the initcall infrastructure generates __initstub__kmod_* wrapper functions in .init.text. These are the LTO equivalent of __initcall__kmod_* data pointers, which are already excluded from correlation. These are __init functions whose memory is freed after boot, so there's no reason to include or reference them in a livepatch module. Acked-by: Song Liu Reviewed-by: Miroslav Benes Signed-off-by: Josh Poimboeuf --- tools/objtool/klp-diff.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tools/objtool/klp-diff.c b/tools/objtool/klp-diff.c index 27ebe1b..4f66811 100644 --- a/tools/objtool/klp-diff.c +++ b/tools/objtool/klp-diff.c @@ -370,6 +370,12 @@ static bool is_abs_sym(struct symbol *sym) return sym->sym.st_shndx =3D=3D SHN_ABS && !is_file_sym(sym); } =20 +static bool is_initcall_sym(struct symbol *sym) +{ + return strstarts(sym->name, "__initcall__") || + strstarts(sym->name, "__initstub__"); +} + /* * These symbols should never be correlated, so their local patched versio= ns * are used instead of linking to the originals. @@ -384,10 +390,10 @@ static bool dont_correlate(struct symbol *sym) is_uncorrelated_static_local(sym) || is_clang_tmp_label(sym) || is_string_sec(sym->sec) || + is_initcall_sym(sym) || is_addressable_sym(sym) || is_special_section(sym->sec) || - is_special_section_aux(sym->sec) || - strstarts(sym->name, "__initcall__"); + is_special_section_aux(sym->sec); } =20 struct process_demangled_name_data {