From nobody Mon Apr 6 18:55:15 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 309493016E5; 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=1773822323; cv=none; b=GL/V0Zb+O0B4f9fYLMIDXARXBbH4rfmu4e5x1ACH3io0wiIJMIphhQpcvInTXqIbJc6jwhxfVZyB09vc/HTW/06Ph2M0ffTTEK8A6j79z4ALNEcDuxbi8puv62V7igUOuFrilZiehaLmYGA2a0gHXGAOrkyvbmVLfxD7IW5zipM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773822323; c=relaxed/simple; bh=S71fhc1zGtbSiEtbx0b2XDmR1j9qXeByj/XdrSS6o20=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=aI4Bx1fXHkU9+7lOiaWDJgK7AQb9GLC2il5m6sDrB63UWgpJnikMA31/kPgQyDCUuB4S2mIHmyTLyQ6aVw/OjIFO7mISpfgCOUOLazDlXHnobhZrKdQ6jrCz2wCN7z1PL2G+6G55juyrP83ZWAESnsKMrAM5DQ+Mzyh5pInGJP8= 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=V6QnR+DE; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=rol/40He; 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="V6QnR+DE"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="rol/40He" Date: Wed, 18 Mar 2026 08:25:13 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1773822315; 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=iBkm5I3MNIeM/JotGWRtgcm00X+5V5BV8jXvG2qZmbM=; b=V6QnR+DEHxpcmiEe2paqYe16uSlPg4YqwlB1gDKrcbETfSlX5tDeuWTZ3+eFtqXPj+lw7k EDQvehwbQRleaLpibrCbu2sI8xAsFsbdBuyPPW3PbYYL6pCjtgtqEMQo2MkgPBYBm/Xkcv WHypXWuGQ9dWqV/8tT/0rQwYPaCFrbgU4wmT4Y4t/q4h5tbKI3/c7+V3wCD7DIb0q5/sY4 K7clyW0W5VVg9mGWljh4nwlyPOF25HWvoIkOd/CZFIhDpQSHoYqdTEm5fvpI/HjZ2k76Bn ILJ7GSsO+/OwmlvD8jzZZgsFyREAY/8G+gvSmiTAE91WpL7+bX0pxqgXAqLCbw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1773822315; 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=iBkm5I3MNIeM/JotGWRtgcm00X+5V5BV8jXvG2qZmbM=; b=rol/40HeV8i7SbgnY9QcR0TFWL4ifmdcfEsFQhxDG9/Fx7FycpT6Eo90jfX/PZFnQ8tD8A x5QY17bN9/6/dXAA== 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: provide friendlier error messages Cc: Song Liu , Joe Lawrence , Josh Poimboeuf , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260310203751.1479229-11-joe.lawrence@redhat.com> References: <20260310203751.1479229-11-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: <177382231398.1647592.2147496156500902911.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: b41d8b7d1752f2f85fc1a87f5e4f4dda45adad15 Gitweb: https://git.kernel.org/tip/b41d8b7d1752f2f85fc1a87f5e4f4dda4= 5adad15 Author: Joe Lawrence AuthorDate: Tue, 10 Mar 2026 16:37:49 -04:00 Committer: Josh Poimboeuf CommitterDate: Mon, 16 Mar 2026 12:52:53 -07:00 livepatch/klp-build: provide friendlier error messages Provide more context for common klp-build failure modes. Clarify which user-provided patch is unsupported or failed to apply, and explicitly identify which kernel build (original or patched) failed. Acked-by: Song Liu Signed-off-by: Joe Lawrence Link: https://patch.msgid.link/20260310203751.1479229-11-joe.lawrence@redha= t.com Signed-off-by: Josh Poimboeuf --- scripts/livepatch/klp-build | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/livepatch/klp-build b/scripts/livepatch/klp-build index 60c7635..dc0a23a 100755 --- a/scripts/livepatch/klp-build +++ b/scripts/livepatch/klp-build @@ -342,7 +342,7 @@ check_unsupported_patches() { for file in "${files[@]}"; do case "$file" in lib/*|*.S) - die "unsupported patch to $file" + die "${patch}: unsupported patch to $file" ;; esac done @@ -487,6 +487,7 @@ clean_kernel() { } =20 build_kernel() { + local build=3D"$1" local log=3D"$TMP_DIR/build.log" local objtool_args=3D() local cmd=3D() @@ -524,7 +525,7 @@ build_kernel() { "${cmd[@]}" \ 1> >(tee -a "$log") \ 2> >(tee -a "$log" | grep0 -v "modpost.*undefined!" >&2) - ) + ) || die "$build kernel build failed" } =20 find_objects() { @@ -799,7 +800,7 @@ fi if (( SHORT_CIRCUIT <=3D 1 )); then status "Building original kernel" clean_kernel - build_kernel + build_kernel "original" status "Copying original object files" copy_orig_objects fi @@ -809,7 +810,7 @@ if (( SHORT_CIRCUIT <=3D 2 )); then fix_patches apply_patches status "Building patched kernel" - build_kernel + build_kernel "patched" revert_patches status "Copying patched object files" copy_patched_objects