From nobody Fri Dec 19 20:23:29 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 63A2A261584; Tue, 8 Apr 2025 08:12:21 +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=1744099942; cv=none; b=ffDO/5iV7YQ0K1BmWR2uAdDkYHPeqtTYE70PDjvmq9MS3/fy6ARiVjwZQoW5nBmIJdQEi1mYm7xu1oBoQW669bIZ4cpmOjLn4r89ijHX7INjTxKGhGiRR9kEgnaU1zBlv+7aW5SelELtG58ZFeH09ybGR+na/NhkWJNMhec08Mg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744099942; c=relaxed/simple; bh=Q4ERd39Qd2iT0VuXxSJOabw3G0siTL1uCCwfMQG8crI=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=ROxw8mQprkzTkb+GeExO++tcN6AwmbBnhbPBoBQw9TOPuxu1IMoUdRyqcx9lu5eViWM/IoqzGFnMZ6fZSH39vindYkESPOs9C+5pTFQu8M20BKk73aDIBBphYkxe61Bztxz3nH7rsSIJrujyOMxzvoonniwr36AbutEYO2D2Qsc= 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=A4QFAeyX; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=j8i3TDK7; 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="A4QFAeyX"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="j8i3TDK7" Date: Tue, 08 Apr 2025 08:12:18 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1744099939; 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=hcHc6xcdVh0pDq7WsXwHhFwMuMGH5OqXpAp9BV9fRJ4=; b=A4QFAeyXPu5ywPPFskqFs23Z4lgGS/nvrHXHO9Lhd5kKBZUYQJIJmO8aH9mU7zq3xK1DXh CZGsLisFXfBiYJ9yZwwmZjFYsRJ0lBSjMi/aAG9IZY4Kymnyq6xYh+kmaNxMUGzh1si+al SP092m7KYYsLe4PwgbPDgI1HBDcroUXp+PhPFwhEOo0cFHdSsJ7lZv2oPBqYEG2iIekQrh zzieHj27o6ASvLD+19YuszdwBRCsNYcsDxJ7Usawe6C39XBYB3z+jtixIQoM5zvIV03Zml PjnY4AT4XYxvQEooZap9hvlCBNwSFeT0dwOD03qP6Th7Maj1i5Lzqv/R5zUUdw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1744099939; 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=hcHc6xcdVh0pDq7WsXwHhFwMuMGH5OqXpAp9BV9fRJ4=; b=j8i3TDK7SRyoy8qV0QuYP+JddFXsFy8lgMOAYMUGjkx2FFVVKmTrUKlmB99pPGvuOphy9+ 8Ue9fpIUn72ctADQ== 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/urgent] objtool: Stop UNRET validation on UD2 Cc: Josh Poimboeuf , Ingo Molnar , Linus Torvalds , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <174409993893.31282.10039220045046805146.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: 9f9cc012c2cbac4833746a0182e06a8eec940d19 Gitweb: https://git.kernel.org/tip/9f9cc012c2cbac4833746a0182e06a8ee= c940d19 Author: Josh Poimboeuf AuthorDate: Tue, 08 Apr 2025 00:02:15 -07:00 Committer: Ingo Molnar CommitterDate: Tue, 08 Apr 2025 09:14:11 +02:00 objtool: Stop UNRET validation on UD2 In preparation for simplifying INSN_SYSCALL, make validate_unret() terminate control flow on UD2 just like validate_branch() already does. Signed-off-by: Josh Poimboeuf Signed-off-by: Ingo Molnar Cc: Linus Torvalds Link: https://lore.kernel.org/r/ce841269e7e28c8b7f32064464a9821034d724ff.17= 44095216.git.jpoimboe@kernel.org --- tools/objtool/check.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/objtool/check.c b/tools/objtool/check.c index 2c703b9..2dd89b0 100644 --- a/tools/objtool/check.c +++ b/tools/objtool/check.c @@ -3902,6 +3902,9 @@ static int validate_unret(struct objtool_file *file, = struct instruction *insn) break; } =20 + if (insn->dead_end) + return 0; + if (!next) { WARN_INSN(insn, "teh end!"); return 1;