From nobody Thu Apr 9 12:04:12 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 BE5B73B95F7 for ; Mon, 9 Mar 2026 16:03:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773072192; cv=none; b=HbfrusAzWy+pcG0Y7yhMzbWlgaIrfvEK7eWoXnNPDPlKGK1DjJ/lF6zKT2lq701Mn5uHTbqwsltnga+U2UzcgoLdgL8IMIehmsWCiJaTqyLKfYGAHQAM8ZkkCijypGrOAmE/ZNcPPkknyqZWW7dZ830hjwEbRkglBeivbqDhQ3E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773072192; c=relaxed/simple; bh=IggE54/eCjn/84s2D0UlHxfX2QC0NMprcNHFgUXHpb4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=JpeWa1WwnGVxLPFypT68ezKlW7ckTS9JK4n0Ji6w/L7+L9u8UrApMY6smRaqPQynmlRwiWSvf3cbxMlBCz6wa7+R+xFRm4fAR/JGiStrovWDNU0zDhQiS8i9lwQc4NDWFzFfOjIV+ntbfPSSANJ+X7yshLvNB5sMLtKT+6y/Qr0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=eUuVUPj8; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="eUuVUPj8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 386C0C2BCAF; Mon, 9 Mar 2026 16:03:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1773072192; bh=IggE54/eCjn/84s2D0UlHxfX2QC0NMprcNHFgUXHpb4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eUuVUPj8Gv06StVObZ7uONErpa2QiY58YFx2imku9ApY+cqpFxyT5A8i29QhzG8Mo 1AxxNfERArHJeun9cgXGTfhlpb8afulXuNbPxoqisAHmUUFyG/C3UjzqUIU6/zm536 8LWtCSk8/da2iNhL+2f12DDtYCT8U1fMbNDw/9go0Xedd3l/nYxn9TEjxFkNaJCsW0 JceuqcvgrqWTLd2XPrpgXzaPRseCpeXafeRuj0N4VZyQMWAj8ds1HfE6k8ZOFuvXP9 Vx51Kth9gKm8qFLvsUS2LiucZYccEwpcjbN75uvSDXwXjrH3Gx+1xOQNloPQEp5hwY 62Ur1y97atBxw== From: Josh Poimboeuf To: x86@kernel.org Cc: linux-kernel@vger.kernel.org, Arnd Bergmann , Peter Zijlstra , Nathan Chancellor Subject: [PATCH 1/3] objtool: Fix Clang jump table detection Date: Mon, 9 Mar 2026 09:03:05 -0700 Message-ID: <7d8600caed08901b6679767488acd639f6df9688.1773071992.git.jpoimboe@kernel.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" With Clang, there can be a conditional forward jump between the load of the jump table address and the indirect branch. Fixes the following warning: vmlinux.o: warning: objtool: ___bpf_prog_run+0x1c5: sibling call from cal= lable instruction with modified stack frame Reported-by: Arnd Bergmann Closes: https://lore.kernel.org/a426d669-58bb-4be1-9eaa-6f3d83109e2d@app.fa= stmail.com Signed-off-by: Josh Poimboeuf --- tools/objtool/check.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/objtool/check.c b/tools/objtool/check.c index 91b3ff4803cf..b6765e876507 100644 --- a/tools/objtool/check.c +++ b/tools/objtool/check.c @@ -2184,12 +2184,11 @@ static void mark_func_jump_tables(struct objtool_fi= le *file, last =3D insn; =20 /* - * Store back-pointers for unconditional forward jumps such + * Store back-pointers for forward jumps such * that find_jump_table() can back-track using those and * avoid some potentially confusing code. */ - if (insn->type =3D=3D INSN_JUMP_UNCONDITIONAL && insn->jump_dest && - insn->offset > last->offset && + if (insn->jump_dest && insn->jump_dest->offset > insn->offset && !insn->jump_dest->first_jump_src) { =20 --=20 2.53.0