From patchwork Wed Jan 25 03:38:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josh Poimboeuf X-Patchwork-Id: 1731524 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=2404:9400:2:0:216:3eff:fee1:b9f1; helo=lists.ozlabs.org; envelope-from=linuxppc-dev-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=FWTczkGq; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2404:9400:2:0:216:3eff:fee1:b9f1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4P1qMm098fz23gM for ; Wed, 25 Jan 2023 14:39:32 +1100 (AEDT) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4P1qMh6LXVz3cC4 for ; Wed, 25 Jan 2023 14:39:28 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=FWTczkGq; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=2604:1380:4641:c500::1; helo=dfw.source.kernel.org; envelope-from=jpoimboe@kernel.org; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=FWTczkGq; dkim-atps=neutral Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4P1qLH6CHyz3bhx for ; Wed, 25 Jan 2023 14:38:15 +1100 (AEDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2448B6143A; Wed, 25 Jan 2023 03:38:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 392C0C433D2; Wed, 25 Jan 2023 03:38:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674617891; bh=4uS3feTw0NdsdG5j9CW0iXk86qPLpoPkIfhS+7MuwBk=; h=From:To:Cc:Subject:Date:From; b=FWTczkGqad6vrR5MnA61pukJK9ZQgmfUzqn5fhAfJ51yNdytxxJIXelAc7/0gt+Qz P99aPLtECpEUIzZx5fKUhbF7sGzfIHEOeuW/dQWtgCZhMIheuOnq1BssJcaT6Abexo cGeLvrBQIWls+CMQWfJ9XeRrgjIAZvr1vpYsXZ3lK2iXvrRgKJ/NptPayW0ORTKQVr y9+F6n5AVq/ZPwD5m/fc/Q+cRhQ4kzw8aku3ESEB2uypkwdAMJz7x/B01ELedgrRV/ bBnipkAZn9ewYYG9tsZqJ0esbtKApmZlFEGfE0Hgx1qo8AGN+yqr2Ajf+SJMsn5XDd rKmnRNNWwIcMg== From: Josh Poimboeuf To: Michael Ellerman Subject: [PATCH 0/2] powerpc: Fix livepatch module re-patching issue Date: Tue, 24 Jan 2023 19:38:03 -0800 Message-Id: X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Content-type: text/plain X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, Song Liu , Nicholas Piggin , live-patching@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" Fix a livepatch bug seen when reloading a patched module. This is the powerpc counterpart to Song Liu's fix for a similar issue on x86: https://lkml.kernel.org/lkml/20230121004945.697003-2-song@kernel.org Josh Poimboeuf (2): powerpc/module_64: Improve restore_r2() return semantics powerpc/module_64: Fix "expected nop" error on module re-patching arch/powerpc/kernel/module_64.c | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-)