From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D6050C636CC for ; Sat, 4 Feb 2023 17:24:56 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4P8KCW2SF5z3f93 for ; Sun, 5 Feb 2023 04:24:55 +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=PcJ4qVdn; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=145.40.73.55; helo=sin.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=PcJ4qVdn; dkim-atps=neutral Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) (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 4P8KBW0HQRz2xJ6 for ; Sun, 5 Feb 2023 04:24:02 +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 sin.source.kernel.org (Postfix) with ESMTPS id A29B2CE0121; Sat, 4 Feb 2023 17:24:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A210FC433EF; Sat, 4 Feb 2023 17:23:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1675531438; bh=xoP36gqi80AuKb0iU262xHwR0IsQZSUZsS39JGNb7Go=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PcJ4qVdn++W9CS19948iWUAjJx/IpZx3dZ2bNUvQHJCImAdOU4OA2r8EzQdC7Pezt vs9+3474aqcqN84VYl3fH+nwV+rmn2UUUSJxRKrIoqduknUS5KwFw6KCq8pnOTSx8D OdPsJUgKfBozx9tZNgygeFuD+vwY76ZxgtwimPHPsAxKwXtPAy3JSOTBKjq1r5bBjH UdSpPYZucT2TPKyeq9lzo9Ql1muyLPTZC3i9ERAAu3NNPk9f8WIxV/WG9i3xAT5Og8 AZhbHjggeOa2Eu5jYuNaZ1qvKaVP55FZad4AQ1XdL52VPX+dy9jmdcIv5l+hbdK4/N 1CQRWWXkxq7dQ== Date: Sat, 4 Feb 2023 09:23:57 -0800 From: Josh Poimboeuf To: Michael Ellerman Subject: Re: [PATCH 0/2] powerpc: Fix livepatch module re-patching issue Message-ID: <20230204172357.mbudvbtv7tc7vhf3@treble> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: 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+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Tue, Jan 24, 2023 at 07:38:03PM -0800, Josh Poimboeuf wrote: > 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(-) Hi Michael, Ping? Any objections to this? The x86 counterpart to this is queued for 6.3, it would be nice if this also landed. We could take it through the livepatch tree if needed. -- Josh