From nobody Sat Jun 13 22:04:00 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 54275402BA2; Tue, 5 May 2026 10:56:33 +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=1777978594; cv=none; b=l1I2GzFP3d/GX+1BqZxXeeWeL6PEUcQz+dK2FfgBJ80Ua5CS3+PkIE3rUJG9bBOB7kQCHAwWZPbGyUbKP71tcrTVi1alJr+I7Zubz5GgCuabUPQXazRY1sYGGH1TymMZf4FVOLkfFHl9tB7R/ZvdnH9Plfo8AOiFsvYxOJZegIM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777978594; c=relaxed/simple; bh=O0783BmLQS//9nlyq6HMnU1PrIK5k1BkZG30OvNNA9E=; h=Date:From:To:Subject:Cc:MIME-Version:Message-ID:Content-Type; b=bzPDMJOgVH4qVPOk9D58OJyt0e2sBs312iR8SwTApvAPZNqtPrTAQkfNyKVIKuztGgOSenMy2p15RS3r/iSAL/oTopudMHR2YyVuxj/f+cSM0IXxXacwrL6wo4wEfGKYsSGsQnqLFwN6PgiD9+ui/ThA6Aog23lTaO9G7h65DLA= 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=L+JDZb7d; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Wf4Uzgpj; 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="L+JDZb7d"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Wf4Uzgpj" Date: Tue, 05 May 2026 10:56:29 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1777978591; 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=CkPTeiGvyUs5rolIDAwrQ6EKHKZlkaboHfMHdcxStFE=; b=L+JDZb7d9W408zffqpwPay66QVgjje9gwOPxN8GiKV5Rx8XUsujwIJdDbXx30eVxN1v4d5 kIHMoUb/naxe/sj74EbCH70K63GXnhV5QQoPW03PeewU+298OyuitAIxhwx+TsIgo614lU /dTZ81f56lsy2RTLJB0VophhN2hgq54B44paPFp0p2Z88BNHjNbQY7xQ1808nyZ3y/KjX6 EuhxmK0KDd65208zdeLEa4ctFS9wZfLQA+cgiaC7/0HtcONSeb7NCkNpYG97vDaSgxrBFC uDkw+I/sH7P6taP9e0NpUv85vjQ15HKgpuL92p+hxzuerVObI2ne5V6Ff6exJA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1777978591; 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=CkPTeiGvyUs5rolIDAwrQ6EKHKZlkaboHfMHdcxStFE=; b=Wf4UzgpjWs/+QfLEBk2JvP/Fjh4mQ4EEJ/ijFDIi1LZx/vtGQSaWQH0ALzOWILT6x7+n/X msWOsm5sTKHOhlBA== 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: Fix reloc corruption in convert_reloc_sym_to_secsym() Cc: Song Liu , 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: <177797858984.424702.5109976734826928850.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: 5f49ec82b9f65507c262a6e3f1b53663f79eedce Gitweb: https://git.kernel.org/tip/5f49ec82b9f65507c262a6e3f1b53663f= 79eedce Author: Josh Poimboeuf AuthorDate: Wed, 29 Apr 2026 21:54:41 -07:00 Committer: Josh Poimboeuf CommitterDate: Mon, 04 May 2026 21:16:02 -07:00 objtool/klp: Fix reloc corruption in convert_reloc_sym_to_secsym() Use the section symbol's index instead of the old symbol's index when updating the ELF relocation entry in convert_reloc_sym_to_secsym(). Found by Sashiko review. Acked-by: Song Liu Signed-off-by: Josh Poimboeuf --- tools/objtool/klp-diff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/objtool/klp-diff.c b/tools/objtool/klp-diff.c index ca87bcb..463b6da 100644 --- a/tools/objtool/klp-diff.c +++ b/tools/objtool/klp-diff.c @@ -975,7 +975,7 @@ static int convert_reloc_sym_to_secsym(struct elf *elf,= struct reloc *reloc) return -1; =20 reloc->sym =3D sec->sym; - set_reloc_sym(elf, reloc, sym->idx); + set_reloc_sym(elf, reloc, sec->sym->idx); set_reloc_addend(elf, reloc, sym->offset + reloc_addend(reloc)); return 0; }