Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 267C17082D for ; Wed, 4 Feb 2026 02:51:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770173510; cv=none; b=W/XP8Ek/YmiHeTA6WIyePkH2TYTmD6Gd1dE7ughaSCS0S9av4CvPxGa7hgccOBAGZRwehUKcoSqPvFv/3iwNqLvsKO96OZCxvowsw0ndjIXR/n0984fgh3m/QWzktqm8Dhp0dOdGinHltKTnRGRGVj2pnBqyzWyuyn7pCDqxF5w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770173510; c=relaxed/simple; bh=Ga0Q+bOgEeD4IlE0HBq8Bt55RYFbrR0cBlFUhtHPnmM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-type; b=n6TM6zYPtcY608V3ASNGiLJgZzrVcTOA73oTF5muApfN6bDXm2g4NmUKZNmRKsskm4d9nUwAz6/9pwce20ls91jrXXhN6SerkHAs2/LmWh/OFc9GTkMR/ZaqqhxlwlLw8nYDtgcVBAktPCtN5iS+ohGXgyZUnVOqh7SFtwolWwU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=BBznyzjB; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="BBznyzjB" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1770173508; h=from:from: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; bh=A0QBcoyiu2wYglTGwkDImA30JCJQGRIlWrmwZeuhYNY=; b=BBznyzjBgajh4nal/oHlyOxpC7oxc/G5LscIz8D8pfrFeTsGlDWXz9nFkIWxKcrIXuIWQV mtutPZarEdHBh53aYMh5cdIkwsGKhBXuuojzoZo7GCAIhlGqZi0zoN+bCUW8qU9Qe1jIRY zX37c82tuEaXgqpXISzObKsWttmdTDs= Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-618-8aE-ANbPMeukxBuICwOVVg-1; Tue, 03 Feb 2026 21:51:46 -0500 X-MC-Unique: 8aE-ANbPMeukxBuICwOVVg-1 X-Mimecast-MFC-AGG-ID: 8aE-ANbPMeukxBuICwOVVg_1770173505 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 9083D1800447; Wed, 4 Feb 2026 02:51:45 +0000 (UTC) Received: from jolawren-thinkpadp1gen7.ibmlowe.csb (unknown [10.22.80.42]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 08CF7180094B; Wed, 4 Feb 2026 02:51:43 +0000 (UTC) From: Joe Lawrence To: live-patching@vger.kernel.org Cc: Josh Poimboeuf , Song Liu , Jiri Kosina , Miroslav Benes , Petr Mladek Subject: [PATCH v2 0/5] livepatch-klp-build: small fixups and enhancements Date: Tue, 3 Feb 2026 21:51:35 -0500 Message-ID: <20260204025140.2023382-1-joe.lawrence@redhat.com> Precedence: bulk X-Mailing-List: live-patching@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-type: text/plain Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 Here is v2, a quick iteration on v1 posted lasted week. I expect some comments on verbosity and some code stylings, so fully expect to roll at least another version. See also some per-patch inline diffstat area commentary. v2: - Update patch subject prefixes accordingly [Josh] - Added a small objtool/klp patch. Test systems setup crazy long pathnames :D - Removed patch ("limit parent .git directory search") as this version replaces the use of git apply --recount with patch and recountdiff. A side effect of this simplification was no longer needing this weird hack. [Josh] - Updated the patch that handles input patches that add files to also support removing files, implement this by directly inspecting the .patch +++ and --- header lines via two file lists [Josh] - Implement two short-circuiting updates: validate patches for steps 1 and 2, and allow the user to omit patches for steps 3 and 4. This combines the original 'fail-fast' patch and some related notes on the v1 thread. [Josh] - Since v2 replaces git apply with patch and recountdiff, there is no need for a -z/--fuzz argument, it comes with GNU patch for free. v1: https://lore.kernel.org/live-patching/CAPhsuW5qrueccM123YbTo2ZvP-Rf+0UT-goG6c5A8gXw7BsF3w@mail.gmail.com/T/#t Joe Lawrence (5): objtool/klp: Fix mkstemp() failure with long paths livepatch/klp-build: handle patches that add/remove files livepatch/klp-build: switch to GNU patch and recountdiff livepatch/klp-build: minor short-circuiting tweaks livepatch/klp-build: provide friendlier error messages scripts/livepatch/klp-build | 92 ++++++++++++++++++++----------------- tools/objtool/elf.c | 10 +++- 2 files changed, 58 insertions(+), 44 deletions(-) -- 2.52.0