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 70FC43859C1 for ; Fri, 1 May 2026 10:41:56 +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=1777632116; cv=none; b=pUJkWGvUQz/xdsWTWgOMfApr0rQdKHR5vDBJsP3DhBVM/R7Nad+2Yy0OLvCyHAyAqATGliq+Fp/3f3TeeLm2Ow9v+Yd0/qmhMpPI83ZIRZ1fPP+8A4iDypQDdbZMHTG8HJVsa2C0zUrDNR+qHkP5W0O0Sn5SO71/QfGM+yuVp8g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777632116; c=relaxed/simple; bh=MW+kKZpBMGELottVBuInenKwPurd9bmlzfGZlhXGDwM=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=ApNepus2s5G4WPy+RYMEQbNnAbZYaV2iiuWa6oI74BcpH0JybxZhgmqpAxjfKX5xJXQJBRYMkIW1fLdJYuBaqA7mZATqfPm6L5DeCSCTiCUeP0kN0cDCk8O69eJpaOiQ3cuybdEJE+EDIrkliIwjp7bC2YFxRkTiz84AaFzaDzA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Xhl+DrOh; 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="Xhl+DrOh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 34849C2BCC7 for ; Fri, 1 May 2026 10:41:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1777632116; bh=MW+kKZpBMGELottVBuInenKwPurd9bmlzfGZlhXGDwM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Xhl+DrOhJH2v2jJ74S/0Rg+NfHBBHYbkH/pic4z4QhpJvLWPJhmgDbfXQFwNwHO4Y wtFt4aCTY8FKCA6bLb6ixl87sX5gvxgof/9JB527DFGCGkQ4QouTujN5AFOgk+mboZ X92fn3oYobGjpITNKklkdzaysynAs5Hhx0/6wAAq4X72mj52WXfqLBg7EJ5503ddx3 OsONFlPUOVjdYAVDA3BLTlp48SeVeMZmtMI3p1sSZ8yhyZ4Ht7Eu5erIVuOQk/DEYF V1QC5c/Z2/kyX7cUo+h+dS6IdRNqmTCKLu/J+jqzt1tmTyGjyShhCcqRqOwMR1ddNm cFokVO3dvVFXQ== Received: by mail-qv1-f48.google.com with SMTP id 6a1803df08f44-899a9f445cbso17288186d6.0 for ; Fri, 01 May 2026 03:41:56 -0700 (PDT) X-Forwarded-Encrypted: i=1; AFNElJ9y/ortO9Wxj78voNTx31loIYpVO/Y0PGNAXuP5lyOKNhAODVhX1XH7Ljk7yCXrdmMZ4yJCnQopsOCzj94=@vger.kernel.org X-Gm-Message-State: AOJu0YzxEEf6Od1tidDwqvyKdg0bTD71Kr/gM2HzTyLDY0YXkriKG4Aw rpCejMwAIUUJ+HdFX48tBcd4XPK1kGRUug8GoIkdU7AuHVd3RgMRu8I17FWy6wUpsjYlJ7stgUi SB8EAg5JGO7aclZ/y2I6CNz7L5ibKIbo= X-Received: by 2002:ad4:4ea1:0:b0:8ac:af40:53d5 with SMTP id 6a1803df08f44-8b3fece7533mr100712496d6.34.1777632115352; Fri, 01 May 2026 03:41:55 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <6392d4f0c8837ccc0498a1c79a2d9534dacfce82.1777575752.git.jpoimboe@kernel.org> In-Reply-To: <6392d4f0c8837ccc0498a1c79a2d9534dacfce82.1777575752.git.jpoimboe@kernel.org> From: Song Liu Date: Fri, 1 May 2026 11:41:42 +0100 X-Gmail-Original-Message-ID: X-Gm-Features: AVHnY4IzxmAmrpoN6Y71TuN0uZIU1P-H4pYL21ECEHEcCpHrs4eVqEaAI87nukI Message-ID: Subject: Re: [PATCH v2 24/53] klp-build: Fix checksum comparison for changed offsets To: Josh Poimboeuf Cc: x86@kernel.org, linux-kernel@vger.kernel.org, live-patching@vger.kernel.org, Peter Zijlstra , Joe Lawrence , Miroslav Benes , Petr Mladek Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, May 1, 2026 at 5:09=E2=80=AFAM Josh Poimboeuf = wrote: > > The klp-build -f/--show-first-changed feature uses diff to compare > checksum log lines between original and patched objects. However, diff > compares entire lines, including the offset field. When a function is > at a different section offset, the offset field differs even though the > instruction checksum is identical, causing the wrong instruction to be > printed. > > Only compare the checksum field when looking for the first changed > instruction. Also print both the original and patched offsets when they > differ. > > Fixes: 78be9facfb5e ("livepatch/klp-build: Add --show-first-changed optio= n to show function divergence") > Signed-off-by: Josh Poimboeuf Acked-by: Song Liu