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: 4491 Return-Path: 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 + 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 ); 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 To: Michael Ellerman Cc: live-patching@vger.kernel.org, Nicholas Piggin , Christophe Leroy , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Song Liu 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-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: 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?= 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(-)