From mboxrd@z Thu Jan 1 00:00:00 1970 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 A4B4E2BEC5E; Fri, 1 May 2026 04:09:02 +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=1777608542; cv=none; b=dXiI6wrEdRTr/PQE2azJwpWnHDt8dYQnTujNit7YluDFDmiMzU0cU3V4v4qVNee1xBo3lJOdgXpAUMnYlulrWi6XMTUXhd2zDKVGrvwQ2vND6cVC6m7hOuu27iGH91ehO3Hz7QG4a01UwtF2baDnvNTC1g9If1BSp1C6GOGQMss= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777608542; c=relaxed/simple; bh=duf4Qn4jJibidhGOYvdLIG55cwmiQxtfrqGHJsT9MI4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jUc3QVm7cCl9pGh+5c/G6HNkIjoMBGPMENYpxUA5A4QRDgpIh0vYdjGTzpdtxWBilZ0C/ZwS4XmKPcRaXbefN6P6xaOasCQBoVoGMDAkYIx7w711Et1kmG0Eh3G8LXY9Y+81sVN0eJYRbH4WNlgWrxHvYAZ3mdz9/P3fCYRr8zU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=heUOuFNp; 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="heUOuFNp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2EFB0C2BCB9; Fri, 1 May 2026 04:09:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1777608542; bh=duf4Qn4jJibidhGOYvdLIG55cwmiQxtfrqGHJsT9MI4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=heUOuFNpMZ4giusmbiwvQMEYgGCCrvYJVn4rCc1jJUCICMgx0V6J1/sryF6XAG6y/ /qr91Nzkk4eAVN01XUvqHFyCMe3e9yqvxnrq4O7MnCTCSMFiMelw3xs92l3VkpP1A9 3Ltf31K8+5TXrVgd/7syuA9zWQMpaGCBkdaTzccjx0RqL8I6+ws7CObMJTCBqvQcSU xcZqB5jjp5rh/xB//KnCHeDOHYJTve10d0f8LXn20TiV5wF2WgZ+NbNvVNOs6hci30 O7uckESwNZPrP1mvhGWCNL2zG/ngGQcv+ucaHFChzJbRPqnKutzsNSSSuSRbPZ0+67 Wv+rW0D+plRNQ== From: Josh Poimboeuf To: x86@kernel.org Cc: linux-kernel@vger.kernel.org, live-patching@vger.kernel.org, Peter Zijlstra , Joe Lawrence , Song Liu , Miroslav Benes , Petr Mladek Subject: [PATCH v2 26/53] klp-build: Validate patch file existence Date: Thu, 30 Apr 2026 21:08:14 -0700 Message-ID: X-Mailer: git-send-email 2.53.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: live-patching@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Make sure all patch files actually exist. Otherwise there can be confusing errors later. Acked-by: Song Liu Reviewed-by: Miroslav Benes Signed-off-by: Josh Poimboeuf --- scripts/livepatch/klp-build | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/livepatch/klp-build b/scripts/livepatch/klp-build index 68d61b72f39a..13709d20e295 100755 --- a/scripts/livepatch/klp-build +++ b/scripts/livepatch/klp-build @@ -157,6 +157,7 @@ process_args() { local short local long local args + local patch short="hfj:o:vdS:T" long="help,show-first-changed,jobs:,output:,no-replace,verbose,debug,short-circuit:,keep-tmp" @@ -235,6 +236,10 @@ process_args() { KEEP_TMP="$keep_tmp" PATCHES=("$@") + + for patch in "${PATCHES[@]}"; do + [[ -f "$patch" ]] || die "$patch doesn't exist" + done } # temporarily disable xtrace for especially verbose code -- 2.53.0