From nobody Mon Apr 6 19:02:29 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 3E70237DEAF; Wed, 18 Mar 2026 08:25:28 +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=1773822329; cv=none; b=imucEAcUHYu1Clt+mZrUIjMW6SZjXSNaCA9U15UlJdW3kY/AQXnt0BFVA0bVQY48oLGO8UcYpANEMz5E9Q/RQA1cuB8IQbEQpgbOm9QI81EPSLiuNCLXjTsiIfvWZw66f0EFL8Ls+Y/eN/h/4aMPN2KxI6T0DlHt9YMmGc51Zwk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773822329; c=relaxed/simple; bh=omtwnZy1f7wcbia9x8GhX72FZgQHYNc9Rex/H1glbn8=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=kGIZkPQlyBHeNq90QC180BHlLt8Qmy3SbmF/dL5EeaUv4n97wlEqRrUTpmBs+qT4cgymRG4VGTNZj9fEvatuuAoYpgX6/1gMg1eNRK96v2eyUgzKvhZQ9KW4Cn4gppA5IUzXr5rqqHAUZwyp9yIx8fZf9rBn0yAqPfJp0Q4q/Lc= 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=iANDztX0; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=SMoDT5cA; 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="iANDztX0"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="SMoDT5cA" Date: Wed, 18 Mar 2026 08:25:24 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1773822326; 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: in-reply-to:in-reply-to:references:references; bh=deuIN0rm9gkouQjeOiQTZCDCA067It5vrrsMNfIhQV4=; b=iANDztX0+Ugj7HXAhjBwXQ/oU+WNhDB8bwgQtVkAIBgGL6BlGR7Z0dd26UiJiCvNglToTc 3LeXxbZ4JVE0njl4lclMSq2eAcGhZaYTHro57PSm1pbjuQRFcOxhR3zQ6PPPPgWzEaL7Cn 9rEKbaI9Cu/sJqb8pGI5cfvuz0fGS53XxtljHNjeBbkOqZh6ZMLBagcZqgvHBLreCx68Ag RFKeXazmQltun37rUcMhvzqWuKIO4XU9KXKg/lLJUQ0DgsjlkwSTu2YD1IfYMDyai45qa+ lmDDLLdxq1CRxV5vsh/+iRRQKorJaBYzqCWBuFFgsOnU6cJXbnD/wRKBVbq+pA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1773822326; 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: in-reply-to:in-reply-to:references:references; bh=deuIN0rm9gkouQjeOiQTZCDCA067It5vrrsMNfIhQV4=; b=SMoDT5cABtmWTsT6YaCV345ApEBuHrEKvGZg/OA0bzthTpM8M6Vo3LMNFzUn6iluqQU20K 82A6HR54jDxKoaDw== From: "tip-bot2 for Joe Lawrence" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: objtool/urgent] objtool/klp: fix data alignment in __clone_symbol() Cc: Joe Lawrence , Josh Poimboeuf , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260310203751.1479229-2-joe.lawrence@redhat.com> References: <20260310203751.1479229-2-joe.lawrence@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <177382232495.1647592.10712750497507520770.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/urgent branch of tip: Commit-ID: 2f2600decb3004938762a3f2d0eba3ea9e01045b Gitweb: https://git.kernel.org/tip/2f2600decb3004938762a3f2d0eba3ea9= e01045b Author: Joe Lawrence AuthorDate: Tue, 10 Mar 2026 16:37:40 -04:00 Committer: Josh Poimboeuf CommitterDate: Mon, 16 Mar 2026 12:39:45 -07:00 objtool/klp: fix data alignment in __clone_symbol() Commit 356e4b2f5b80 ("objtool: Fix data alignment in elf_add_data()") corrected the alignment of data within a section (honoring the section's sh_addralign). Apply the same alignment when klp-diff mode clones a symbol, adjusting the new symbol's offset for the output section's sh_addralign. Fixes: dd590d4d57eb ("objtool/klp: Introduce klp diff subcommand for diffin= g object files") Signed-off-by: Joe Lawrence Link: https://patch.msgid.link/20260310203751.1479229-2-joe.lawrence@redhat= .com Signed-off-by: Josh Poimboeuf --- tools/objtool/klp-diff.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/objtool/klp-diff.c b/tools/objtool/klp-diff.c index a3198a6..c2c4e49 100644 --- a/tools/objtool/klp-diff.c +++ b/tools/objtool/klp-diff.c @@ -14,6 +14,7 @@ #include #include =20 +#include #include #include #include @@ -560,7 +561,7 @@ static struct symbol *__clone_symbol(struct elf *elf, s= truct symbol *patched_sym } =20 if (!is_sec_sym(patched_sym)) - offset =3D sec_size(out_sec); + offset =3D ALIGN(sec_size(out_sec), out_sec->sh.sh_addralign); =20 if (patched_sym->len || is_sec_sym(patched_sym)) { void *data =3D NULL;