From nobody Wed Oct 8 05:39:36 2025 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 77AE526E6F1; Tue, 1 Jul 2025 13:13:55 +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=1751375637; cv=none; b=JeZ7QzKVL4OSCik9e+h2B+XXusxXrAcN5ehjwqMQugVQQ2wPZatT4z/Y0+resggRCNcpgUnrTSzCnBWujSSkV4ByxHsoUhwj+miYjud+3LjwjAPT85TYwwnOEIwwC1/R6ZBjVcb19UNjynEiYd6I8CHCRWN6R0iZgJBtqOQ4iLA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751375637; c=relaxed/simple; bh=kt4fZzanv5xynkKpz7PiMUXYLDom31BolNA3hRXpcw0=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=aoZDBBBuWD+V4YuNhKxFJoe0Ki2NVKNjAUozTT/g+0FpN3b8eMBF+Vk78msk2Tx8ORXWkkp4A21kmIw2Eh+rd92TkNiFob1mn+9G6IMb99ybs7NBAUQWqQfcs8iy2HjWXMt7Z+WKrHyRhkaOSOQDkO71qonMyZHV61JhhW0nQZU= 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=dRk5eqrY; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=fSf6Ko16; 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="dRk5eqrY"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="fSf6Ko16" Date: Tue, 01 Jul 2025 13:13:53 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1751375634; 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=hXWlzwR4gtdD31vgnLVfx/H2PcB8dGQ408FdavLjdhM=; b=dRk5eqrYGvHsfOgr9foXY8E/1CiZbAYK3adQ5qnykV92okxghp2LVWnamRbcwVKqlnHFwe OTLXSRIfjashiwU6R/eXap5E8fRD1gRghiV6YhHYvyWEu1rxrst5nOHw1pjnE0dX7Cs8/C z1Bkwnp8/EywEO5nP4G8RO8RiNzPEzEP7coR77IgJw8ODC8glMbqnVXNWT4PYHWDXsBVut pXLRxC80KXTxRgHQ6zcU6eLWlQ0EbnoDc9ov2mCrk5BQU0XVoKf6a3M1vHFzikXPvKJQEg 6YJbjArAWG92vIaliEzKr8H6biCIV95sDe42jPp7/Zm8uFXnI8QWOBkb+eEKIA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1751375634; 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=hXWlzwR4gtdD31vgnLVfx/H2PcB8dGQ408FdavLjdhM=; b=fSf6Ko16etUPKABLO3SiX4QscpPprjAnJBPY5rVeSsx4wRCEemhcAwgKG4m95PUYHOoa56 gozenT7Hw1ZDmzCA== From: "tip-bot2 for Heiko Carstens" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: objtool/urgent] objtool: Add missing endian conversion to read_annotate() Cc: Heiko Carstens , "Peter Zijlstra (Intel)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20250630131230.4130185-1-hca@linux.ibm.com> References: <20250630131230.4130185-1-hca@linux.ibm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <175137563313.406.6298042704364318030.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: ccdd09e0fc0d5ce6dfc8360f0c88da9a5045b6ea Gitweb: https://git.kernel.org/tip/ccdd09e0fc0d5ce6dfc8360f0c88da9a5= 045b6ea Author: Heiko Carstens AuthorDate: Mon, 30 Jun 2025 15:12:30 +02:00 Committer: Peter Zijlstra CommitterDate: Tue, 01 Jul 2025 15:02:04 +02:00 objtool: Add missing endian conversion to read_annotate() Trying to compile an x86 kernel on big endian results in this error: net/ipv4/netfilter/iptable_nat.o: warning: objtool: iptable_nat_table_init+= 0x150: Unknown annotation type: 50331648 make[5]: *** [scripts/Makefile.build:287: net/ipv4/netfilter/iptable_nat.o]= Error 255 Reason is a missing endian conversion in read_annotate(). Add the missing conversion to fix this. Fixes: 2116b349e29a ("objtool: Generic annotation infrastructure") Signed-off-by: Heiko Carstens Signed-off-by: Peter Zijlstra (Intel) Link: https://lkml.kernel.org/r/20250630131230.4130185-1-hca@linux.ibm.com --- tools/objtool/check.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/objtool/check.c b/tools/objtool/check.c index f23bdda..d967ac0 100644 --- a/tools/objtool/check.c +++ b/tools/objtool/check.c @@ -2318,6 +2318,7 @@ static int read_annotate(struct objtool_file *file, =20 for_each_reloc(sec->rsec, reloc) { type =3D *(u32 *)(sec->data->d_buf + (reloc_idx(reloc) * sec->sh.sh_ents= ize) + 4); + type =3D bswap_if_needed(file->elf, type); =20 offset =3D reloc->sym->offset + reloc_addend(reloc); insn =3D find_insn(file, reloc->sym->sec, offset);