Message ID | cover.1674617130.git.jpoimboe@kernel.org |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp78097wrn; Tue, 24 Jan 2023 19:50:26 -0800 (PST) X-Google-Smtp-Source: AMrXdXukv6Rjt4WXtgOq+7eN2uGcVCxKidc8DobUXfJrKYHdPNgu04JvuZ86SfTzpk+hSW8sfz2Q X-Received: by 2002:a05:6402:501e:b0:472:1436:73ab with SMTP id p30-20020a056402501e00b00472143673abmr36510328eda.28.1674618625833; Tue, 24 Jan 2023 19:50:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674618625; cv=none; d=google.com; s=arc-20160816; b=wvi/gheuASG9+K1o+gKQ+mXCflcMSdHBV0MpI16pBuLUTLayjXkN7GDuemeE6pmfnT QswghbYZ6aGw3LdE2/mcDEXmZI/E8P+oqvMY5M+t+UOwkUvAV8CLEmhefsvsp6NwPGPe sjW+puKX4VoamTzivMBb9KHr+Koxy61IpUQYyq/f/9gYczSbS94l6CpcOHZWFAklqs0C +S/pc1Dw0gViQesH0EN1/9B/wK4synmuRpYZnLy90lC/nkcAOf4hnDqHElD9ClFX3z/h Iqh98RR79ixh/1tQlIFQlqJyiD2otpJohC7CJuiXztKgY2h8WkvcHYV4mqmZwlFehOZN N3zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=azk4iXjokhJnSuNBRhgYfIEqsj127E5qz5cu0C+grLs=; b=VAiDbOoMHEod/4lT+sSUyQj5iv0SbknygYZ0WhJqUvYsPQlgTeKvgK4cLTOk+i9UOa 4VCwEapQeDImxZNR2i41Ba67Z/HRdmeMuxw19VH7XsBZSFYKg0cJ/HD2ibNDIHE6mJSj 6LOosB7ff61ZrvOVk3DBnuxZBMhsV9rhv0NieG10FyCeAQHo60wHRWh9j62CdM2KWDxa CU3XuvUwpw0htlL7eY4POfTTWepvOkZHtZgE5LG+rIY3KUO1BjyVByP9rQ3pm8xA0y6B iUnxOu4Av671LhyJbCxHL/YnVrwdLEiWXMCmJH6pVOUUp8bxPFm26bg7LI2ubS5W/Xik McXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FWTczkGq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ck6-20020a0564021c0600b0049e708f0425si5297507edb.232.2023.01.24.19.50.01; Tue, 24 Jan 2023 19:50:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FWTczkGq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234627AbjAYDic (ORCPT <rfc822;rust.linux@gmail.com> + 99 others); Tue, 24 Jan 2023 22:38:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234594AbjAYDia (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 24 Jan 2023 22:38:30 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4665C3EC59; Tue, 24 Jan 2023 19:38:18 -0800 (PST) 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 ams.source.kernel.org (Postfix) with ESMTPS id DC62AB81893; 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 <jpoimboe@kernel.org> To: Michael Ellerman <mpe@ellerman.id.au> Cc: live-patching@vger.kernel.org, Nicholas Piggin <npiggin@gmail.com>, Christophe Leroy <christophe.leroy@csgroup.eu>, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Song Liu <song@kernel.org> Subject: [PATCH 0/2] powerpc: Fix livepatch module re-patching issue Date: Tue, 24 Jan 2023 19:38:03 -0800 Message-Id: <cover.1674617130.git.jpoimboe@kernel.org> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Content-type: text/plain Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755964899954590699?= X-GMAIL-MSGID: =?utf-8?q?1755964899954590699?= |
Series |
powerpc: Fix livepatch module re-patching issue
|
|
Message
Josh Poimboeuf
Jan. 25, 2023, 3:38 a.m. UTC
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(-)
Comments
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(-) > > -- > 2.39.0 > For the series, Reviewed-and-tested-by: Joe Lawrence <joe.lawrence@redhat.com> -- Joe
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 Poimboeuf <jpoimboe@kernel.org> writes: > 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. It's in my next since about a week. Sorry I forgot to send the "accepted" emails (which I still don't have automated :/ ). 337251c7114e1 ("powerpc/module_64: Fix "expected nop" error on module re-patching") cheers
On Tue, 24 Jan 2023 19:38:03 -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 > > [...] Applied to powerpc/next. [1/2] powerpc/module_64: Improve restore_r2() return semantics https://git.kernel.org/powerpc/c/bc2c6f5695ffa05c838b8b6fc5cd581a672151a1 [2/2] powerpc/module_64: Fix "expected nop" error on module re-patching https://git.kernel.org/powerpc/c/37251c7114e1b743b077ca74b93557c1ad92a97e cheers
On Sun, Feb 05, 2023 at 11:46:12AM +1100, Michael Ellerman wrote: > Josh Poimboeuf <jpoimboe@kernel.org> writes: > > 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. > > It's in my next since about a week. Sorry I forgot to send the > "accepted" emails (which I still don't have automated :/ ). > > 337251c7114e1 ("powerpc/module_64: Fix "expected nop" error on module re-patching") Ah, I didn't think to look in -next. Thanks!