From nobody Mon Apr 6 18:55:59 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 E4B3137C908; Wed, 18 Mar 2026 08:25:22 +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=1773822324; cv=none; b=I+etqhAOOJz/1Lwfz4+MEBTjU6zcFvKgr/chO2HK1IFp4tRnKNrocyNIymZdwwAfnawpps6aPoUjwGOfSsXYyHSV7fBL/8O1PREGdap3QZVvBHQ/IdV1GIDkZE5tOO75t3JiRrazUM4yAS/5/AFlIs8iong704BkYMNj9EEqCLc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773822324; c=relaxed/simple; bh=TmNUFLvIX7WpqxE/VN0FjsaVzcs1s0Z3Xmh3Fn3JlZM=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=rrebTNILwyY1RNsTlBjGHmjbmu9XrPwk3GaQb7YiB9gFO4QPGLwAJmJZ8RUTM0fVkVlQ8jDAPZIENzHTKgfBR4V5o7dRoIbb4uq9gnf3nTWI3/mgdusHQV58dOH5wemMwkuQIbm7gKDvE4cwrnzLJb37ONURded/V5bRy7uakJs= 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=u5xnfesK; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=jyNC8jcR; 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="u5xnfesK"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="jyNC8jcR" Date: Wed, 18 Mar 2026 08:25:15 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1773822316; 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=R+Z4PRj7fS55w7N/JfsFs1qfAOS5agDCzTnTktKXh7E=; b=u5xnfesKYEOw6tKacJvKQTbvVpog/7aBtBEhG78O1dTr2FJhVCgvYCtEJ0nyWW2qTIOFoX EecfMdbx/vA0c9MsHxoX9uaiLJk18ZCvWrtPUTfQew9i+SIxms1VitwxuzafEXTwMgPiHM d+dz8OAukB75Ed7skUge4mcR545lJZBeNUBwHVCYxMmZvgFeDfPeCvqF/Vdg1MSEmZdbxC pF9X/RDaIngbX0m50lJ+pT1G032BUYt4NCRp3tnJxSG9hGiXcqLA7Kc3qV/agr8GQhh6OY hLZVXfkZ2l32ZuUMJ0Ct5mH6erLhIUgwUAcFOtmB/5emMea1teYhHFb3dCwlEg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1773822316; 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=R+Z4PRj7fS55w7N/JfsFs1qfAOS5agDCzTnTktKXh7E=; b=jyNC8jcRptCIVqKHnYl8cJFgkj+22G6YEo60wdpy+fX6i2N9xed3LuyC16td9FxCDV8hjx bXZ5kZSdr2vR3gBA== 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/core] livepatch/klp-build: improve short-circuit validation Cc: Song Liu , Joe Lawrence , Josh Poimboeuf , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260310203751.1479229-9-joe.lawrence@redhat.com> References: <20260310203751.1479229-9-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: <177382231507.1647592.12860140391582506567.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: e506ad210d6d7aeaff4bca777428c8c8f9850150 Gitweb: https://git.kernel.org/tip/e506ad210d6d7aeaff4bca777428c8c8f= 9850150 Author: Joe Lawrence AuthorDate: Tue, 10 Mar 2026 16:37:47 -04:00 Committer: Josh Poimboeuf CommitterDate: Mon, 16 Mar 2026 12:46:49 -07:00 livepatch/klp-build: improve short-circuit validation Update SHORT_CIRCUIT behavior to better handle patch validation and argument processing in later klp-build steps. Perform patch validation for both step 1 (building original kernel) and step 2 (building patched kernel) to ensure patches are verified before any compilation occurs. Additionally, allow the user to omit input patches when skipping past step 2. Acked-by: Song Liu Signed-off-by: Joe Lawrence Link: https://patch.msgid.link/20260310203751.1479229-9-joe.lawrence@redhat= .com Signed-off-by: Josh Poimboeuf --- scripts/livepatch/klp-build | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/livepatch/klp-build b/scripts/livepatch/klp-build index 374e126..60c7635 100755 --- a/scripts/livepatch/klp-build +++ b/scripts/livepatch/klp-build @@ -220,7 +220,7 @@ process_args() { esac done =20 - if [[ $# -eq 0 ]]; then + if [[ $# -eq 0 ]] && (( SHORT_CIRCUIT <=3D 2 )); then usage exit 1 fi @@ -791,9 +791,12 @@ build_patch_module() { process_args "$@" do_init =20 -if (( SHORT_CIRCUIT <=3D 1 )); then +if (( SHORT_CIRCUIT <=3D 2 )); then status "Validating patch(es)" validate_patches +fi + +if (( SHORT_CIRCUIT <=3D 1 )); then status "Building original kernel" clean_kernel build_kernel